ffmpegcolor-space

ffmpeg Format settings, Matrix bt709


Does anyone know how I can achieve the following color space (bt.709) via FFmpeg?
Here is what I have now in my files...

enter image description here

As you can see there is Format settings, Matrix as default, how can I set it like this :

Thank you


Solution

  • With re-encoding, use

    ffmpeg -i test.mxf -c copy -c:v mpeg2video -b:v 5000k \
           -color_primaries 1 -color_trc 1 -colorspace 1 out.mxf
    

    In Mediainfo, at the end of the video stream attributes, you should see the three color-related entries. Note that Format settings (Matrix) is related to MPEG quantization and not color.