<!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 07.11.2024 20:41, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky6YCiTMuhBz3EL6XEAYDumzwktmruG0SUsk3Pfj09fNKA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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>
                <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><br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">sorry I mean set like this</div>
                    <div dir="auto">export CIN_10BIT_ENC=1</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto"><br>
                    </div>
                  </div>
                </blockquote>
                <br>
                Now hevc_vaapi was able to render to yuv420p10le, that
                is 10-bit 420p, by selecting pixels p010le.<br>
                Also rendering with pixels y210 resulted in yuv420p10le,
                that is not 10-bit 422p as for hevc_qsv below.<br>
                <br>
                I would assume this is caused due to the incomplete
                hevc_vapi.mp4 preset as shown below?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">More like incomplete code that does not yet know
          how to get custom format ... so far as name says it only adds
          10bit 4:2:0  encoding, not 4:2:2 subsampling.</div>
      </div>
    </blockquote>
    <blockquote type="cite"
cite="mid:CA+rFky6YCiTMuhBz3EL6XEAYDumzwktmruG0SUsk3Pfj09fNKA@mail.gmail.com">
      <div dir="auto">
        <div dir="auto"><br>
        </div>
        <div dir="auto">can you test other vaapi/qsv profiles too?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">also with test picture actually containing more
          than 8bit values? ;) </div>
      </div>
    </blockquote>
    <br>
    To the latter; the input file cfhd01.mkv was 10bit 422: yuv422p10le<br>
    <br>
    Maybe have a look at and compare with the hevc_qsv code that managed
    10bit 422: yuv422p10le?<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky6YCiTMuhBz3EL6XEAYDumzwktmruG0SUsk3Pfj09fNKA@mail.gmail.com">
      <div dir="auto">
        <div dir="auto">(probably made up something in GIMP 2.10, save
          as tiff/EXR, import in cingg, set format to rgba-float,
          rendrer ..... hm, may be use YUView to see pixel values
          independently of cinelerra's decoding abilities? a bit of
          adventure, but should provide some proof about encoding)</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>
                <font face="Courier New, Courier, monospace">ffprobe
                  -hide_banner cfhd01_hevc_vaapi_pix_p010le.mp4<br>
                  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                  'cfhd01_hevc_vaapi_pix_p010le.mp4':<br>
                    Metadata:<br>
                      major_brand     : isom<br>
                      minor_version   : 512<br>
                      compatible_brands: isomiso2mp41<br>
                      encoder         : Lavf61.1.100<br>
                    Duration: 00:01:11.20, start: 0.000000, bitrate:
                  11082 kb/s<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], 11080 kb/s, 25 fps, 25 tbr, 12800 tbn (default)<br>
                        Metadata:<br>
                          handler_name    : VideoHandler<br>
                          vendor_id       : [0][0][0][0]<br>
                  <br>
                  ffprobe -hide_banner cfhd01_hevc_vaapi_pix_y210.mp4<br>
                  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                  'cfhd01_hevc_vaapi_pix_y210.mp4':<br>
                    Metadata:<br>
                      major_brand     : isom<br>
                      minor_version   : 512<br>
                      compatible_brands: isomiso2mp41<br>
                      encoder         : Lavf61.1.100<br>
                    Duration: 00:01:11.20, start: 0.000000, bitrate:
                  11082 kb/s<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], 11080 kb/s, 25 fps, 25 tbr, 12800 tbn (default)<br>
                        Metadata:<br>
                          handler_name    : VideoHandler<br>
                          vendor_id       : [0][0][0][0]<br>
                  <br>
                </font>
                <blockquote type="cite">
                  <div dir="auto">
                    <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>
                            No hevc_vaapi 10bit worked:<br>
                            <br>
                            <font face="Courier New, Courier, monospace">localhost:/Cin/ffmpeg/video
                              # cat hevc_vaapi.mp4<br>
                              mp4 hevc_vaapi<br>
                              # cin_hw_dev=vaapi</font><br>
                            <br>
                            I tested hevc_vaapi.m4 and tried to write
                            p010 both in the pixels field and as
                            format=p010 in the widget,<br>
                            but only 8bit 420p each time.<br>
                            <br>
                            -------------------------------<br>
                            <br>
                            hevc_qsv 10 bit worked with p010 and with
                            y210<br>
                            <br>
                            <font face="Courier New, Courier, monospace">localhost:/Cin/ffmpeg/video
                              # cat hevc_qsv.mp4<br>
                              # only usable with ext. ffmpeg, another
                              pixfmt is yuyv422<br>
                              mp4 hevc_qsv<br>
                              # profile=main<br>
                              # cin_pix_fmt=nv12<br>
                               <br>
                              <br>
                              ffprobe -hide_banner
                              cfhd01_hevc_qsv_pix_p010le.mp4<br>
                              Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                              'cfhd01_hevc_qsv_pix_p010le.mp4':<br>
                                Metadata:<br>
                                  major_brand     : isom<br>
                                  minor_version   : 512<br>
                                  compatible_brands: isomiso2mp41<br>
                                  encoder         : Lavf61.1.100<br>
                                Duration: 00:01:11.20, start: 0.000000,
                              bitrate: 28276 kb/s<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],
                              28273 kb/s, 25 fps, 25 tbr, 12800 tbn
                              (default)<br>
                                    Metadata:<br>
                                      handler_name    : VideoHandler<br>
                                      vendor_id       : [0][0][0][0]<br>
                              <br>
                              <br>
                              ffprobe -hide_banner
                              cfhd01_hevc_qsv_pix_y210le.mp4<br>
                              Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
                              'cfhd01_hevc_qsv_pix_y210le.mp4':<br>
                                Metadata:<br>
                                  major_brand     : isom<br>
                                  minor_version   : 512<br>
                                  compatible_brands: isomiso2mp41<br>
                                  encoder         : Lavf61.1.100<br>
                                Duration: 00:01:11.20, start: 0.000000,
                              bitrate: 32074 kb/s<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], 32071 kb/s, 25 fps, 25 tbr,
                              12800 tbn (default)<br>
                                    Metadata:<br>
                                      handler_name    : VideoHandler<br>
                                      vendor_id       : [0][0][0][0]<br>
                            </font><br>
                            <blockquote type="cite">
                              <div dir="ltr">
                                <div dir="auto">
                                  <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">you also
                                                can set
                                                bin/ffmpeg/encode.opts
                                                loglevel to debug, but
                                                render exactly one frame
                                                so log will be smaller.</div>
                                            </div>
                                          </blockquote>
                                          <br>
                                          How to render render exactly
                                          one frame ?<br>
                                        </div>
                                      </blockquote>
                                      <div><br>
                                      </div>
                                      <div>In render  dialog window
                                        there is selection of render
                                        range with 4 choices ... 1 frame
                                        mp4/webm should be perfectly
                                        legal :) <br>
                                      </div>
                                      <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">
                                                <div class="gmail_quote">
                                                  <blockquote
                                                    class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                    <div><font
