[FFmpeg-user] Color conversion - 709 to 601 - HD > SD

Kevin Wells kevwells at hotmail.co.uk
Fri Jan 23 19:20:07 CET 2015


Hi, sorry for the bad formatting in the previous emails, hopefully this should be better, I have also attached the output log, just in case.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, bu the output file is now brighter than the original, so isn't doing the 709 to 601 conversion. 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/Original/TestInput.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/Done/TestOutput.mov"
And here is the output:ffmpeg -r 25 -i "/Volumes/Original/TestInput.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/Done/TestOutput.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/Original/TestInput.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/Done/TestOutput.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=  500 fps= 46 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%

 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.rtf
Type: text/richtext
Size: 8786 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20150123/e4c12336/attachment.rtx>


More information about the ffmpeg-user mailing list