[Cin] HDR footage from images via ffmpeg
Andrew Randrianasulu
randrianasulu at gmail.com
Sat May 27 19:20:12 CEST 2023
сб, 27 мая 2023 г., 20:09 Phyllis Smith <phylsmith2017 at gmail.com>:
> Certainly merits looking at to see how useful it might be to add.
>
https://github.com/sekrit-twc/zimg
ah, c++17! so only new OSes with new compilers will get it ....
>
> 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/cc1e41fd/attachment-0001.htm>
More information about the Cin
mailing list