<!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 15.11.2024 15:56, skrev Terje J.
      Hanssen:<br>
    </div>
    <blockquote type="cite"
      cite="mid:bb03de57-c756-45ad-9030-67b390f2beb8@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <br>
      <br>
      <br>
      <div class="moz-cite-prefix">Den 15.11.2024 14:13, skrev Terje J.
        Hanssen:<br>
      </div>
      <blockquote type="cite"
        cite="mid:0339c6e4-b84e-4102-b8ae-3ce75d08069e@gmail.com">
        <meta http-equiv="Content-Type"
          content="text/html; charset=UTF-8">
        <br>
        <br>
        <br>
        <div class="moz-cite-prefix">Den 15.11.2024 13:31, skrev Terje
          J. Hanssen:<br>
        </div>
        <blockquote type="cite"
          cite="mid:2e26fc03-3d6f-4191-8bd7-51613aee1975@gmail.com">
          <meta http-equiv="Content-Type"
            content="text/html; charset=UTF-8">
          <br>
          <br>
          <br>
          <div class="moz-cite-prefix">Den 15.11.2024 09:10, skrev
            Andrew Randrianasulu:<br>
          </div>
          <blockquote type="cite"
cite="mid:CA+rFky4bNDFxEU7g4OMFjyX63fgb0E_Xt1HJpRodAUgVcDAtaA@mail.gmail.com">
            <meta http-equiv="content-type"
              content="text/html; charset=UTF-8">
            <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 9:31 AM Andrew Randrianasulu <<a
                    href="mailto:randrianasulu@gmail.com"
                    moz-do-not-send="true" class="moz-txt-link-freetext">randrianasulu@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 dir="auto">
                    <div><br>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">пт, 15 нояб.
                          2024 г., 03:21 Terje J. Hanssen <<a
                            href="mailto:terjejhanssen@gmail.com"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<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 14.11.2024 22:21, skrev Andrew
                              Randrianasulu:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="auto">
                                <div><br>
                                  <br>
                                  <div class="gmail_quote">
                                    <div dir="ltr" class="gmail_attr">чт,
                                      14 нояб. 2024 г., 23:41 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                      <div> <br>
                                        <br>
                                        <br>
                                        <div>Den 14.11.2024 18:38, skrev
                                          Andrew Randrianasulu:<br>
                                        </div>
                                        <blockquote type="cite">
                                          <div dir="auto">
                                            <div><br>
                                              <br>
                                              <div class="gmail_quote">
                                                <div dir="ltr"
                                                  class="gmail_attr">чт,
                                                  14 нояб. 2024 г.,
                                                  20:27 Terje J. Hanssen
                                                  <<a
href="mailto:terjejhanssen@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
                                                </div>
                                                <blockquote
                                                  class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank
                                                  you for the patch.<br>
                                                  <br>
                                                  A few clarification
                                                  questions in between
                                                  before I start:<br>
                                                  <br>
                                                  Den 14.11.2024 14:21,
                                                  skrev Andrew
                                                  Randrianasulu:<br>
                                                  <br>
                                                  > you need to reset
                                                  your git tree,<br>
                                                  ><br>
                                                  > something like<br>
                                                  ><br>
                                                  > git reset
                                                  --hard 2037bf63cdf25462ca606f4a28636e12df77c2a0<br>
                                                  <br>
                                                  I did use "git reset
                                                  --hard" without number
                                                  at the end for the
                                                  previous <br>
                                                  patch<br>
                                                  <br>
                                                  What number here,
                                                  should I find mine
                                                  somewhere in my git
                                                  tree?<br>
                                                </blockquote>
                                              </div>
                                            </div>
                                            <div dir="auto"><br>
                                            </div>
                                            <div dir="auto"><br>
                                            </div>
                                            <div dir="auto">you can fig
                                              them in 'git log' screen,
                                              you should have two more
                                              patches on top of "ORIGIN"
                                              line <br>
                                            </div>
                                          </div>
                                        </blockquote>
                                        <br>
                                        Sorry, I'm still a bit confused
                                        by the latter "you should have
                                        two more patches on top of
                                        "ORIGIN" line"<br>
                                        Here is the top from my git log"
                                        output:<br>
                                        <br>
                                        <blockquote>commit
                                          68eb98be2183738684f1f4da2729d1ff9989ad16<br>
                                          Author: Andrew Randrianasulu <a
