[Cin] HDR footage from images via ffmpeg

Phyllis Smith phylsmith2017 at gmail.com
Sat May 27 19:09:05 CEST 2023


Certainly merits looking at to see how useful it might be to add.

On Sat, May 27, 2023 at 10:56 AM Andrew Randrianasulu via Cin <
cin at lists.cinelerra-gg.org> wrote:

> Note there was additional discussion about using zimg/zscale filter in
> ffmpeg for getting p3-d65
>
> https://www.reddit.com/r/ffmpeg/comments/ty9c5k/color_metadata_dcip3/
>
>
> ====
>
>      Zscale does have support for DCI white point P3 and D65 P3.
>
> ffmpeg -i INPUT.mp4 -c:v libx265 -crf 20 -vf
> zscale=r=limited:m=2020_ncl:t=2020_10:p=smpte431:c=topleft,format=yuv420p10
> -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):
> http://ffmpeg.org/pipermail/ffmpeg-devel/2016-October/201962.html
>
> "vf_colorspace: Add support for smpte 431/432 (dci/display p3) primaries"
> but previous 2 patches might be not so trivial ...
>
>
>
> https://discuss.pixls.us/t/experimenting-with-hlg-and-hdr10-for-still-images/23361?page=2
>
> ====
>
> ffmpeg -loop 1 -r 24 -t 30 -i DSC02236.tif -vf
> pad=3840:2160:302:0:black,zscale=tin=linear:t=arib-std-b67:npl=800:m=bt2020nc,format=yuv420p10le
> -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
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966059
>
> ffmpeg (7:4.3.2-2) experimental; urgency=medium
>  .
>    * debian/:
>      - Build with zimg (Closes: #966059 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966059>)
>
>
> I wonder if cingg should add zimg too?
>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230527/b1d3ca84/attachment.htm>


More information about the Cin mailing list