[FFmpeg-user] Issues with color space conversions bt601:bt709

Jeanne Rich jrich at laika.com
Tue Feb 3 21:51:38 CET 2015


I am creating a DNxHD 36 mxf from sRGB jpeg images. in version 2.0 of ffmpeg I used the colormatrix conversion of bt601:bt709 and the resulting mxf was very close to what we expected. We are in the process of upgrading ffmpeg to version 2.5.3, and with the same command the resulting mxf is washed out. What has changed between the two versions that would give me the washed out color? Is there a different way to maintain the colors of the sRGB frames? 

Below is the output of the command: 

dream:/laika/depts/prod_tech/jobs/ptd_kbo/vfx/seq/dev/test_kl/stopmo/review/proj/test/010:{742}'ffmpeg' '-r' '24.0' '-f' 'image2' '-i' 'dev.test_kl.test.010._L.%04d.jpg' '-f' 'mxf' '-c:v' 'dnxhd' '-b:v' '36M' '-s' '1920x1080' '-aspect' '1.77777777778' '-vf' 'colormatrix=bt601:bt709' '-r' '24.0' '-map_metadata' '-1:s' '-y' '/var/tmp/out.mxf' 
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers 
built on Jan 29 2015 12:13:53 with gcc 4.7.2 (GCC) 20120921 (Red Hat 4.7.2-2) 
configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/2.5.3 --enable-gpl --enable-nonfree --enable-pthreads --enable-static --enable-shared --enable-postproc --disable-debug --enable-avfilter --enable-zlib --enable-libvorbis --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-filter=movie --enable-libfreetype --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include -I/local/prod/b3p/2.0/fdk-aac/0.1.3/include -I/local/prod/b3p/2.0/x264/20141218/include -I/local/prod/b3p/2.0/lame/3.98.4/include -I/local/prod/b3p/2.0/libogg/1.3.0/include -I/local/prod/b3p/2.0/libvpx/1.1.0/include -I/local/prod/b3p/2.0/libvorbis/1.3.4/include' --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib -L/local/prod/b3p/2.0/fdk-aac/0.1.3/lib -L/local/prod/b3p/2.0/x264/20141218/lib -L/local/prod/b3p/2.0/lame/3.98.4/lib -L/local/prod/b3p/2.0/libogg/1.3.0/lib -L/local/prod/b3p/2.0/libvpx/1.1.0/lib -L/local/prod/b3p/2.0/libvorbis/1.3.4/lib -fPIC' 
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.100 
Input #0, image2, from 'dev.test_kl.test.010._L.%04d.jpg': 
Duration: 00:00:00.21, start: 0.000000, bitrate: N/A 
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1200:1200 DAR 16:9], 24 fps, 24 tbr, 24 tbn, 24 tbc 
[swscaler @ 0x18d70c0] deprecated pixel format used, make sure you did set range correctly 
Output #0, mxf, to '/var/tmp/out.mxf': 
Metadata: 
encoder : Lavf56.15.102 
Stream #0:0: Video: dnxhd, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-1024, 36000 kb/s, 24 fps, 24 tbn, 24 tbc 
Metadata: 
encoder : Lavc56.13.100 dnxhd 
Stream mapping: 
Stream #0:0 -> #0:0 (mjpeg (native) -> dnxhd (native)) 
Press [q] to stop, [?] for help 
frame= 5 fps=0.0 q=1.0 Lsize= 930kB time=00:00:00.20 bitrate=36570.9kbits/s 
video:920kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.091733% 



More information about the ffmpeg-user mailing list