[FFmpeg-user] Color conversion - 709 to 601
Kevin Wells
kevwells at hotmail.co.uk
Thu Jan 22 15:04:25 CET 2015
Hi, I am downscaling an HD movie from 1920x1080 to 720x576 and want to make sure the color conversion is done correctly, which with my current settings I am sure it is not. I am coming from an HD Prores HQ, going to an SD Prores HQ.With my current command (below) it is introducing a very faint green pattern / interference, I can see this when zooming into the video. If remove the colormatrix=bt709:bt601 altogether then the very faint green pattern / interference goes. So my question is do I need any color conversion (is ffmpeg already doing this for me) and if I do, what would be the correct way to apply this?
Here is my current command:
ffmpeg -r 25 -i "/Volumes/tmp/test.mov" -t 20 -af atempo=1.04166666667 -map 0:0 -vf scale=720:576,colormatrix=bt709:bt601 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:6 -map 0:7 -vcodec prores -profile:v 3 -c:a pcm_s16le -y "/Volumes/tmp/testOut.mov"
Here is the output:
ffmpeg -r 25 -i "/Volumes/tmp/test.mov" -t 20 -af atempo=1.04166666667 -map 0:0 -vf scale=720:576,colormatrix=bt709:bt601 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:6 -map 0:7 -vcodec prores -profile:v 3 -c:a pcm_s16le -y "/Volumes/tmp/testOut.mov"ffmpeg version 2.5.3-tessus Copyright (c) 2000-2015 the FFmpeg developers built on Jan 10 2015 01:19:50 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) configuration: --cc=/usr/bin/clang --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-libsoxr --enable-libwavpack --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --disable-indev=x11grab_xcb --enable-runtime-cpudetect libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat 56. 15.102 / 56. 15.102 libavdevice 56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/tmp/test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2014-12-23 17:56:48 Duration: 01:26:48.54, start: 0.000000, bitrate: 167427 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 1920x1080, 158160 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Apple ProRes 422 HQ timecode : 00:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FL), s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FR), s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (LFE), s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BL), s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BR), s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, downmix, s32 (24 bit), 2304 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler Stream #0:8(eng): Data: none (tmcd / 0x64636D74) (default) Metadata: creation_time : 2014-12-23 18:06:00 handler_name : Apple Alias Data Handler timecode : 00:00:00:00Output #0, mov, to '/Volumes/tmp/TestOut.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf56.15.102 Stream #0:0(eng): Video: prores (apch) (apch / 0x68637061), yuv422p10le, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 encoder : Lavc56.13.100 prores Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FL), s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FR), s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (LFE), s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:5(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (BL), s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:6(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (BR), s16 (24 bit), 768 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16le Stream #0:7(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, downmix, s16 (24 bit), 1536 kb/s (default) Metadata: creation_time : 2014-12-23 17:56:48 handler_name : Apple Alias Data Handler encoder : Lavc56.13.100 pcm_s16leStream mapping: Stream #0:0 -> #0:0 (prores (native) -> prores (native)) Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:2 -> #0:2 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:3 -> #0:3 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:4 -> #0:4 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:5 -> #0:5 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:6 -> #0:6 (pcm_s24le (native) -> pcm_s16le (native)) Stream #0:7 -> #0:7 (pcm_s24le (native) -> pcm_s16le (native))Press [q] to stop, [?] for helpframe= 38 fps=0.0 q=0.0 size= 7053kB time=00:00:01.88 bitrate=30706.8kbits/frame= 72 fps= 72 q=0.0 size= 14177kB time=00:00:03.78 bitrate=30716.6kbits/frame= 99 fps= 66 q=0.0 size= 19828kB time=00:00:04.76 bitrate=34113.4kbits/frame= 151 fps= 75 q=0.0 size= 30693kB time=00:00:06.68 bitrate=37617.9kbits/frame= 167 fps= 62 q=0.0 size= 34047kB time=00:00:06.68 bitrate=41729.2kbits/frame= 216 fps= 68 q=0.0 size= 44297kB time=00:00:08.60 bitrate=42177.0kbits/frame= 266 fps= 72 q=0.0 size= 54756kB time=00:00:11.48 bitrate=39052.3kbits/frame= 312 fps= 59 q=0.0 size= 64378kB time=00:00:13.38 bitrate=39414.5kbits/frame= 345 fps= 46 q=0.0 size= 71266kB time=00:00:14.36 bitrate=40638.3kbits/frame= 396 fps= 50 q=0.0 size= 81130kB time=00:00:16.28 bitrate=40808.9kbits/frame= 449 fps= 53 q=0.0 size= 91335kB time=00:00:18.20 bitrate=41097.2kbits/frame= 500 fps= 56 q=0.0 Lsize= 101594kB time=00:00:20.00 bitrate=41613.0kbits/s video:86555kB audio:15000kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.038209%
More information about the ffmpeg-user
mailing list