ffmpeg -threads 16 -i input1.mp4 -vf zscale=t=linear:npl=57,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v libx264 -preset fast -crf 18 output.mp4
https://www.reddit.com/r/ffmpeg/comments/lrqqen/hdr_to_sdr_tone_mapping_issues_help/
ffmpeg.exe -i input_path -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p,zscale=s=1920x1080 -c:v libx264 -preset slow -crf 18 -c:a copy output_path
https://www.bilibili.com/read/cv3936575
ffmpeg -i HDR.mkv -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p SDR.mkv
https://www.jianshu.com/p/385dad92d741