<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 12 окт. 2024 г., 16:59 Terje J. 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>
    <div>Den 12.10.2024 15:09, skrev Terje J.
      Hanssen:<br>
    </div>
    <blockquote type="cite">
      
      <br>
      <br>
      <div>Den 12.10.2024 14:39, skrev Andrew
        Randrianasulu:<br>
      </div>
      <blockquote type="cite">
        
        <div dir="auto">
          <div><br>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">сб, 12 окт. 2024 г.,
                13:23 Terje J. Hanssen via Cin <<a href="mailto:cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">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> <br>
                  <br>
                  <div>Den 12.10.2024 12:08, skrev Terje J. Hanssen:<br>
                  </div>
                  <blockquote type="cite">  An overview over the system
                    FFmpeg 7.x supported QSV pixel formats and profiles:<br>
                    <br>
                    <br>
                    <font face="Courier New, Courier, monospace">ffmpeg
                      -hide_banner -h encoder=hevc_qsv | egrep
                      'Supported|profile|main'<br>
                          Supported hardware devices: qsv qsv qsv<br>
                          Supported pixel formats: nv12 p010le p012le
                      yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le<br>
                        -profile           <int>       
                      E..V....... (from 0 to INT_MAX) (default unknown)<br>
                           main            1            E..V.......<br>
                           main10          2            E..V.......<br>
                           mainsp          3            E..V.......<br>
                           main            0            E..V.......<br>
                      <br>
                      <br>
                      ffmpeg -hide_banner -h encoder=h264_qsv | egrep
                      'Supported|profile|main'<br>
                          Supported hardware devices: qsv qsv qsv<br>
                          Supported pixel formats: nv12 qsv<br>
                        -profile           <int>       
                      E..V....... (from 0 to INT_MAX) (default unknown)<br>
                           main            77           E..V.......<br>
                    </font></blockquote>
                </div>
              </blockquote>
            </div>
          </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">I think we can concentrate on av1 for now.</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">does it fail if you add "-profile main" to
            ffmpeg command line for dv av1 encode?</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">dv due to it being software codec, so ffmpeg
            forced to push and convert frames from system memory, as
            opposed to hdv (hw) = > av1 on-gpu transcode)</div>
          <div dir="auto"><br>
          </div>
        </div>
      </blockquote>
      <br>
      No, it doesn't fail:<br>
    </blockquote>
    <br>
    but claims:<br>
    "Please use -profile:a or -profile:v, -profile is ambiguous"</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">ah, I think it mostly relevant to ffmpeg as cli application.</div><div dir="auto"><br></div><div dir="auto">Now, moving to cingg, does adding </div><div dir="auto"><br></div><div dir="auto">preset 4</div><div dir="auto">b 1570k</div><div dir="auto"><br></div><div dir="auto">into profile file</div><div dir="auto"><br></div><div dir="auto">fix anything?</div><div dir="auto"><br></div><div dir="auto">you can change loglevel to debug in bin/ffmpeg/encode.opts too, it will produce bugger log, hopefully with more detailed error msg.</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>
    <blockquote type="cite"> <br>
      ffmpeg -hide_banner -hwaccel_output_format qsv -qsv_device
      /dev/dri/renderD128 -i dv01_07.dv -c:v av1_qsv -preset 4 -profile
      main -b:v 1570k dv01_07_av1_qsv_main_pr4_bv1570k.webm<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>
      [dv @ 0x5606d5914c00] Estimating duration from bitrate, this may
      be inaccurate<br>
      Input #0, dv, from 'dv01_07.dv':<br>
        Metadata:<br>
          timecode        : 01:09:35:09<br>
        Duration: 00:01:53.28, start: 0.000000, bitrate: 28800 kb/s<br>
        Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR
      4:3], 28800 kb/s, 60k fps, 25 tbr, 60k tbn<br>
        Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s<br>
      Please use -profile:a or -profile:v, -profile is ambiguous<br>
      Stream mapping:<br>
        Stream #0:0 -> #0:0 (dvvideo (native) -> av1 (av1_qsv))<br>
        Stream #0:1 -> #0:1 (pcm_s16le (native) -> opus (libopus))<br>
      Press [q] to stop, [?] for help<br>
      [libopus @ 0x5606d5ac5100] No bit rate set. Defaulting to 96000
      bps.<br>
      Output #0, webm, to 'dv01_07_av1_qsv_main_pr4_bv1570k.webm':<br>
        Metadata:<br>
          timecode        : 01:09:35:09<br>
          encoder         : Lavf61.1.100<br>
        Stream #0:0: Video: av1, nv12(bottom coded first (swapped)),
      720x576 [SAR 16:15 DAR 4:3], q=2-31, 1570 kb/s, 25 fps, 1k tbn<br>
            Metadata:<br>
              encoder         : Lavc61.3.100 av1_qsv<br>
        Stream #0:1: Audio: opus, 48000 Hz, stereo, s16, 96 kb/s<br>
            Metadata:<br>
              encoder         : Lavc61.3.100 libopus<br>
      [out#0/webm @ 0x5606d591cf40] video:22613KiB audio:1186KiB
      subtitle:0KiB other streams:0KiB global headers:0KiB muxing
      overhead: 0.223557%<br>
      frame= 2832 fps=1764 q=-0.0 Lsize=   23852KiB time=00:01:53.24
      bitrate=1725.5kbits/s speed=70.5x   <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>
                  <blockquote type="cite"><font face="Courier New, Courier, monospace"> <br>
                    </font></blockquote>
                  <br>
                  <font face="Courier New, Courier, monospace">hevc_qsv
                    and h264_qsv encoders also have "high" profile:<br>
                    <br>
                    <br>
                    ffmpeg -hide_banner -h encoder=hevc_qsv | egrep
                    'Supported|profile|main|high'<br>
                        Supported hardware devices: qsv qsv qsv <br>
                        Supported pixel formats: nv12 p010le p012le
                    yuyv422 y210le qsv bgra x2rgb10le vuyx xv30le<br>
                      -profile           <int>        E..V.......
                    (from 0 to INT_MAX) (default unknown)<br>
                         main            1            E..V.......<br>
                         main10          2            E..V.......<br>
                         mainsp          3            E..V.......<br>
                      -tier              <int>        E..V.......
                    Set the encoding tier (only level >= 4 can
                    support high tier) (from 0 to 256) (default high)<br>
                         main            0            E..V.......<br>
                         high            256          E..V.......<br>
                    <br>
                    <br>
                    ffmpeg -hide_banner -h encoder=h264_qsv | egrep
                    'Supported|profile|main|high'<br>
                        Supported hardware devices: qsv qsv qsv <br>
                        Supported pixel formats: nv12 qsv<br>
                      -profile           <int>        E..V.......
                    (from 0 to INT_MAX) (default unknown)<br>
                         main            77           E..V.......<br>
                         high            100          E..V.......<br>
                    <br>
                    <br>
                    <br>
                  </font>
                  <blockquote type="cite"><font face="Courier New, Courier, monospace"> <br>
                      ffmpeg -hide_banner -h encoder=av1_qsv | egrep
                      'Supported|profile|main'<br>
                          Supported hardware devices: qsv qsv qsv<br>
                          Supported pixel formats: nv12 p010le qsv<br>
                        -profile           <int>       
                      E..V....... (from 0 to INT_MAX) (default unknown)<br>
                           main            1            E..V.......<br>
                      <br>
                      <br>
                      ffmpeg -hide_banner -h encoder=vp9_qsv | egrep
                      'Supported|profile|main'<br>
                          Supported hardware devices: qsv qsv qsv<br>
                          Supported pixel formats: nv12 p010le vuyx qsv
                      xv30le<br>
                        -profile           <int>       
                      E..V....... (from 0 to INT_MAX) (default unknown)<br>
                           profile0        1            E..V.......<br>
                           profile1        2            E..V.......<br>
                           profile2        3            E..V.......<br>
                           profile3        4            E..V.......<br>
                      <br>
                      <br>
                      ffmpeg -hide_banner -h encoder=vp9_qsv | egrep
                      'Supported|main'<br>
                          Supported hardware devices: qsv qsv qsv<br>
                          Supported pixel formats: nv12 p010le vuyx qsv
                      xv30le</font><br>
                  </blockquote>
                  <br>
                </div>
                -- <br>
                Cin mailing list<br>
                <a href="mailto:Cin@lists.cinelerra-gg.org" rel="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" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
              </blockquote>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </div>

</blockquote></div></div></div>