<!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 24.11.2024 22:22, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky508bsBgoAsCtRdFOBduGQRn3U4KAcvXBEqZ0qeFPwpgg@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">вс, 24 нояб. 2024 г.,
              19:45 Terje J. Hanssen <<a
                href="mailto:terjejhanssen@gmail.com"
                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 23.11.2024 13:24, skrev Andrew Randrianasulu:<br>
                </div>
                <blockquote type="cite">
                  <div dir="auto">
                    <div><br>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">сб, 23 нояб.
                          2024 г., 15:15 Terje Hanssen <<a
                            href="mailto:terjejhanssen@gmail.com"
                            target="_blank" rel="noreferrer"
                            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>On 11/22/24 18:54, 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:37 Terje
                                      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>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"
rel="noreferrer 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>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 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>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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true"><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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true"><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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">ffmpeg-devel@ffmpeg.org</a> <a
href="mailto:ffmpeg-devel@ffmpeg.org"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer"
target="_blank" moz-do-not-send="true"><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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2024-November/009123.html</a>
</pre>
                                                          </blockquote>
                                                          <pre>AV1 doesn't support interlaced frame.</pre>
                                                          </blockquote>
                                                          </blockquote>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </blockquote>
                                                  </div>
                                                </blockquote>
                                              </div>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                Tried also the cmd as suggested from Fei Wang:<br>
                <br>
                <font face="monospace">ffmpeg -hide_banner -qsv_device
                  /dev/dri/renderD128 -hwaccel_output_format qsv -i
                  hdv09_04.m2t -pix_fmt nv12 -vf
                  vpp_qsv=deinterlace=advanced -c:v av1_qsv -f null -<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>
                  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>
                  [mpeg2video @ 0x55908d205300] Invalid frame dimensions
                  0x0.<br>
                      Last message repeated 3 times<br>
                  [mpegts @ 0x55908d1aa480] PES packet size mismatch<br>
                  [mpegts @ 0x55908d1aa480] Packet corrupt (stream = 1,
                  dts = 258142320).<br>
                  [mpegts @ 0x55908d1aa480] Could not find codec
                  parameters for stream 2 (Unknown: none ([160][0][0][0]
                  / 0x00A0)): unknown codec<br>
                  Consider increasing the value for the
                  'analyzeduration' (0) and 'probesize' (5000000)
                  options<br>
                  [mpegts @ 0x55908d1aa480] Could not find codec
                  parameters for stream 3 (Unknown: none ([161][0][0][0]
                  / 0x00A1)): unknown codec<br>
                  Consider increasing the value for the
                  'analyzeduration' (0) and 'probesize' (5000000)
                  options<br>
                  Input #0, mpegts, from 'hdv09_04.m2t':<br>
                    Duration: 00:03:59.06, start: 2629.496000, bitrate:
                  26110 kb/s<br>
                    Program 100 <br>
                    Stream #0:0[0x810]: Video: mpeg2video (Main)
                  ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top
                  first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25
                  fps, 25 tbr, 90k tbn<br>
                        Side data:<br>
                          cpb: bitrate max/min/avg: 25000000/0/0 buffer
                  size: 7340032 vbv_delay: N/A<br>
                    Stream #0:1[0x814]: Audio: mp2 (mp3float)
                  ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384
                  kb/s<br>
                    Stream #0:2[0x815]: Unknown: none ([160][0][0][0] /
                  0x00A0)<br>
                    Stream #0:3[0x811]: Unknown: none ([161][0][0][0] /
                  0x00A1)<br>
                  Stream mapping:<br>
                    Stream #0:0 -> #0:0 (mpeg2video (native) ->
                  av1 (av1_qsv))<br>
                    Stream #0:1 -> #0:1 (mp2 (native) -> pcm_s16le
                  (native))<br>
                  Press [q] to stop, [?] for help<br>
                  [av1_qsv @ 0x55908d2dd280] Using the constant
                  quantization parameter (CQP) by default. Please use
                  the global_quality option and other options for a
                  quality-based mode or the b option and other options
                  for a bitrate-based mode if the default is not the
                  desired choice.<br>
                  Output #0, null, to 'pipe:':<br>
                    Metadata:<br>
                      encoder         : Lavf61.7.100<br>
                    Stream #0:0: Video: av1, nv12(tv, bt709, top coded
                  first (swapped)), 1440x1080 [SAR 4:3 DAR 16:9],
                  q=2-31, 25 fps, 25 tbn<br>
                        Metadata:<br>
                          encoder         : Lavc61.19.100 av1_qsv<br>
                    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo,
                  s16, 1536 kb/s<br>
                        Metadata:<br>
                          encoder         : Lavc61.19.100 pcm_s16le<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 167 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 183 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 194 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 196 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 198 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 199 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 208 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 199 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 207 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 220 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 199 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 207 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 202 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 207 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 205 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 182 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 202 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 183 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 194 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 208 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 202 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 191 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 187 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 190 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 212 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 220 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 200 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 197 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 204 times<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 125 times<br>
                  [mpegts @ 0x55908d1aa480] PES packet size mismatch<br>
                  [mpegts @ 0x55908d1aa480] Packet corrupt (stream = 1,
                  dts = 258142320).<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 8 times<br>
                  [mpeg2video @ 0x55908d232400] ac-tex damaged at 10 61<br>
                  [mpeg2video @ 0x55908d232400] Warning MVs not
                  available<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                  [mpeg2video @ 0x55908d232400] concealing 630 DC, 630
                  AC, 630 MV errors in P frame<br>
                  [vist#0:0/mpeg2video @ 0x55908d354b40] [dec:mpeg2video
                  @ 0x55908d320d00] corrupt decoded frame<br>
                  [null @ 0x55908d355c00] Application provided invalid,
                  non monotonically increasing dts to muxer in stream 0:
                  -140737488355328 >= -140737488355328<br>
                      Last message repeated 33 times<br>
                  [out#0/null @ 0x55908d261140] video:45168KiB
                  audio:44770KiB subtitle:0KiB other streams:0KiB global
                  headers:0KiB muxing overhead: unknown<br>
                  frame= 5963 fps=399 q=-0.0 Lsize=N/A
                  time=-1563749870:36:53.12 bitrate=N/A speed=N/A <br>
                  <br>
                </font>
                <blockquote type="cite">
                  <div dir="auto">
                    <div>
                      <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>
                                  <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>
                                              <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>
                                                          <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">
                                                          <blockquote
                                                          type="cite"> </blockquote>
                                                          </blockquote>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </blockquote>
                                                  </div>
                                                </blockquote>
                                              </div>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                            <br>
                            I wonder if AV1 generic doesn't support
                            interlaced input video, then neither AV1
                            software encoders like av1_svt should be
                            able to do it. Or may this mean interlaced
                            output?<br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">*i think* specification allow it,
                      just current hw implementation via qsv  does not
                      exist (yet?).</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">You better ask some intel engineers
                      about that.</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">............snip<br>
                    </div>
                    <div dir="auto"><br>
                      <blockquote type="cite">
                        <div dir="auto">
                          <div>
                            <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>
                                        <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>
                                                    <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>
                                                          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 noreferrer noreferrer"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">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>
                                                        </div>
                                                      </blockquote>
                                                    </div>
                                                  </div>
                                                </div>
                                              </blockquote>
                                            </div>
                                          </blockquote>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                              </blockquote>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </blockquote>
                .........................snip<br>
                <blockquote type="cite">
                  <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>
                                  <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>
                                              <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>
                                                          <div
class="gmail_quote">
                                                          <blockquote
class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div> <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>
                            </blockquote>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
                Tried my own tff 1080i50 HDV input with FFmpeg on
                i7-12700/DG2 again and got No av1_qsv errors:<br>
                <br>
                <font face="monospace">HDV --> av1_qsv nv12
                  -global_quality 25<br>
                  -----------------------------------<br>
                  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<br>
                     frame= 5963 fps=561 q=-0.0 Lsize=  234099KiB
                  time=00:03:58.77 bitrate=8031.5kbits/s speed=22.5x   <br>
                  <br>
                  ffprobe -hide_banner
                  hdv09_04_av1_qsv_format_nv12_gq25.mp4</font><font
                  face="monospace"><br>
                    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>
                  <br>
                  mediainfo hdv09_04_av1_qsv_format_nv12_gq25.mp4 |
                  egrep -i "scan|bit|format"<br>
                  Complete name                            :
                  hdv09_04_av1_qsv_format_nv12_gq25.mp4<br>
                  Format                                   : MPEG-4<br>
                  Format profile                           : Base Media<br>
                  Overall bit rate                         : 8 021 kb/s<br>
                  Format                                   : AV1<br>
                  Format/Info                              : AOMedia
                  Video 1<br>
                  Format profile                           : <a
                    href="mailto:Main@L4.0" target="_blank"
                    rel="noreferrer" moz-do-not-send="true"
                    class="moz-txt-link-freetext">Main@L4.0</a><br>
                  Bit rate                                 : 7 903 kb/s<br>
                  Bit depth                                : 8 bits<br>
                  Scan type                                : Interlaced<br>
                  Scan type, store method                  : Interleaved
                  fields<br>
                  Scan order                               : Top Field
                  First<br>
                  Bits/(Pixel*Frame)                       : 0.203<br>
                  Format                                   : AAC LC<br>
                  Format/Info                              : Advanced
                  Audio Codec Low Complexity<br>
                  Bit rate mode                            : Constant<br>
                  Bit rate                                 : 132 kb/s <br>
                  <br>
                  <br>
                  Also FHD --> av1_qsv with p010le works<br>
                  <br>
                </font><br>
                <blockquote type="cite">
                  <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">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>
                            </blockquote>
                            <br>
                            I'll try that also.<br>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                I can't notice differences at playback with VLC and
                FFplay (other than 16:9 vs 4:3 format as usual). And
                both visually with good qualities in my eyes.<br>
                <br>
                <font face="monospace">Cingg Set Format Interlace Mode:
                  Not interlaced<br>
                  did the trick and both hdv and hd could be rendered <br>
                  FFprobe reported it is pgogressiv, while native FFmpeg
                  transcoding still say interlaced.<br>
                </font></div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">But do files rendered by cingg set to
          progressive and ffmpeg from same tff source differ visually?</div>
      </div>
    </blockquote>
    <br>
    No. It is easy to see during VLC  playback that neither av1_qsv from
    Cin/ffmpeg is progressive, but rather interlaced:<br>
    Pause during horizontal movements (camcorder panning) shows
    interlaced vertical edges. Then shortcut "D" on this still image
    swithch it to deinterlaced and smoother edges. This is on a computer
    LCD monitor.<br>
    <br>
    I rendered also with global_quality=25 (switched on in Cingg
    preset), which then gives higher bitrate and quality comparable with
    the output from the native ffmpeg 7.1.<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky508bsBgoAsCtRdFOBduGQRn3U4KAcvXBEqZ0qeFPwpgg@mail.gmail.com">
      <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><font face="monospace"> <br>
                  HDV --> av1_qsv<br>
                  <br>
                  av1_qsv_8b420.mp4<br>
                  mp4 av1_qsv<br>
                  # av1_qsv_8b420<br>
                  cin_pix_fmt=nv12<br>
                  profile=main<br>
                  # global_quality=25<br>
                  <br>
                  ** rendered 5972 frames in 10.026 secs, 595.651 fps<br>
                  <br>
                  ----------<br>
                  <br>
                  ffprobe -hide_banner hdv09_04_av1_qsv.mp4<br>
                  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                  'hdv09_04_av1_qsv.mp4':<br>
                    Metadata:<br>
                      major_brand     : isom<br>
                      minor_version   : 512<br>
                      compatible_brands: isomav01iso2mp41<br>
                      encoder         : Lavf61.1.100<br>
                    Duration: 00:03:58.88, start: 0.000000, bitrate:
                  1533 kb/s<br>
                    Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main)
                  (av01 / 0x31307661), yuv420p(tv,
                  bt709/unknown/unknown, progressive), 1440x1080, 1532
                  kb/s, SAR 4:3 DAR 16:9, 25 fps, 25 tbr, 12800 tbn
                  (default)<br>
                    <br>
                  =====================<br>
                  <br>
                  FHD --> av1_qsv<br>
                  <br>
                  av1_qsv_10b420.mp4<br>
                  mp4 av1_qsv<br>
                  # av1_qsv_10b420<br>
                  cin_pix_fmt=p010le<br>
                  profile=main<br>
                  # global_quality=25<br>
                  <br>
                  ** rendered 1780 frames in 42.035 secs, 42.346 fps<br>
                  <br>
                  -------------------<br>
                  <br>
                  ffprobe -hide_banner hd01_av1_qsv.mp4<br>
                  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                  'hd01_av1_qsv.mp4':<br>
                    Metadata:<br>
                      major_brand     : isom<br>
                      minor_version   : 512<br>
                      compatible_brands: isomav01iso2mp41<br>
                      encoder         : Lavf61.1.100<br>
                    Duration: 00:01:11.20, start: 0.000000, bitrate:
                  1070 kb/s<br>
                    Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main)
                  (av01 / 0x31307661), yuv420p10le(tv,
                  bt709/unknown/unknown, progressive), 1920x1080, 1070
                  kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn
                  (default)<br>
                  <br>
                </font><br>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>