href="mailto:randrianasulu@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                            moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                                          Date:   Sun Oct 27 19:43:06
                                          2024 +0300<br>
                                          <br>
                                              Experimental: try 10bit
                                          vaapi encoding<br>
                                          <br>
                                          commit
                                          e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8<br>
                                          Author: Andrew Randrianasulu <a
href="mailto:randrianasulu@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                            moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                                          Date:   Fri Oct 18 10:07:33
                                          2024 +0300<br>
                                          <br>
                                              Add onevpl support to
                                          build system<br>
                                          <br>
                                          commit
                                          8681d13675f32e870ab3632eaf89105415fb3961<br>
                                          Author: Andrew Randrianasulu <a
href="mailto:randrianasulu@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                            moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                                          Date:   Wed Oct 23 16:36:19
                                          2024 +0300<br>
                                          <br>
                                              Add DESCRIPTION<br>
                                          <br>
                                          commit
                                          90138debee46e0b91adeb5d8a400158b131b0d61<br>
                                          Author: Andrew Randrianasulu <a
href="mailto:randrianasulu@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                            moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                                          Date:   Wed Oct 23 16:29:58
                                          2024 +0300<br>
                                          <br>
                                              Add BUGS<br>
                                          <br>
                                          commit
                                          318c884532617e32904d6f4ec05a2b73832f418e<br>
                                          Author: Andrew Randrianasulu <a
