<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<br>
<div class="moz-cite-prefix">Den 13.11.2024 16:10, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite"
cite="mid:CA+rFky7pF4QmPj=uO7TT-6Yya9QN_2esbENffCh_DsO3QqwCwg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ср, 13 нояб. 2024 г.,
17:54 Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<br>
<br>
<div>Den 13.11.2024 14:31, skrev Andrew Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ср, 13 нояб.
2024 г., 15:17 Terje J. Hanssen via Cin <<a
href="mailto:cin@lists.cinelerra-gg.org"
rel="noreferrer noreferrer noreferrer"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">cin@lists.cinelerra-gg.org</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> After finishing the three hevc_qsv
presets for _8b420, _10b420 and _10b422 mp4<br>
<a
href="https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009039.html"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009039.html</a><br>
<br>
I thought to do the corresponding for
hevc_vaapi<br>
<br>
However I am struggling to get 10bit 422
output rendered from Cingg, which so far
falls back to 10bit 420 chroma subsampling<br>
<br>
<font face="Courier New, Courier, monospace">fprobe
-hide_banner hd01_hevc_vaapi_10b422.mp4<br>
Duration: 00:01:11.20, start: 0.000000,
bitrate: 11082 kb/s<br>
Stream #0:0[0x1](und): Video: hevc (Main
10) (hev1 / 0x31766568), yuv420p10le(tv,
bt709/unknown/unknown, top coded first
(swapped)), 1920x1080 [SAR 1:1 DAR 16:9],
11080 kb/s, 25 fps, 25 tbr, 12800 tbn
(default)<br>
<br>
<br>
In a previous thread I proved that ffmpeg
hevc_vaapi encoding has this 10bit-422
capability<br>
3) 10-bit yuv422p10le hevc_vaapi encoding
using -vf 'format=y210,hwupload'<br>
<a
href="https://lists.cinelerra-gg.org/pipermail/cin/2024-November/008982.html"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2024-November/008982.html</a><br>
<br>
<br>
And yes, there was also issues before
hevc_qsv_10b422.mp4 combinations Pixel
format/profile finally succeeded.<br>
But here are some differences, yet. While
hevc_qsv provided a Pixels drop down menu
with pixel formats,<br>
hevc_vaapi just has a single "vaapi" pixel
format.<br>
<br>
Any idea why, and what can fulfill the
vaapi 10bit 422 encoding here?<br>
</font></div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">I have some idea (hack add some
pixel formats to hevc_vaapi, will only be usable
with internal ffmpeg)</div>
</div>
</blockquote>
<br>
Just to clarify: my tests vaapi tests and qsv tests are
run on Cingg with the onevpl patch and internal ffmpeg<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">but for now you can try to modify
same place my 10bit encoding patch modified, just
with yuv422p10 instead of 420p10.</div>
</div>
</blockquote>
<br>
Exactly how and where?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">there should be line (after you patch cingg with
10bit patch) in cinelerra/ffmpeg.C</div>
<div dir="auto"><br>
</div>
<div dir="auto">if (tenbit_enc) frames_ctx->sw_format =
AV_PIX_FMT_P010LE;</div>
<div dir="auto"><br>
</div>
<div dir="auto">you need to replace AV_PX_FMT part...</div>
<div dir="auto"><br>
</div>
<div dir="auto">with AV_PIX_FMT_Y210LE ?</div>
<div dir="auto"><br>
</div>
<div dir="auto">recompile cingg</div>
<div dir="auto"><br>
</div>
<div dir="auto">now when you set </div>
<div dir="auto"><br>
</div>
<div dir="auto">export CIN_10BIT_ENC=1</div>
<div dir="auto"><br>
</div>
<div dir="auto">before launching cin </div>
<div dir="auto"><br>
</div>
<div dir="auto">it *may be* will give you y422 10bit encoding
for hevc_vaapi.</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> <br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
Yes, but too much. Now it seems like all presets based on nv12,
p010le and y210le respectively end up as yuv422p10le format. <br>
<br>
<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CA+rFky7pF4QmPj=uO7TT-6Yya9QN_2esbENffCh_DsO3QqwCwg@mail.gmail.com">
<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>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">sorry, a bit busy with other issues.</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><font
face="Courier New, Courier, monospace"> <br>
<br>
<br>
<br>
</font> </div>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">Cin@lists.cinelerra-gg.org</a><br>
<a
href="https://lists.cinelerra-gg.org/mailman/listinfo/cin"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>