[Cin] HDR footage from images via ffmpeg

Andrew Randrianasulu randrianasulu at gmail.com
Sat May 27 18:55:59 CEST 2023

Note there was additional discussion about using zimg/zscale filter in
ffmpeg for getting p3-d65



     Zscale does have support for DCI white point P3 and D65 P3.

ffmpeg -i INPUT.mp4 -c:v libx265 -crf 20 -vf
-color_primaries smpte431 -colorspace bt2020nc -color_trc bt2020_10bit
-color_range tv OUTPUT.mp4


I wonder if such file plays in say mpv as HDR on your display?

old ffmpeg patches (2016):

"vf_colorspace: Add support for smpte 431/432 (dci/display p3) primaries"
but previous 2 patches might be not so trivial ...



ffmpeg -loop 1 -r 24 -t 30 -i DSC02236.tif -vf
-c:v libx265 -preset medium -crf 26 -x265-params
"colorprim=bt2020:atc-sei=18:colormatrix=bt2020nc" naturalbridge.mp4


zimg2 should be in Debian since late 2021


ffmpeg (7:4.3.2-2) experimental; urgency=medium
   * debian/:
     - Build with zimg (Closes: #966059

I wonder if cingg should add zimg too?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230527/f18c27ad/attachment.htm>

More information about the Cin mailing list