<!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:54, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky4fcSseNR4ehtBUfGLuoaYKJmqpkxbj+OhQw_0ctbkKuw@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:42
              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 21:36, skrev Terje J. Hanssen:<br>
                </div>
                <blockquote type="cite"> <br>
                  <br>
                  <br>
                  <div>Den 12.10.2024 21:26, 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 г., 22:19 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 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" rel="noreferrer noreferrer"
                                          target="_blank"
                                          moz-do-not-send="true"
                                          class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
                                      </div>
                                      <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                        <div> <br>
                                          <br>
                                          <br>
                                          <div>Den 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 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 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">
                    <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 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 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>
                <br>
                I came to wonder where are the equivalents to the ffmpeg
                command line "-hwaccel_output_format qsv -qsv_device
                /dev/dri/renderD128" defined in CinGG?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I think you can change device for vaapi, but I
          have not tested this code for qsv. It seems to puck correct
          device by default here ... so no need to complicate our
          investigation with this for now.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">hwaccel_output_format *probably* only needed for
          hw transcoding, like mpeg2 hdv to av1.<br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">What happen if you remove those two from dv to
          av1_qsv command line?</div>
      </div>
    </blockquote>
    <br>
    It works <br>
    <br>
  </body>
</html>