<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 16 нояб. 2024 г., 01:02 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>
    <br>
    <div>Den 15.11.2024 22:28, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sat, Nov 16, 2024 at
            12:13 AM Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank" rel="noreferrer">terjejhanssen@gmail.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div> <br>
              <br>
              <br>
              <div>Den 15.11.2024 21:14, skrev Andrew Randrianasulu:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div dir="ltr"><br>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Fri, Nov 15,
                      2024 at 11:02 PM Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank" rel="noreferrer">terjejhanssen@gmail.com</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
                      Den 15.11.2024 17:24, skrev Andrew Randrianasulu
                      via Cin:<br>
                      > Hopefully you can just put
                      "cin_pix_fmt=p010le" in profile and it will <br>
                      > be respected<br>
                      ><br>
                      > Terje, you only need to apply second patch on
                      top of that you already <br>
                      > have.<br>
                      ><br>
                      ><br>
                      I applied the second patch and recompiled.<br>
                      <br>
                      I started Cingg the usual way without enviroment
                      variable<br>
                      <br>
                      bin/cin<br>
                      <br>
                      Which "profile" and how do you mean?<br>
                      <br>
                      I tried the generic hevc_vaapi.mp4
                      compression/preset<br>
                      and added<br>
                      <br>
                      cin_pix_fmt=p010le<br>
                      <br>
                      It rendered yuv420p<br>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>strange, it worked for me:</div>
                    <div><br>
                    </div>
                    <div> bash-5.1$ bin/cin<br>
                      Cinelerra Infinity - built: Nov 15 2024 10:55:42<br>
                      git://<a href="http://git.cinelerra-gg.org/goodguy/cinelerra.git" target="_blank" rel="noreferrer">git.cinelerra-gg.org/goodguy/cinelerra.git</a><br>
                      (c) 2006-2019 Heroine Virtual Ltd. by Adam
                      Williams<br>
                      2007-2020 mods for Cinelerra-GG by W.P.Morrow aka
                      goodguy<br>
                      2003-2017 mods for Cinelerra-CV by CinelerraCV
                      team<br>
                      2015-2024 mods for Cinelerra-GG by Cinelerra-GG
                      team<br>
                      <br>
                      Libav version: Lavc61.3.100<br>
                      <br>
                      Cinelerra is free software, covered by the GNU
                      General Public License,<br>
                      and you are welcome to change it and/or distribute
                      copies of it under<br>
                      certain conditions. There is absolutely no
                      warranty for Cinelerra.<br>
                      <br>
                      RenderFarmClient::main_loop: client started<br>
                      [AVHWDeviceContext @ 0xee693980] Trying to use DRM
                      render node for device 0.<br>
                      [AVHWDeviceContext @ 0xee693980] libva: VA-API
                      version 1.19.0<br>
                      [AVHWDeviceContext @ 0xee693980] libva: Trying to
                      open /usr/lib/dri/nouveau_drv_video.so<br>
                      [AVHWDeviceContext @ 0xee693980] libva: Found init
                      function __vaDriverInit_1_19<br>
                      [AVHWDeviceContext @ 0xee693980] libva:
                      va_openDriver() returns 0<br>
                      [AVHWDeviceContext @ 0xee693980] Initialised VAAPI
                      connection: version 1.19<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x3231564e
                      -> nv12.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x30313050
                      -> p010le.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x36313050
                      -> unknown.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x30323449
                      -> yuv420p.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x32315659
                      -> yuv420p.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x56595559
                      -> unknown.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x32595559
                      -> yuyv422.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x59565955
                      -> uyvy422.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x41524742
                      -> bgra.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x41424752
                      -> rgba.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x58524742
                      -> bgr0.<br>
                      [AVHWDeviceContext @ 0xee693980] Format 0x58424752
                      -> rgb0.<br>
                      [AVHWDeviceContext @ 0xee693980] VAAPI driver:
                      Mesa Gallium driver 22.1.7 for NV106.<br>
                      [AVHWDeviceContext @ 0xee693980] Driver not found
                      in known nonstandard list, using standard
                      behaviour.<br>
                      [AVHWFramesContext @ 0xd99c30c0] Created surface
                      0x1.<br>
                      [AVHWFramesContext @ 0xd99c30c0] Direct mapping
                      possible.<br>
                      [hevc_vaapi @ 0xee6c6080] Input surface format is
                      p010le.<br>
                      [hevc_vaapi @ 0xee6c6080] Compatible profile
                      VAProfileHEVCMain10 (18) is not supported by
                      driver.<br>
                      [hevc_vaapi @ 0xee6c6080] Compatible profile
                      VAProfileHEVCMain10 (18) is not supported by
                      driver.<br>
                      [hevc_vaapi @ 0xee6c6080] No usable encoding
                      profile found.<br>
                      FFMPEG::open_encoder  err: Function not
                      implemented<br>
                      int FFMPEG::open_encoder(const char*, const
                      char*):<br>
                      open failed hevc_vaapi:/dev/shm/vaapi-test.mp4<br>
                      Render::render_single: Session finished.<br>
                      Total excess of backups: -50<br>
                      [AVIOContext @ 0xd577ae80] Statistics: 196608
                      bytes read, 0 seeks<br>
                      [AVIOContext @ 0xef844580] Statistics: 196608
                      bytes read, 0 seeks<br>
                      [AVIOContext @ 0xd327f180] Statistics: 294912
                      bytes read, 0 seeks<br>
                      [AVIOContext @ 0xd547f980] Statistics: 196608
                      bytes read, 0 seeks<br>
                      [AVIOContext @ 0xd59ffec0] Statistics: 18991217
                      bytes read, 18 seeks<br>
                      [AVIOContext @ 0xe4e09640] Statistics: 196608
                      bytes read, 0 seeks<br>
                      Session time: 0:00:46<br>
                      Cpu time: user: 0:00:37.109 sys: 0:00:02.595</div>
                    <div><br>
                    </div>
                    <div>you changed preset to something else and back
                      to hevc_vaapi.mp4 ?<br>
                    </div>
                    <div><br>
                    </div>
                    <div>btw my file bin/ffmpeg/video/hevc_vaapi.mp4
                      looks like this:</div>
                    <div><br>
                    </div>
                    <div>mp4 hevc_vaapi<br>
                      cin_hw_dev=vaapi<br>
                      cin_pix_fmt=p010le<br>
                      <br>
                    </div>
                  </div>
                </div>
              </blockquote>
              <br>
              I copied hevc_vaapi.mp4 together with my own presets back
              from backup after recompiling<br>
              <br>
              hevc_vaapi.mp4<br>
              <blockquote>mp4 hevc_vaapi<br>
                cin_hw_dev=vaapi<br>
              </blockquote>
              <br>
              I the Render compression window I added the last line<br>
              <blockquote>cin_hw_dev=vaapi<br>
                cin_pix_fmt=p010le<br>
              </blockquote>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>I do not think  this will work with vaapi especially due
            to it advertizing only </div>
          <div>vaapi pixel format and me hacking on top of that.<br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>
              <blockquote> </blockquote>
              <br>
              ** rendered 1780 frames in 41.333 secs, 43.065 fps<br>
              <br>
              ffprobe -hide_banner hd01_hevc_vaapi_10b420.mp4<br>
                Stream #0:0[0x1](und): Video: hevc (Main) (hev1 /
              0x31766568), yuv420p(tv, bt709/unknown/unknown, top coded
              first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 11377
              kb/s, 25 fps, 25 tbr, 12800 tbn (default)<br>
              <br>
              Tried now also to edit the preset hevc_vaapi.mp4 and added
              the last line on beforehand:<br>
              <blockquote>mp4 hevc_vaapi<br>
                cin_hw_dev=vaapi<br>
                cin_pix_fmt=p010le<br>
              </blockquote>
              But the same result: yuv420p<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>you visited window called Cinelerra: video preset  and
            changed Compression  to another preset and back as I
            suggested?</div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    Obviously the cash could not have been fully reset, because now it
    workes 😎<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">\O/</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>
    I customized and added this line also to my dedicated hevc_vaapi
    presets and tested they also worked:<br>
    <br>
    <font face="Courier New, Courier, monospace">hevc_vaapi_8b420.mp4<br>
    </font>
    <blockquote><font face="Courier New, Courier, monospace">mp4
        hevc_vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_hw_dev=vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_pix_fmt=nv12</font><br>
      <font face="Courier New, Courier, monospace">format=nv12,hwupload</font><br>
      <font face="Courier New, Courier, monospace">profile=main</font><br>
      <font face="Courier New, Courier, monospace"># global_quality=22<br></font></blockquote></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">note, I think format line here is not needed anymore</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><font face="Courier New, Courier, monospace">
      </font></blockquote>
    <font face="Courier New, Courier, monospace"><br>
      ffprobe -hide_banner hd01_hevc_vaapi_8b420.mp4<br>
        Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568),
      yuv420p(tv, bt709/unknown/unknown, top coded first (swapped)),
      1920x1080 [SAR 1:1 DAR 16:9], 11377 kb/s, 25 fps, 25 tbr, 12800
      tbn (default)<br>
    </font><br>
    <br>
    <font face="Courier New, Courier, monospace">hevc_vaapi_10b420.mp4<br>
    </font>
    <blockquote><font face="Courier New, Courier, monospace">mp4
        hevc_vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_hw_dev=vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_pix_fmt=p010le</font><br>
      <font face="Courier New, Courier, monospace">format=p010le,hwupload</font><br>
      <font face="Courier New, Courier, monospace">profile=main10</font><br>
      <font face="Courier New, Courier, monospace"># global_quality=22<br>
        <br>
      </font></blockquote>
    <font face="Courier New, Courier, monospace">ffprobe -hide_banner
      hd01_hevc_vaapi_10b420.mp4<br>
        Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 /
      0x31766568), yuv420p10le(tv, bt709/unknown/unknown, top coded
      first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 11752 kb/s, 25
      fps, 25 tbr, 12800 tbn (default)<br>
      <br>
    </font><br>
    <font face="Courier New, Courier, monospace"><br>
      hevc_vaapi_10b422.mp4<br>
    </font>
    <blockquote><font face="Courier New, Courier, monospace">mp4
        hevc_vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_hw_dev=vaapi</font><br>
      <font face="Courier New, Courier, monospace">cin_pix_fmt=y210le</font><br>
      <font face="Courier New, Courier, monospace">format=y210le,hwupload</font><br>
      <font face="Courier New, Courier, monospace">profile=rext</font><br>
      <font face="Courier New, Courier, monospace"># global_quality=22<br>
        <br>
      </font></blockquote>
    <font face="Courier New, Courier, monospace">ffprobe -hide_banner
      hd01_hevc_vaapi_10b422.mp4<br>
        Stream #0:0[0x1](und): Video: hevc (Rext) (hev1 / 0x31766568),
      yuv422p10le(tv, bt709/unknown/unknown, top coded first (swapped)),
      1920x1080 [SAR 1:1 DAR 16:9], 13432 kb/s, 25 fps, 25 tbr, 12800
      tbn (default)<br>
      <br>
    </font><br>
    <br>
    Attached here.<br>
    <br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_quote">
          <div><br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div> --------------<br>
              <br>
              Top of my git log for verification:<br>
              <br>
              commit 623e2ac7f77d0e5d1359f12d70e34b8c93489686<br>
              Author: Andrew Randrianasulu <a href="mailto:randrianasulu@gmail.com" target="_blank" rel="noreferrer"><randrianasulu@gmail.com></a><br>
              Date:   Fri Nov 15 19:21:11 2024 +0300<br>
              <br>
                  Hopefully wire up various cin_pix_fmt for vaapi
              encoder<br>
              <br>
              commit 4d42448cc128d7d18e34eb97d4234e73b9acb360<br>
              Author: Andrew Randrianasulu <a href="mailto:randrianasulu@gmail.com" target="_blank" rel="noreferrer"><randrianasulu@gmail.com></a><br>
              Date:   Thu Nov 14 16:18:24 2024 +0300<br>
              <br>
                  yet another 10bit attempt<br>
              <br>
              commit e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8<br>
              Author: Andrew Randrianasulu <a href="mailto:randrianasulu@gmail.com" target="_blank" rel="noreferrer"><randrianasulu@gmail.com></a><br>
              Date:   Fri Oct 18 10:07:33 2024 +0300<br>
              <br>
                  Add onevpl support to build system<br>
              <br>
              <br>
              <br>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </div>

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