href="mailto:randrianasulu@gmail.com"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                            moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                                          Date:   Wed Oct 23 16:22:58
                                          2024 +0300<br>
                                          <br>
                                              Update README build
                                          instructions<br>
                                        </blockquote>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">ah.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">you can just git reset
                                  --hard
                                  e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">inother words just reset
                                  tree to state without old 10bit patch.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">then apply new.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">if you can't see line
                                  with</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">(origin/master,
                                  origin/HEAD)</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">you can scroll down (by 
                                  cursor arrows)</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">or search by pressing
                                  "/" and typing your search word and
                                  pressing enter.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">but I think you can just
                                  reset tree to "add onevpl" commit.</div>
                              </div>
                            </blockquote>
                            <br>
                            Sorry, if I lost something - because it does
                            not change something so far:<br>
                            All three attempts result all in yuv422p10le
                            as the previous 10bit hack did.<br>
                            <br>
                            My summary follows:<br>
                            <br>
                            /Cin <br>
                            <br>
                            <font face="Courier New, Courier, monospace">#
                              git reset --hard
                              e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8<br>
                              HEAD is now at e5a5a6da Add onevpl support
                              to build system<br>
                              <br>
                              # git am
                              0001-yet-another-10bit-attempt.patch<br>
                              Applying: yet another 10bit attempt</font><br>
                            <br>
                            <br>
                            I didn't undestand Cingg should be
                            recompiled additional after this patch(?)<br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">yes.</div>
                  </div>
                </blockquote>
              </div>
            </div>
          </blockquote>
          <br>
          <br>
          Thanks, after recompiling Cingg with the latest patch,
          hevc_vaapi encoding works individually for each pixel format.<br>
          You should try to wire it?<br>
          <br>
          Attach my customized presets for hevc_vaapi_8b420.m4,
          hevc_vaapi_10b420 and hevc_vaapi_10b422.mp4<br>
          with output from my latest test runs as follows:<br>
          <br>
          <font face="Courier New, Courier, monospace">===========================<br>
            <br>
            /Cin # CIN_10BIT_ENC=nv12 bin/cin<br>
            Cinelerra Infinity - built: Nov 15 2024 10:13:33<br>
            <br>
            hevc_vaapi_8b420.mp4<br>
                cin_hw_dev=vaapi<br>
                format=nv12,hwupload<br>
                profile=main<br>
                # global_quality=22<br>
            <br>
            ** rendered 1780 frames in 42.010 secs, 42.371 fps<br>
            <br>
            <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>
            <br>
            ------------------------<br>
            <br>
            global_quality=22<br>
            ** rendered 1780 frames in 38.741 secs, 45.946 fps<br>
            <br>
            ffprobe -hide_banner hd01_hevc_vaapi_8b420_gq22.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], 16643 kb/s,
            25 fps, 25 tbr, 12800 tbn (default)<br>
            <br>
             <br>
            ================================<br>
            <br>
            Cin # CIN_10BIT_ENC=p010le bin/cin<br>
            <br>
            <br>
            hevc_vaapi_10b420.mp4<br>
                cin_hw_dev=vaapi<br>
                format=p010le,hwupload<br>
                profile=main 10<br>
                # global_quality=22<br>
            <br>
            ** rendered 1780 frames in 42.292 secs, 42.088 fps<br>
            <br>
            <br>
            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>
            ---------------<br>
            <br>
            global_quality=22<br>
            ** rendered 1780 frames in 39.585 secs, 44.967 fps<br>
            <br>
            ffprobe -hide_banner hd01_hevc_vaapi_10b420_gq22.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], 17038
            kb/s, 25 fps, 25 tbr, 12800 tbn (default)<br>
            <br>
            ===================================<br>
            <br>
            /Cin # CIN_10BIT_ENC=y210le bin/cin<br>
            <br>
            hevc_vaapi_10b422.mp4<br>
                cin_hw_dev=vaapi<br>
                format=y210le,hwupload<br>
                profile=4<br>
                # global_quality=22<br>
            <br>
            ** rendered 1780 frames in 41.599 secs, 42.789 fps<br>
            <br>
            <br>
            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>
            ----------------  <br>
            <br>
            global_quality=22<br>
            ** rendered 1780 frames in 41.923 secs, 42.459 fps<br>
            <br>
            ffprobe -hide_banner hd01_hevc_vaapi_10b422_gq22.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], 17992
            kb/s, 25 fps, 25 tbr, 12800 tbn (default)<br>
            <br>
            ===================================<br>
          </font></blockquote>
        <br>
        <font face="Courier New, Courier, monospace">As seen "profile 4"
          in the latter hevc_vaapi_10b422.mp4 preset is recognized as
          "Rext" by ffprobe.<br>
          "Rext" was not accepted in the preset.<br>
        </font></blockquote>
      <br>
      To be exactly, not "Rext" as reported by ffprobe, but lower case
      "rext" is accepted in the preset and as outputted from ffmpeg help<br>
      <br>
      <font face="Courier New, Courier, monospace">ffmpeg -hide_banner
        -h encoder=hevc_vaapi | egrep -i "main|main10|rext"<br>
             main            1            E..V.......<br>
             main10          2            E..V.......<br>
             rext            4            E..V.......</font><br>
      <br>
      So to be consistent using letter name instead of the numbers, this
      preset better can be revised as follows and attached<br>
      <br>
      <font face="Courier New, Courier, monospace">hevc_vaapi_10b422.mp4<br>
            cin_hw_dev=vaapi<br>
            format=y210le,hwupload<br>
            profile=rext<br>
            # global_quality=22</font><br>
    </blockquote>
    <br>
    <font face="Courier New, Courier, monospace">As there also was a
      typo (profile=4) in the previous attached hevc_vaapi_10b420.mp4, I
      re-attach all together again in this post<br>
      <br>
    </font>
    <blockquote type="cite"
      cite="mid:bb03de57-c756-45ad-9030-67b390f2beb8@gmail.com"> <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <blockquote type="cite"
        cite="mid:0339c6e4-b84e-4102-b8ae-3ce75d08069e@gmail.com"><font
          face="Courier New, Courier, monospace"> <br>
          According to this Phoronix 2020 article, "Intel Adds VA-API
          Acceleration For HEVC REXT To FFmpeg"<br>
          .... supporting the y210 pixel format, necessary parsing
          changes for HEVC REXT, and ultimately going through with
          adding 4:2:2 8-bit/10-bit <br>
          <a class="moz-txt-link-freetext"
            href="https://www.phoronix.com/news/FFmpeg-VA-API-HEVC-REXT"
            moz-do-not-send="true">https://www.phoronix.com/news/FFmpeg-VA-API-HEVC-REXT</a><br>
          <br>
          <br>
        </font>
        <blockquote type="cite"
          cite="mid:2e26fc03-3d6f-4191-8bd7-51613aee1975@gmail.com"><font
            face="Courier New, Courier, monospace"> </font><br>
          <br>
          <blockquote type="cite"
