{"id":853,"date":"2021-05-12T09:07:22","date_gmt":"2021-05-12T00:07:22","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=853"},"modified":"2021-05-12T09:07:24","modified_gmt":"2021-05-12T00:07:24","slug":"post-853","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/05\/12\/853\/","title":{"rendered":"ffmpeg \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u308b"},"content":{"rendered":"\n<p>\u3000TS \u306e\u5b57\u5e55\u3092\u6271\u3044\u305f\u304f\u306a\u3063\u305f\u306e\u3067\u3001ffmpeg \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002TS \u306e\u5b57\u5e55\u304c\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4eca\u307e\u3067\u4e3b\u306b mp4 \u306b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001mp4 \u306b\u5909\u63db\u3059\u308b\u3068\u5b57\u5e55\u306e\u7a2e\u985e\u304c\u9650\u3089\u308c\u308b\u306e\u3067 mkv \u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">libaribb24<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p class=\"console pre\">$ sudo apt-get -y install \\\n           libaribb24-0 \\\n           libaribb24-dev \\\n           libmysofa-dev \\\n           avisynth<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bd\u30fc\u30b9\u3092\u53d6\u5f97<\/h3>\n\n\n\n<p class=\"console\">$ git clone https:\/\/github.com\/nkoriyama\/aribb24<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u69cb\u6210\uff06\u30b3\u30f3\u30d1\u30a4\u30eb\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p class=\"console\">$ .\/configure<br>$ make<br>$ sudo make install<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ffmpeg<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p class=\"console\">$ sudo apt-get build-dep ffmpeg <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/h3>\n\n\n\n<p class=\"console\">$ git clone &#8211;depth 1 git:\/\/source.ffmpeg.org\/ffmpeg.git<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u69cb\u6210\u3059\u308b<\/h3>\n\n\n\n<p class=\"console pre\">$ cd ffmpeg $ .\/configure \\\n             &#8211;enable-nonfree \\\n             &#8211;enable-version3 \\\n             &#8211;prefix=\/usr\/local \\\n             &#8211;extra-version=&#8217;1~deb10u1+rpt1&#8242; \\\n             &#8211;toolchain=hardened \\\n             &#8211;incdir=\/usr\/include\/arm-linux-gnueabihf \\\n             &#8211;enable-gpl \\\n             &#8211;disable-stripping \\\n             &#8211;disable-filter=resample \\\n             &#8211;enable-gnutls \\\n             &#8211;enable-ladspa \\\n             &#8211;enable-libaom \\\n             &#8211;enable-libass \\\n             &#8211;enable-libbluray \\\n             &#8211;enable-libbs2b \\\n             &#8211;enable-libcaca \\\n             &#8211;enable-libcdio \\\n             &#8211;enable-libcodec2 \\\n             &#8211;enable-libflite \\\n             &#8211;enable-libfontconfig \\\n             &#8211;enable-libfreetype \\\n             &#8211;enable-libfribidi \\\n             &#8211;enable-libgme \\\n             &#8211;enable-libgsm \\\n             &#8211;enable-libjack \\\n             &#8211;enable-libmp3lame \\\n             &#8211;enable-libopenjpeg \\\n             &#8211;enable-libopenmpt \\\n             &#8211;enable-libopus \\\n             &#8211;enable-libpulse \\\n             &#8211;enable-librsvg \\\n             &#8211;enable-librubberband \\\n             &#8211;enable-libshine \\\n             &#8211;enable-libsnappy \\\n             &#8211;enable-libsoxr \\\n             &#8211;enable-libspeex \\\n             &#8211;enable-libssh \\\n             &#8211;enable-libtheora \\\n             &#8211;enable-libtwolame \\\n             &#8211;enable-libvidstab \\\n             &#8211;enable-libvorbis \\\n             &#8211;enable-libvpx \\\n             &#8211;enable-libwebp \\\n             &#8211;enable-libx265 \\\n             &#8211;enable-libxml2 \\\n             &#8211;enable-libxvid \\\n             &#8211;enable-libzmq \\\n             &#8211;enable-libzvbi \\\n             &#8211;enable-lv2 \\\n             &#8211;enable-omx \\\n             &#8211;enable-openal \\\n             &#8211;enable-opengl \\\n             &#8211;enable-sdl2 \\\n             &#8211;enable-omx-rpi \\\n             &#8211;enable-mmal \\\n             &#8211;enable-neon \\\n             &#8211;enable-libdc1394 \\\n             &#8211;enable-libdrm \\\n             &#8211;enable-libiec61883 \\\n             &#8211;enable-chromaprint \\\n             &#8211;enable-frei0r \\\n             &#8211;enable-libx264 \\\n             &#8211;enable-libaribb24 \\\n             &#8211;libdir=\/usr\/lib\/arm-linux-gnueabihf \\\n             &#8211;cpu=arm1176jzf-s \\\n             &#8211;arch=arm<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30f3\u30d1\u30a4\u30eb\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p class=\"console\">$ make -j4<br>$ sudo make install<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TS \u306e\u5b57\u5e55\u3092\u53d6\u308a\u51fa\u3059\u3002<\/h2>\n\n\n\n<p>\u3000TS \u306e\u5b57\u5e55\u306f\u3001\u4e00\u65e6\u53d6\u308a\u51fa\u3057\u3066\u304b\u3089\u3001mkv \u3067\u591a\u91cd\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b57\u5e55\u306e\u53d6\u308a\u51fa\u3057<\/h3>\n\n\n\n<p>\u3000\u53d6\u308a\u51fa\u3059\u5f62\u5f0f\u306f\u3001srt \u5f62\u5f0f\u3067\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ffmpeg -fflags +discardcorrupt -fix_sub_duration -i &lt;TS \u30d5\u30a1\u30a4\u30eb> -c:s srt -y &lt;srt \u30d5\u30a1\u30a4\u30eb><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b57\u5e55\u306e\u591a\u91cd\u5316<\/h3>\n\n\n\n<p>\u3000\u5b57\u5e55\u304c\u53d6\u308a\u51fa\u305b\u305f\u3089\u3001mkv \u5f62\u5f0f\u3067\u591a\u91cd\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ffmpeg -fflags +discardcorrupt -fix_sub_duration -i &lt;TS \u30d5\u30a1\u30a4\u30eb> -i &lt;srt \u30d5\u30a1\u30a4\u30eb> -map 0:v -map 0:a -map 1 -bsf:a aac_adtstoasc -c:a copy -c:v copy -c:s copy -aspect 16:9 -y &lt;mkv \u30d5\u30a1\u30a4\u30eb><\/p>\n\n\n\n<p>\u3000\u8a73\u3057\u3044\u4f7f\u3044\u65b9\u306f help \u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000TS \u306e\u5b57\u5e55\u3092\u6271\u3044\u305f\u304f\u306a\u3063\u305f\u306e\u3067\u3001ffmpeg \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002TS \u306e\u5b57\u5e55\u304c\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4eca\u307e\u3067\u4e3b\u306b mp4 \u306b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001mp4 \u306b\u5909\u63db\u3059\u308b\u3068\u5b57\u5e55\u306e\u7a2e\u985e\u304c\u9650\u3089\u308c\u308b\u306e\u3067 mkv \u306b\u5909\u63db [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":5,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":1148,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/853\/revisions\/1148"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}