{"id":1116,"date":"2016-02-04T22:39:54","date_gmt":"2016-02-04T13:39:54","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1116"},"modified":"2016-02-04T22:39:54","modified_gmt":"2016-02-04T13:39:54","slug":"to-a-little-better-the-sloppy-podcast-server","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2016\/02\/04\/to-a-little-better-the-sloppy-podcast-server\/","title":{"rendered":"\u96d1\u306aPadcast\u30b5\u30fc\u30d0\u3092\u5c11\u3057\u307e\u3057\u306b\u3059\u308b"},"content":{"rendered":"<p><!--\n\u96d1\u306aPadcast\u30b5\u30fc\u30d0\u3092\u5c11\u3057\u307e\u3057\u306b\u3059\u308b\n--><\/p>\n<p>\u5148\u65e5\u4f5c\u3063\u305fPodcast\u30b5\u30fc\u30d0\u3067\u3059\u304c\u3042\u308c\u304b\u3089\u305a\u3063\u3068\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u304c\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u96d1\u3055\u3092\u307e\u3057\u306b\u3059\u308b\u305f\u3081\u306b\u5c11\u3057\u4fee\u6b63\u3057\u307e\u3057\u305f\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/matoken.org\/blog\/blog\/2016\/01\/31\/i-made-a-sloppy-podcast-server-in-the-raspberry-pi\/\" title=\"Raspberry Pi&#x3067;&#x96D1;&#x3044;podcast&#x30B5;&#x30FC;&#x30D0;&#x3092;&#x4F5C;&#x3063;&#x305F; | matoken&apos;s meme\">Raspberry Pi\u3067\u96d1\u3044podcast\u30b5\u30fc\u30d0\u3092\u4f5c\u3063\u305f | matoken\u2019s meme<\/a><\/li>\n<\/ul>\n<p>\u30d7\u30ec\u30a4\u30e4\u30fc\u90e8\u5206\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u5c11\u3057\u5909\u308f\u308a\u307e\u3057\u305f\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>@reboot&nbsp;while&nbsp;true;&nbsp;do&nbsp;cvlc&nbsp;--ignore-config&nbsp;--extraintf=http&nbsp;--http-port=8081&nbsp;--http-password=&#39;raspberry&#39;&nbsp;~\/podcasts\/todayspodcast.m3u&nbsp;--play-and-exit&nbsp;--norm-max-level=2.0&nbsp;--sout=&#39;#transcode{acodec=mp3,ab=64,channels=1}:standard{access=http,mux=ts,dst=:8080}&#39;&nbsp;;&nbsp;done<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>40&nbsp;*&nbsp;*&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;podracer&nbsp;;&nbsp;cd&nbsp;~\/podcasts&nbsp;;&nbsp;find&nbsp;.&nbsp;-mmin&nbsp;-1440&nbsp;-type&nbsp;f&nbsp;-print0&nbsp;|&nbsp;xargs&nbsp;-0n1&nbsp;file&nbsp;|&nbsp;grep&nbsp;-i&nbsp;audio&nbsp;|&nbsp;cut&nbsp;-f1&nbsp;-d:&nbsp;|&nbsp;xargs&nbsp;ls&nbsp;-1tr&nbsp;&gt;&nbsp;~\/podcasts\/todayspodcast.m3u<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>10&nbsp;0&nbsp;*&nbsp;*&nbsp;*&nbsp;&nbsp;rm&nbsp;-rf&nbsp;~\/podcasts\/`date&nbsp;--date&nbsp;&#39;1&nbsp;weeks&nbsp;ago&#39;&nbsp;+\\%F`<\/span><\/span><\/span><\/div><\/pre>\n<ul>\n<li>kill\u305b\u305a\u306b1\u5468\u6bce\u306bVLC\u3092\u547c\u3076\u3088\u3046\u306b\u3057\u3066\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u66f4\u65b0<\/li>\n<li>Podcast\u53d6\u5f97\u30921\u6642\u9593\u306b1\u5ea6\u306b\u5909\u66f4<\/li>\n<li>\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30ce\u30fc\u30de\u30e9\u30a4\u30ba<\/li>\n<li>\u30d3\u30c3\u30c8\u30ec\u30fc\u30c8\u309264k\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/li>\n<li>\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u306e\u4f5c\u6210\u30821\u6642\u9593\u306b\u4e00\u5ea6<\/li>\n<li>\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u306e\u9806\u5e8f\u3092\u6642\u9593\u9806\u306b\u30bd\u30fc\u30c8<\/li>\n<li>\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u306e\u5185\u5bb9\u306f\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u4f5c\u6210\u6642\u304b\u3089\u904e\u53bb1\u65e5\u5206(1440\u5206)<\/li>\n<li>\u97f3\u6cc9\u306e\u756a\u7d44\u306b\u5bfe\u5fdc(RSS\u5316\u3057\u3066podracer\u306b\u767b\u9332\uff0e\u7c21\u5358\u3060\u3051\u3069\u516c\u958b\u3059\u308b\u3068\u6012\u3089\u308c\u305d\u3046\u306a\u6c17\u304c\u3059\u308b)\n<ul>\n<li><a href=\"http:\/\/www.onsen.ag\/\" title=\"&#x30A4;&#x30F3;&#x30BF;&#x30FC;&#x30CD;&#x30C3;&#x30C8;&#x30E9;&#x30B8;&#x30AA;&#x30B9;&#x30C6;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#xFF1C;&#x97F3;&#x6CC9;&#xFF1E;\">\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30e9\u30b8\u30aa\u30b9\u30c6\u30fc\u30b7\u30e7\u30f3\uff1c\u97f3\u6cc9\uff1e<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>VLC\u306e\u30aa\u30d7\u30b7\u30e7\u30f3<\/h2>\n<ul>\n<li><code style=\"font-family: VL Gothic;\">--ignore-config<\/code><br \/>\n\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u307f\u307e\u305b\u3093<\/li>\n<li><code style=\"font-family: VL Gothic;\">--extraintf=http<\/code><br \/>\n\u30a6\u30a7\u30d6\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u6709\u52b9\u306b<\/li>\n<li><code style=\"font-family: VL Gothic;\">--http-port=8081<\/code><br \/>\n\u30a6\u30a7\u30d6\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u5f85\u3061\u53d7\u3051\u30dd\u30fc\u30c8\u30928081\u756a\u306b<\/li>\n<li><code style=\"font-family: VL Gothic;\">--http-password='raspberry'<\/code><br \/>\n\u30a6\u30a7\u30d6\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u8a8d\u8a3c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092<code style=\"font-family: VL Gothic;\">raspberry<\/code>\u306b<\/li>\n<li><code style=\"font-family: VL Gothic;\">~\/podcasts\/todayspodcast.m3u<\/code><br \/>\n\u518d\u751f\u30d5\u30a1\u30a4\u30eb(\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u3092\u6307\u5b9a)<\/li>\n<li><code style=\"font-family: VL Gothic;\">--play-and-exit<\/code><br \/>\n\u518d\u751f\u5f8c\u7d42\u4e86\u3059\u308b\uff0e\u3053\u308c\u304c\u306a\u3044\u3068\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u3092\u518d\u751f\u5f8c\u3082\u8d77\u52d5\u3057\u3063\u3071\u306a\u3057\u306b\u306a\u3063\u3066\u6b21\u306e\u5468\u306b\u5165\u3089\u306a\u3044\uff0e(<code style=\"font-family: VL Gothic;\">vlc:\/\/quit<\/code>\u3067\u3082\u5927\u4e08\u592b\u3060\u304c\uff0c<code style=\"font-family: VL Gothic;\">vlc:\/\/quit<\/code>\u3060\u3068\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u306b\u3082\u8868\u793a\u3055\u308c\u308b)<\/li>\n<li><code style=\"font-family: VL Gothic;\">--norm-max-level=2.0<\/code><br \/>\n\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30ce\u30fc\u30de\u30e9\u30a4\u30ba\uff0e\u3053\u306e\u5024\u306f\u3082\u3046\u5c11\u3057\u3044\u3058\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082?<\/li>\n<li><code style=\"font-family: VL Gothic;\">--sout='#transcode{acodec=mp3,ab=64,channels=1}<\/code><br \/>\n\u30e2\u30ce\u30e9\u30eb64k\u306emp3\u306b\u5909\u63db\u3057\u3066\u3044\u308b\uff0ePodcast\u3092\u8abf\u3079\u308b\u3068\u6b86\u3069\u306e\u756a\u7d44\u304c64k\u3067\u4e00\u90e840,96,128,160\u304c\u6df7\u3058\u3063\u3066\u3044\u308b\uff0e1\u65e5\u8a66\u3057\u305f\u304c32k\u3067\u3082\u5927\u4e08\u592b\u305d\u3046\uff0e<\/li>\n<li><code style=\"font-family: VL Gothic;\">standard{access=http,mux=ts,dst=:8080}<\/code><br \/>\n8080\u756a\u30dd\u30fc\u30c8\u3067HTTP\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u914d\u4fe1<\/li>\n<\/ul>\n<p>VLC\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306fman\u306b\u306f\u3042\u307e\u308a\u8f09\u3063\u3066\u306a\u304f\u3066\u56f0\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c<code style=\"font-family: VL Gothic;\">vlc -H<\/code>\u306b\u5927\u91cf\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u8f09\u3063\u3066\u3044\u308b\u306e\u306b\u6c17\u3065\u3044\u3066\u304b\u3089\u306f\u304b\u3069\u308a\u307e\u3057\u305f\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>$&nbsp;vlc&nbsp;-h|&nbsp;tail&nbsp;-1<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>\u7db2\u7f85\u7684\u306a\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001&#39;-H&#39;\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>$&nbsp;vlc&nbsp;-h&nbsp;|&nbsp;wc&nbsp;-l<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>372<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>$&nbsp;vlc&nbsp;-H&nbsp;|&nbsp;wc&nbsp;-l<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>5674<\/span><\/span><\/span><\/div><\/pre>\n<p>\u305d\u306e\u4ed6\u7d30\u304b\u3044\u3068\u3053\u308d\u3067<\/p>\n<ul>\n<li>\u8a2d\u7f6e\u5834\u6240\u306e\u5909\u66f4<\/li>\n<li>DNS\u306b\u540d\u524d\u3092\u767b\u9332\u3057\u3066\u56fa\u5b9aIP\u306b(Android\u3067\u3082\u540d\u524d\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b)<\/li>\n<li>\u5408\u308f\u305b\u3066\u30d7\u30ec\u30a4\u30ea\u30b9\u30c8\u7b49\u306eurl\u3092\u540d\u524d\u306b<\/li>\n<li>hostname\u306e\u5909\u66f4<\/li>\n<li>sshd\u8a2d\u5b9a<\/li>\n<li>iptable\u8a2d\u5b9a<\/li>\n<li>OS\u306e\u81ea\u52d5\u66f4\u65b0\u8a2d\u5b9a<\/li>\n<li>watch dog\u306e\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u8fba\u308a\u3082\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u304c\u3053\u306e\u8fba\u306f\u4f55\u6642\u3082\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u4eca\u56de\u306f\u7701\u7565\uff0e<\/p>\n<p>\u3068\uff0c\u3053\u3093\u306a\u611f\u3058\u3067\u3060\u3044\u305f\u3044\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u51fa\u6765\u305f\u304b\u306a\u30fc\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u304c\uff0cVLC\u3067\u306a\u304fMPD\u8fba\u308a\u3067\u66f2\u7ba1\u7406\u3057\u3066\u518d\u751f\uff0c\u914d\u4fe1\u306f\u307e\u305f\u5225\u30a2\u30d7\u30ea\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u3046\u306a\u6c17\u3082\u3057\u3066\u304d\u307e\u3057\u305f\uff0eVLC\u306f1\u3064\u3067\u4f55\u3067\u3082\u3067\u304d\u308b\u3057\u30a6\u30a7\u30d6\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3082\u3042\u3063\u3066\u3044\u3044\u306e\u3067\u3059\u304c\uff0cMPD\u306e\u65b9\u304c\u30ea\u30e2\u30fc\u30c8\u7ba1\u7406\u304c\u3057\u3084\u3059\u305d\u3046\u306a\u306e\u3067\u6c17\u304c\u5411\u3044\u305f\u3089\u305d\u3063\u3061\u3082\u7d44\u3080\u304b\u3082\u3067\u3059\uff0e<\/p>\n<p>\u4eca100\u5186\u30b7\u30e7\u30c3\u30d7\u306e\u30a4\u30e4\u30db\u30f3\u3092\u4f7f\u3063\u3066\u805e\u3044\u3066\u3044\u308b\u306e\u3067\u305d\u306e\u90e8\u5206\u304c\u4e00\u756a\u30b9\u30c8\u30ec\u30b9\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n<div>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B005MLXM70\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B009KP5F6U\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00TBKFAI2\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u4f5c\u3063\u305fPodcast\u30b5\u30fc\u30d0\u3067\u3059\u304c\u3042\u308c\u304b\u3089\u305a\u3063\u3068\u52d5\u304b\u3057\u3066\u3044\u307e\u3059\u304c\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e\u96d1\u3055\u3092\u307e\u3057\u306b\u3059\u308b\u305f\u3081\u306b\u5c11\u3057\u4fee\u6b63\u3057\u307e\u3057\u305f\uff0e Raspberry Pi\u3067\u96d1\u3044podcast\u30b5\u30fc\u30d0\u3092\u4f5c\u3063\u305f | matoken\u2019s  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6,98,91],"tags":[32,275,99,92,44],"class_list":["post-1116","post","type-post","status-publish","format-standard","hentry","category-linux","category-rasbian_jessie","category-raspberry-pi","tag-jessie","tag-linux","tag-podcast","tag-rasbian","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1116"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1116\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}