Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HDR

ProRes

There are four Prores encoders, Prores, Prores_ks, Prores_aw and now with ffmpeg 5 VideoToolBox Prores, which is a hardware based OSX M1 encoder/decoder. 

...

Using this with the usual color space flags, seems to work well with the exception of ffmpeg itself, which needs the flags:-vf scale=in_color_matrix=bt709:out_color_matrix=bt709 added to the command to ensure the right input colorspace is recognised, e.g.:

ffmpeg.exe -i INPUTFILE.mov -compression_level 10 -pred mixed -pix_fmt rgba64be -sws_flags spline+accurate_rnd+full_chroma_int -vframes 1 -vf scale=in_color_matrix=bt709:out_color_matrix=bt709 OUTPUTFILE.png


However, other encoders seem to be recognised correctly, so there is clearly some metadata missing. I did try using the prores_metadata filter to try adding some additional parameters, but it didnt seem to help.

ffmpeg.exe -i ./chip-chart-yuvconvert\basicnclc.mov -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 chip-chart-yuvconvert\basicnclcmetadata.mov

TODO:

  • Figure out the missing metadata.
  • Wedge qscale values
  • Do some colorspace tests with different qscale values to see where color breaks down.

...

Numeric ValueString ValuesDescription
1bt709
9bt2020
11
DCI P3
12
P3 D65 / Display P3


Multimedia
nameScreen Recording 2022-02-28 at 8.02.05 PM.mov


Color Transfer Characteristic aka color_trc

...