face="Courier New, Courier, monospace"><br>
                                                        <br>
                                                        <br>
                                                        <br>
                                                      </font>
                                                      <blockquote
                                                        type="cite">
                                                        <div dir="auto">
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></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> <font
face="Courier New, Courier, monospace"><br>
                                                          </font> <font
face="Courier New, Courier, monospace"><br>
                                                          "git log"
                                                          where?<br>
                                                          </font></div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace">in cinelerra-5.1 directory, or
                                                          some down the
                                                          hierarchy ...</font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace">this is command, part of git
                                                          suite of
                                                          commands.</font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace">displays log of commits in git
                                                          repo. (for me
                                                          it uses
                                                          l"less" as
                                                          pager, so you
                                                          can scroll
                                                          around and
                                                          search)</font></div>
                                                          <div
                                                          dir="auto"><font
face="Courier New, Courier, monospace"><br>
                                                          </font></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>
                                                          <blockquote
                                                          type="cite">
                                                          <div
                                                          dir="auto">
                                                          <div
                                                          dir="auto"><br>
                                                          </div>
                                                          <div
                                                          dir="auto"><br>
                                                          </div>
                                                          <div
                                                          dir="auto"><br>
                                                          </div>
                                                          <div
                                                          dir="auto"><br>
                                                          </div>
                                                          <div
                                                          dir="auto"><br>
                                                          </div>
                                                          <div
                                                          dir="auto">
                                                          <div
class="gmail_quote">
                                                          <blockquote
class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div><br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                      <br>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </blockquote>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>