cite="mid:CA+rFky4bNDFxEU7g4OMFjyX63fgb0E_Xt1HJpRodAUgVcDAtaA@mail.gmail.com">
            <div dir="ltr">
              <div class="gmail_quote">
                <div><br>
                </div>
                <div><br>
                </div>
                <div>Just recompiled cin  with this patch and (after
                  adding logleve=debug to bin/ffmpeg/encode.opts ) I
                  have:</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"
                    moz-do-not-send="true">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 @ 0xd7b03740] Trying to use DRM
                  render node for device 0.<br>
                  [AVHWDeviceContext @ 0xd7b03740] libva: VA-API version
                  1.19.0<br>
                  [AVHWDeviceContext @ 0xd7b03740] libva: Trying to open
                  /usr/lib/dri/nouveau_drv_video.so<br>
                  [AVHWDeviceContext @ 0xd7b03740] libva: Found init
                  function __vaDriverInit_1_19<br>
                  [AVHWDeviceContext @ 0xd7b03740] libva:
                  va_openDriver() returns 0<br>
                  [AVHWDeviceContext @ 0xd7b03740] Initialised VAAPI
                  connection: version 1.19<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x3231564e
                  -> nv12.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x30313050
                  -> p010le.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x36313050
                  -> unknown.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x30323449
                  -> yuv420p.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x32315659
                  -> yuv420p.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x56595559
                  -> unknown.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x32595559
                  -> yuyv422.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x59565955
                  -> uyvy422.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x41524742
                  -> bgra.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x41424752
                  -> rgba.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x58524742
                  -> bgr0.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Format 0x58424752
                  -> rgb0.<br>
                  [AVHWDeviceContext @ 0xd7b03740] VAAPI driver: Mesa
                  Gallium driver 22.1.7 for NV106.<br>
                  [AVHWDeviceContext @ 0xd7b03740] Driver not found in
                  known nonstandard list, using standard behaviour.<br>
                  [AVHWFramesContext @ 0xd7b30900] Created surface 0x1.<br>
                  [AVHWFramesContext @ 0xd7b30900] Direct mapping
                  disabled: deriving image does not work: 1 (operation
                  failed).<br>
                  [hevc_vaapi @ 0xd7b0ca40] Input surface format is
                  nv12.<br>
                  [hevc_vaapi @ 0xd7b0ca40] Compatible profile
                  VAProfileHEVCMain (17) is not supported by driver.<br>
                  [hevc_vaapi @ 0xd7b0ca40] Compatible profile
                  VAProfileHEVCMain (17) is not supported by driver.<br>
                  [hevc_vaapi @ 0xd7b0ca40] 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 @ 0xf4139c40] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xf413a680] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xda276c00] Statistics: 294912 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xda2e6dc0] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xe4ed3e80] Statistics: 18991217 bytes
                  read, 18 seeks<br>
                  [AVIOContext @ 0xe4e0a280] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  Session time: 0:00:29<br>
                  Cpu time: user: 0:00:14.957 sys: 0:00:01.831</div>
                <div><br>
                </div>
                <div>note that it says HevcMain</div>
                <div><br>
                </div>
                <div>bash-5.1$ CIN_10BIT_ENC=p010le bin/cin<br>
                  Cinelerra Infinity - built: Nov 15 2024 10:55:42<br>
                  git://<a
