ср, 7 мая 2025 г., 18:38 Andrew Randrianasulu <randrianasulu@gmail.com>:
Using this page
https://www.reddit.com/r/ffmpeg/comments/17ma3mm/hdr_tone_mapping_not_working/

and our guide at
https://cinelerra-gg.org/download/CinelerraGG_Manual/File_naming_convention.html


I come up with this (working) line to put in file.opts for HDR to SDR
bt 709 100 nits mapping:

video_filter=zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv444p

But it only works with software decoding. At, like, 2.3 fps for full 4k frame.

And also you need to compile your ffmpeg used in cingg with z.img library.


Got it working with Vulkan hw decoding, not much faster, but leaves cingg a bit more responsive:

video_filter=zscale=tin=smpte2084:min=bt2020nc:pin=bt2020:rin=tv:t=smpte2084:m=bt2020nc:p=bt2020:r=tv,zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:p=bt709:m=bt709

monster line from 

https://forum.doom9.net/showpost.php?p=1898421&postcount=56

I think we better to put those examples somewhere in manual before I forgot them/lost my opts files ;)