<!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 12.10.2024 21:26, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky6V2sv_pWnNWk=_rHqc0crtMP83Y7WiihE-SNwtRSw4Yw@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">сб, 12 окт. 2024 г., 22:19
              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 12.10.2024 19:56, 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 г., 20:45 Terje J. 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>Den 12.10.2024 18:43, 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 г., 16:59 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>
                                        <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"
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> <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>
                            </blockquote>
                            <br>
                            Sorry, the same error as before:<br>
                            <br>
localhost:/home/cinelerra/cinelerra-5.1/bin/ffmpeg # cat encode.opts<br>
                            # apply at init encode<br>
                            #loglevel=error<br>
                            loglevel=debug<br>
                            threads=auto<br>
                            side_data_only_packets=1<br>
                            <br>
                            # cd /home/cinelerra/cinelerra-5.1<br>
                            <br>
                            bin/cin<br>
                            <br>
                            Load recent: dv01_07.dv<br>
                            Render to:
                            /Videoklipp/QSV/dv01_07_av1_qsv.mp4<br>
                            FFMPEG mp4<br>
                            Video wrench: Video Preset<br>
                            compression: av1_qsv.mp4<br>
                            Pixels: nv12<br>
                            preset 4<br>
                            b 1570k<br>
                            <br>
                            Cinelerra Message log:<br>
                            int FFMPEG::init_encoder(const char*):<br>
                            mismatch audio/video file format:
                            /Videoklipp/QSV/dv01_07_av1_qsv.mp4<br>
                            Cinelerra Error (widgets)<br>
                            Couldn't open /Videoklipp/QSV/dv01 07 av1
                            qsv.mp4<br>
                            Error rendering data<br>
                            <br>
                            Render::render_single: Session finished.<br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">what kind of audio compression you
                      use?</div>
                  </div>
                </blockquote>
                <br>
                Audio preset was set to h264.mp4<br>
                tried also h265.mp4 without any change<br>
                there is no aac available for av1_qsv<br>
                <blockquote type="cite">
                  <div dir="auto">
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">may be set video profile to
                      something else, then set in gui both av1_qsv.mp4
                      and relevant audio like aac?</div>
                  </div>
                </blockquote>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    Ok, I misunderstood when I tried something quite else below,
    software av1_svt.webm below.<br>
    Should aac audio be available for av1_qsv.mp4, I couldn't see it?<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky6V2sv_pWnNWk=_rHqc0crtMP83Y7WiihE-SNwtRSw4Yw@mail.gmail.com">
      <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> Rendered also to av1_svt.webm that worked as shown
                below. Then back again to av1_qsv.mp4 from scratch, but
                got the same error.<br>
                <br>
                Load recent: dv01_07.dv<br>
                Render to: /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                -----------<br>
                FFMPEG webm<br>
                Audio preset: opus.webm<br>
                Video Preset<br>
                compression: av1_svt.webm<br>
                Pixels: yuv420p<br>
                preset 4<br>
                b 1570k<br>
                ----------<br>
                Svt[warn]: Failed to set thread priority: Invalid
                argument<br>
                [SWR @ 0x7f7b47452b00] Using fltp internally between
                filters<br>
                [libopus @ 0x7f7b473d2500] No bit rate set. Defaulting
                to 96000 bps.<br>
                FFStream::encode_frame: encode failed.<br>
                file: /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                  err: Resource temporarily unavailable<br>
                FFStream::flush failed<br>
                :<a rel="noreferrer" moz-do-not-send="true">file:/Videoklipp/QSV/dv01_07_av1_svt.webm</a><br>
                  err: Operation not permitted<br>
                FFStream::encode_frame: encode failed.<br>
                file: /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                  err: Resource temporarily unavailable<br>
                FFStream::flush failed<br>
                :<a rel="noreferrer" moz-do-not-send="true">file:/Videoklipp/QSV/dv01_07_av1_svt.webm</a><br>
                  err: Operation not permitted<br>
                Svt[error]: deinit called without sending EOS!<br>
                Render::render_single: Session finished.<br>
                ** rendered 2832 frames in 109.469 secs, 25.870 fps<br>
                FFMPEG::open_decoder: some stream times estimated:
                /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                FFMPEG::open_decoder: some stream times estimated:
                /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                audio0 pad 32 -335 (367)<br>
                FFMPEG::open_decoder: some stream times estimated:
                /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                FFMPEG::open_decoder: some stream times estimated:
                /Videoklipp/QSV/dv01_07_av1_svt.webm<br>
                Total excess of backups: -50 <br>
                Session time: 0:27:05<br>
                Cpu time: user: 0:10:21.894 sys: 0:00:10.195<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">to be honest this log does not show SAME error
          about mismatching format, so it probably was only first half.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">can you try to cut av1_qsv.mp4 back to just
          first non-comment line?</div>
      </div>
    </blockquote>
    <br>
    I don't understand:<br>
    Can you explain "cut av1_qsv.mp4 back to just first non-comment
    line" ....?<br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky6V2sv_pWnNWk=_rHqc0crtMP83Y7WiihE-SNwtRSw4Yw@mail.gmail.com">
      <div dir="auto">
        <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>
                <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>
                            <br>
                            <br>
                            <blockquote type="cite">
                              <div dir="auto">
                                <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 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>
                                        </blockquote>
                                        <br>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>