<div dir="auto">Note there was additional discussion about using zimg/zscale filter in ffmpeg for getting p3-d65<div dir="auto"><br></div><div dir="auto"><a href="https://www.reddit.com/r/ffmpeg/comments/ty9c5k/color_metadata_dcip3/" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.reddit.com/r/ffmpeg/comments/ty9c5k/color_metadata_dcip3/</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><p>Â Â Â Zscale does have support for DCI white point P3 and D65 P3.
</p><p>
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Â Â </p><p><br></p><p>===</p><p><br></p><p>I wonder if such file plays in say mpv as HDR on your display?</p></div><div dir="auto"><br></div><div dir="auto">old ffmpeg patches (2016):</div><div dir="auto"><a href="http://ffmpeg.org/pipermail/ffmpeg-devel/2016-October/201962.html" target="_blank" rel="noreferrer">http://ffmpeg.org/pipermail/ffmpeg-devel/2016-October/201962.html</a><br></div><div dir="auto"><br></div><div dir="auto">"vf_colorspace: Add support for smpte 431/432 (dci/display p3) primaries" but previous 2 patches might be not so trivial ...</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><a href="https://discuss.pixls.us/t/experimenting-with-hlg-and-hdr10-for-still-images/23361?page=2" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://discuss.pixls.us/t/experimenting-with-hlg-and-hdr10-for-still-images/23361?page=2</a><br></div><div dir="auto"><br></div><div dir="auto">====</div><div dir="auto"><br></div><div dir="auto"><code>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</code><br></div><div dir="auto"><code><br></code></div><div dir="auto"><code>====</code></div><div dir="auto"><code><br></code></div><div dir="auto"><code>zimg2 should be in Debian since late 2021</code></div><div dir="auto"><code><br></code></div><div dir="auto"><code><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966059" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966059</a><br></code></div><div dir="auto"><code><br></code></div><div dir="auto"><code><pre>ffmpeg (7:4.3.2-2) experimental; urgency=medium
.
* debian/:
- Build with zimg (Closes: #<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966059" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">966059</a>)</pre><pre><br></pre><pre>I wonder if cingg should add zimg too?</pre></code></div></div>