href="http://git.cinelerra-gg.org/goodguy/cinelerra.git"
                    moz-do-not-send="true">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 @ 0xd4bfd880] Trying to use DRM
                  render node for device 0.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] libva: VA-API version
                  1.19.0<br>
                  [AVHWDeviceContext @ 0xd4bfd880] libva: Trying to open
                  /usr/lib/dri/nouveau_drv_video.so<br>
                  [AVHWDeviceContext @ 0xd4bfd880] libva: Found init
                  function __vaDriverInit_1_19<br>
                  [AVHWDeviceContext @ 0xd4bfd880] libva:
                  va_openDriver() returns 0<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Initialised VAAPI
                  connection: version 1.19<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x3231564e
                  -> nv12.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x30313050
                  -> p010le.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x36313050
                  -> unknown.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x30323449
                  -> yuv420p.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x32315659
                  -> yuv420p.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x56595559
                  -> unknown.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x32595559
                  -> yuyv422.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x59565955
                  -> uyvy422.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x41524742
                  -> bgra.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x41424752
                  -> rgba.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x58524742
                  -> bgr0.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Format 0x58424752
                  -> rgb0.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] VAAPI driver: Mesa
                  Gallium driver 22.1.7 for NV106.<br>
                  [AVHWDeviceContext @ 0xd4bfd880] Driver not found in
                  known nonstandard list, using standard behaviour.<br>
                  [AVHWFramesContext @ 0xce249500] Created surface 0x1.<br>
                  [AVHWFramesContext @ 0xce249500] Direct mapping
                  possible.<br>
                  [hevc_vaapi @ 0xce2a60c0] Input surface format is
                  p010le.<br>
                  [hevc_vaapi @ 0xce2a60c0] Compatible profile
                  VAProfileHEVCMain10 (18) is not supported by driver.<br>
                  [hevc_vaapi @ 0xce2a60c0] Compatible profile
                  VAProfileHEVCMain10 (18) is not supported by driver.<br>
                  [hevc_vaapi @ 0xce2a60c0] 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 @ 0xd6e988c0] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xf403aa40] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xe4e86ec0] Statistics: 294912 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xe4ed9cc0] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  [AVIOContext @ 0xef74cfc0] Statistics: 18991217 bytes
                  read, 18 seeks<br>
                  [AVIOContext @ 0xef709c00] Statistics: 196608 bytes
                  read, 0 seeks<br>
                  Session time: 0:00:24<br>
                  Cpu time: user: 0:00:15.011 sys: 0:00:01.294</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>note what it says HevcMain10 ofc those are 'dry
                  runs' because I do not have hardware ...<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 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div> <br>
                            --------------------------<br>
                            <br>
                            My third Cin test using nv12 <br>
                            <br>
                            <font face="Courier New, Courier, monospace">/Cin
                              <br>
                              <br>
                              # CIN_10BIT_ENC=nv12 bin/cin<br>
                              Cinelerra Infinity - built: Nov 13 2024
                              20:54:33<br>
                              <br>
                              hevc_vaapi_8b420.mp4<br>
                                  cin_hw_dev=vaapi<br>
                                  format=nv12,hwupload<br>
                                  # profile=main<br>
                                  # global_quality=22<br>
                              <br>
                              ** rendered 1780 frames in 41.675 secs,
                              42.711 fps<br>
                              FFMPEG::open_decoder: some stream times
                              estimated: /Videoklipp/Cineform/cfhd01.mkv<br>
                              <br>
                              <br>
                              ffprobe -hide_banner
                              hd01_hevc_vaapi_8b420.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], 24375 kb/s, 25 fps, 25 tbr,
                              12800 tbn (default)<br>
                                </font><br>
                            ===========================<br>
                            <br>
                            Some output for verification:<br>
                            <br>
                            <font face="Courier New, Courier, monospace">/Cin/cinelerra
                              # egrep -i "10bit|tenbit|nv12|p010|y210"
                              ffmpeg.C<br>
                              GET_HW_PIXFMT(nv12,  AV_PIX_FMT_NV12)<br>
                                      case AV_PIX_FMT_NV12: 
                              ctx->get_format = get_hw_nv12;  return
                              *p;<br>
                                  const char *tenbit_enc =
                              getenv("CIN_10BIT_ENC");<br>
                                      frames_ctx->sw_format =
                              AV_PIX_FMT_NV12;<br>
                                      if(tenbit_enc)<br>
                                      frames_ctx->sw_format =
                              av_get_pix_fmt(tenbit_enc);<br>
                                      picture->format =
                              AV_PIX_FMT_NV12;<br>
                                      </font><br>
                            ----------------------<br>
                            <br>
                            <font face="Courier New, Courier, monospace">git
                              log 2>&1 | tee
                              git_log_after_another_10bit_patch<br>
                              <br>
                              Top of the output:<br>
                              <br>
                              commit
                              4d42448cc128d7d18e34eb97d4234e73b9acb360<br>
                              Author: Andrew Randrianasulu <a
                                href="mailto:randrianasulu@gmail.com"
                                rel="noreferrer" target="_blank"
                                moz-do-not-send="true"><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"
                                rel="noreferrer" target="_blank"
                                moz-do-not-send="true"><randrianasulu@gmail.com></a><br>
                              Date:   Fri Oct 18 10:07:33 2024 +0300<br>
                              <br>
                                  Add onevpl support to build system</font><br>
                                    <br>
                            =========================<br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
            </div>
          </blockquote>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>