gifからmp4への変換としてlinuxのffmpegを使用しています。
ffmpeg -i main.gif -crf 1 main.mp4
とすると、次のような表示の後に、main.mp4が出力されているのですが、
動画の品質を定めるオプションである-crfの数字を変化しても、動画の劣化具合が変化しません。
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.2.0 (crosstool-NG fa8859cb) configuration: --prefix=/xxx/anaconda3 --cc=/tmp/build/80754af9/ffmpeg_1526323631431/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264 libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100 Input #0, gif, from 'main.gif': Duration: N/A, bitrate: N/A Stream #0:0: Video: gif, bgra, 1000x1000, 10 fps, 10 tbr, 100 tbn, 100 tbc Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (main.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Stream mapping: Stream #0:0 -> #0:0 (gif (native) -> mpeg4 (native)) Press [q] to stop, [?] for help Output #0, mp4, to 'main.mp4': Metadata: encoder : Lavf58.12.100 Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1000x1000, q=2-31, 200 kb/s, 10 fps, 10240 tbn, 10 tbc Metadata: encoder : Lavc58.18.100 mpeg4 Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1 frame= 250 fps= 93 q=24.2 Lsize= 899kB time=00:00:24.90 bitrate= 295.6kbits/s speed=9.28x video:897kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.211386%
よく見ると、中央に下のような怪しい表示があります。
Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (main.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Stream mapping:
解決法をご存知の方、ご教示ください。
環境は次の通りです。
ffmpeg -version ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.2.0 (crosstool-NG fa8859cb) configuration: --prefix=/xxx/anaconda3 --cc=/tmp/build/80754af9/ffmpeg_1526323631431/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264 libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100
回答1件
あなたの回答
tips
プレビュー