<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ñб, 27 Ð¼Ð°Ñ 2023 г., 20:20 Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">randrianasulu@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ñб, 27 Ð¼Ð°Ñ 2023 г., 20:09 Phyllis Smith <<a href="mailto:phylsmith2017@gmail.com" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">phylsmith2017@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Certainly merits looking at to see how useful it might be to add.<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/sekrit-twc/zimg" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/sekrit-twc/zimg</a><br></div><div dir="auto"><br></div><div dir="auto">ah, c++17! so only new OSes with new compilers will get it ....</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">upd: it was only recently-merget cxx17 branch on github, 3.0.4 release apparently work on older os/compilers ...</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/sekrit-twc/zimg/releases/tag/release-3.0.4" rel="noreferrer noreferrer noreferrer" target="_blank">https://github.com/sekrit-twc/zimg/releases/tag/release-3.0.4</a><br></div><div dir="auto"><br></div><div dir="auto">"checking whether C++ compiler accepts -std=c++14... yes" on gcc 11.2 may be we can dive deeper in history ...</div><div dir="auto"><br></div><div dir="auto">may be 2.8?</div><div dir="auto"><br></div><div dir="auto"><a href="https://src.fedoraproject.org/repo/pkgs/zimg/">https://src.fedoraproject.org/repo/pkgs/zimg/</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 27, 2023 at 10:56 AM Andrew Randrianasulu via Cin <<a href="mailto:cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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 noreferrer noreferrer 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" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">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 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 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 noreferrer 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>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>
</blockquote></div></div></div>
</blockquote></div></div></div>