<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 22 нояб. 2024 г., 20:37 Terje Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<br>
<br>
<br>
<div>On 11/22/24 18:12, Andrew Randrianasulu
wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пт, 22 нояб. 2024 г.,
20:07 Terje Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank" rel="noreferrer">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>On 11/22/24 17:58, Andrew Randrianasulu wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пт, 22 нояб.
2024 г., 19:55 Terje Hanssen <<a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer" target="_blank">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>On 11/22/24 18:41, Andrew Randrianasulu
wrote:<br>
</div>
<blockquote type="cite">
<pre>On Fri, Nov 22, 2024 at 2:52 PM Terje Hanssen <a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank"><terjejhanssen@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre>On 11/22/24 08:45, Andrew Randrianasulu wrote:
---------- Forwarded message ---------
От: Wang, Fei W <a href="mailto:fei.w.wang-at-intel.com@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank"><fei.w.wang-at-intel.com@ffmpeg.org></a>
Date: пт, 22 нояб. 2024 г., 09:10
Subject: Re: [FFmpeg-devel] qsvenc.c & AV_CODEC_FLAG_INTERLACED_DCT
To: <a href="mailto:ffmpeg-devel@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank">ffmpeg-devel@ffmpeg.org</a> <a href="mailto:ffmpeg-devel@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank"><ffmpeg-devel@ffmpeg.org></a>
On Thu, 2024-11-21 at 11:50 +0300, Andrew Randrianasulu wrote:
</pre>
<blockquote type="cite">
<pre>Hello.
Recently I teached cinelerra-gg to use qsv encoders in ffmpeg
(libavcodec)
and some test were working but some not.
We nailed it down to top-field first material, like HDV files. bff
files
like consumer version of DV and progressive worked fine.
I looked at source and ... I thought condition at
<a href="http://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/qsvenc.c#l852" rel="noreferrer noreferrer noreferrer" target="_blank">http://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/qsvenc.c#l852</a>
must contain case for bff, but I tried this and it was reportedly not
helping?
We currently set flags = ildct+ilme on interlaced streams, I hope to
avoid
special-casing qsv encoders, but may be we have no other choice?
I asked user (Terje) to add +ildct flag to his normal system ffmpeg
line
and it started to fail too:
<a href="https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009123.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009123.html</a>
</pre>
</blockquote>
<pre>AV1 doesn't support interlaced frame.
We can dual check to transcode hdv to av1_qsv again, as I did with ffmpeg in this post
<a href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg08314.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg08314.html</a>
My issue now currently on Kaby Lake is that I have no hdv.m2t file stored and could not find a download link with example hdv. Suggestion?
</pre>
</blockquote>
<pre><a href="https://archive.org/download/hdv01" rel="noreferrer noreferrer noreferrer" target="_blank">https://archive.org/download/hdv01</a></pre>
</blockquote>
<br>
Thanks, I downloaded FX1_01.mpg, which even
its wrong file extension is a 1080i50 HDV
recorded on a predecessor of my own Sony
FX7-E camcorder.)<br>
<br>
<font face="Courier New, Courier, monospace">mediainfo
FX1_01.mpg | egrep -i
"scan|bit|format|FileExtension"<br>
Format :
MPEG-TS<br>
Overall bit rate mode :
Variable<br>
Overall bit rate :
26.1 Mb/s<br>
Maximum Overall bit rate :
33.0 Mb/s<br>
FileExtension_Invalid :
ts m2t m2s m4t m4s tmf ts tp trp ty<br>
Format :
MPEG Video<br>
Format version :
Version 2<br>
Format profile :
Main@High 1440<br>
Format settings :
CustomMatrix / BVOP<br>
Format settings, BVOP :
Yes<br>
Format settings, Matrix :
Custom<br>
Format settings, GOP :
M=3, N=12<br>
Format settings, picture structure :
Frame<br>
Bit rate mode :
Constant<br>
Bit rate :
24.5 Mb/s<br>
Maximum bit rate :
25.0 Mb/s<br>
Bit depth :
8 bits<br>
Scan type :
Interlaced<br>
Scan order :
Top Field First<br>
Bits/(Pixel*Frame) :
0.629<br>
Format :
MPEG Audio<br>
Format version :
Version 1<br>
Format profile :
Layer 2<br>
Bit rate mode :
Constant<br>
Bit rate :
384 kb/s<br>
Format :
MPEG Video / MPEG Audio / / <br>
<br>
<br>
But unhappily, the HDV --> av1_qsv
transcoding I previous did on
i17-12700/DG2 WS<br>
<a href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg08314.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg08314.html</a><br>
</font>
<blockquote><font face="Courier New, Courier, monospace">HDV
--> av1_qsv -global_quality 25</font><br>
<font face="Courier New, Courier, monospace">-----------------------------------</font><br>
<font face="Courier New, Courier, monospace">ffmpeg
-hide_banner -qsv_device
/dev/dri/renderD128 -i hdv09_04.m2t
-pix_fmt nv12 -c:v av1_qsv
-global_quality 25
hdv09_04_av1_qsv_format_nv12_gq25.mp4</font><br>
<br>
<font face="Courier New, Courier, monospace">ffprobe
-hide_banner
hdv09_04_av1_qsv_format_nv12_gq25.mp4</font><br>
<font face="Courier New, Courier, monospace">
Stream #0:0[0x1](und): Video: av1
(libdav1d) (Main) (av01 / 0x31307661),
yuv420p(tv, bt709, top coded first
(swapped)), 1440x1080, 7902 kb/s, SAR
4:3 DAR 16:9, 24.99 fps, 25 tbr, 12800
tbn (default) <br>
</font></blockquote>
is not possible on my legacy KBL i7-8550U
Intel UHD Graphics 620 <br>
<br>
<font face="Courier New, Courier, monospace">[av1_qsv
@ 0x5641dd0f5440] This version of runtime
doesn't support AV1 encoding</font><br>
<br>
as confirmed by these limited capabilites <br>
<br>
<font face="Courier New, Courier, monospace">vainfo
| grep -i enc<br>
libva info: VA-API version 1.22.0<br>
libva info: Trying to open
/usr/lib64/dri/iHD_drv_video.so<br>
libva info: Found init function
__vaDriverInit_1_22<br>
libva info: va_openDriver() returns 0<br>
VAProfileMPEG2Simple :
VAEntrypointEncSlice<br>
VAProfileMPEG2Main :
VAEntrypointEncSlice<br>
VAProfileH264Main :
VAEntrypointEncSlice<br>
VAProfileH264Main :
VAEntrypointEncSliceLP<br>
VAProfileH264High :
VAEntrypointEncSlice<br>
VAProfileH264High :
VAEntrypointEncSliceLP<br>
VAProfileJPEGBaseline :
VAEntrypointEncPicture<br>
VAProfileH264ConstrainedBaseline:
VAEntrypointEncSlice<br>
VAProfileH264ConstrainedBaseline:
VAEntrypointEncSliceLP<br>
VAProfileVP8Version0_3 :
VAEntrypointEncSlice<br>
VAProfileHEVCMain :
VAEntrypointEncSlice<br>
VAProfileHEVCMain10 :
VAEntrypointEncSlice</font><br>
<br>
By the way, neither this attempt claims
about unsupported or wrong image structure
format !?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">may be it not even come to this line
and abort earlier? (in compiled languages
functions can be executed out of order they appear
in file)</div>
</div>
</blockquote>
<br>
HDV --> av1_qsv transcoded as referenced above on the
newer i17-12700/DG2<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">??</div>
<div dir="auto"><br>
</div>
<div dir="auto">you mean why default ffmpeg does not trip over
this line?</div>
<div dir="auto"><br>
</div>
<div dir="auto">it silently ignores interlace and makes
something flagged as interlaced but actually not?</div>
</div>
</blockquote>
<br>
We can have a closer look at the av1_qsv output, possibly with
loglevel verbose or debug on that WS, when I'm back again. I don't
know what ffmpeg really does here, but as far it is accelerated
(fps=561 for cfhd.mkv), viewable and playable, it will be good?<br>
</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">welll ..may be?</div><div dir="auto"><br></div><div dir="auto">If it works good enough for those goals may be you can just set cingg's format to progressive even if autodetect says interlaced, and try to render.</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><br>
<br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<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><br>
<br>
<blockquote type="cite">
<div dir="auto">
<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> <br>
<br>
<blockquote type="cite">
<blockquote type="cite">
<pre>You may add deinterlace filter
before encoder after apply this patch:
<a href="https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=13372" rel="noreferrer noreferrer noreferrer" target="_blank">https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=13372</a>
cmd:
ffmpeg -hide_banner -qsv_device /dev/dri/renderD128 -
hwaccel_output_format qsv -i input.mp4 -pix_fmt nv12 -vf
vpp_qsv=deinterlace=advanced -c:v av1_qsv -f null -
Thanks
Fei
</pre>
<blockquote type="cite">
<pre>_______________________________________________
ffmpeg-devel mailing list
<a href="mailto:ffmpeg-devel@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank">ffmpeg-devel@ffmpeg.org</a>
<a href="https://ffmpeg.org/mailman/listinfo/ffmpeg-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/ffmpeg-devel</a>
To unsubscribe, visit link above, or email
<a href="mailto:ffmpeg-devel-request@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank">ffmpeg-devel-request@ffmpeg.org</a> with subject "unsubscribe".
</pre>
</blockquote>
<pre>_______________________________________________
ffmpeg-devel mailing list
<a href="mailto:ffmpeg-devel@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank">ffmpeg-devel@ffmpeg.org</a>
<a href="https://ffmpeg.org/mailman/listinfo/ffmpeg-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/ffmpeg-devel</a>
To unsubscribe, visit link above, or email
<a href="mailto:ffmpeg-devel-request@ffmpeg.org" rel="noreferrer noreferrer noreferrer" target="_blank">ffmpeg-devel-request@ffmpeg.org</a> with subject "unsubscribe".
</pre>
</blockquote>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div></div></div>