<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 08.01.2024 23:46, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky7xxGDER5Rc9Jb-=VT+37oF344kpiKEygjbk1NPs4ETDQ@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">вт, 9 янв. 2024 г., 01:25
              Andrew Randrianasulu <<a
                href="mailto:randrianasulu@gmail.com"
                rel="noreferrer noreferrer noreferrer noreferrer"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">randrianasulu@gmail.com</a>>:<br>
            </div>
            <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="auto">
                <div><br>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">пн, 8 янв. 2024
                      г., 23:50 Terje J. Hanssen <<a
                        href="mailto:terjejhanssen@gmail.com"
rel="noreferrer noreferrer 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
                      <br>
                      Den 08.01.2024 20:54, skrev Andrea paz:<br>
                      > I created a bd.m2ts file by putting "HDV
                      1080i/25" as the preset.<br>
                      <br>
                      I think there possibly is a fault in the "HDV
                      1080i/25" preset (mixed <br>
                      with the (FHD) "1080i/25 preset" as mentioned in
                      another post today:<br>
                      <a
href="https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007628.html"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2024-January/007628.html</a><br>
                      <br>
                      > Bd-render worked until the renderig was
                      complete then CinGG shut down<br>
                      > (I don't have a BD-burner). Doing ffprobe on
                      this video I get:<br>
                      ><br>
                      > Input #0, mpegts, from 'bd.m2ts':<br>
                      >    Duration: 00:01:06.91, start: 0.074667,
                      bitrate: 10242 kb/s<br>
                      >    Program 1<br>
                      >    Stream #0:0[0x1011]: Video: h264 (High)
                      ([27][0][0][0] / 0x001B),<br>
                      > yuv420p(tv, bt709, top first), 1440x1080 [SAR
                      1:1 DAR 4:3], 25 fps, 25<br>
                      > tbr, 90k tbn<br>
                      >    Stream #0:1[0x1100](ita): Audio: ac3 (AC-3
                      / 0x332D4341), 48000 Hz,<br>
                      > stereo, fltp, 192 kb/s<br>
                      ><br>
                      > The video is slightly stretched and reduced
                      to 4:3 from the original<br>
                      > 16:9. By applying the downsample filter and
                      setting H and V to 40 the<br>
                      > pixels become clearly visible and can be seen
                      to be square.(cfr<br>
                      > <a
href="http://www.g-raffa.eu/Cinelerra/HOWTO/anamorphic.html"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">http://www.g-raffa.eu/Cinelerra/HOWTO/anamorphic.html</a>)<br>
                      ><br>
                      > In postimage, I have uploaded several
                      screenshots showing the<br>
                      > "info--details" of the three original sources
                      that make up the video,<br>
                      > of the bd.m2ts (hdv.jpeg) file, and also of
                      how the "set format" is<br>
                      > automatically set.<br>
                      > [@Andrew, is it possible to put PAR and DAR
                      in the Set Format window<br>
                      > as shown in the image?]<br>
                      ><br>
                      > Note: If I force, in Set Format, the aspect
                      ratio (DAR) to 16:9 I get,<br>
                      > with the downsample filter, rectangular
                      pixels. But the video is no<br>
                      > longer deformed....<br>
                      Yes, I am also curious, because I tried to set the
                      parameters manually <br>
                      and then rendered to webm, but still 4:3 format on
                      stored file icon and <br>
                      displayed in VLC. I got a feeling that manual
                      changing W Rate to 1.3333 <br>
                      didn't really work and was changed back to 1.000.
                      Can really Canvas <br>
                      Width/Height, W Rate/H Rate and Aspect Ratio in
                      Set> Format be user <br>
                      defined independently?<br>
                    </blockquote>
                  </div>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">(display) aspect ratio surely set as
                  part of "profile" see</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">cinelerra/defaultformats.h<br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">W rate/H rate seems to be purely
                  informational, as in you can  set user preset and then
                  manually change dimensions/aspect rate and it will
                  show .. not exactly rate as num/den, but more like
                  width multiplier / height multiplier. So, you enter
                  NOT 4 and 3 there (it will make cannas 4*1440 width,
                  1080 * 3 height!) but 1.3333 and 1.0 to see dimensions
                  go fullHD. or set fullhd from dropdown menu and see
                  ratio go to 1.333/1.0 Seems more like local
                  calculator, because ratio[] array is local to this
                  code module and mainwindow.C does not consult it for
                  SAR - going purely by set display aspect ratio and
                  dimensions.</div>
                <div dir="auto"><br>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    If I understand this correct, W rate/H rate is not the same as PAR
    nor SAR(?)<br>
    <br>
    Here also an url to Adobe Premiere docs about Aspect Ratios:<br>
<a class="moz-txt-link-freetext" href="https://helpx.adobe.com/premiere-elements/using/aspect-ratios-field-options.html">https://helpx.adobe.com/premiere-elements/using/aspect-ratios-field-options.html</a><br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky7xxGDER5Rc9Jb-=VT+37oF344kpiKEygjbk1NPs4ETDQ@mail.gmail.com">
      <div dir="auto">
        <div>
          <div class="gmail_quote">
            <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="auto">
                <div dir="auto"><br>
                </div>
                <div dir="auto">I looked at code at
                  cinelerra/setformat.C and I am not sure how it works
                  :)</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">I will look at screenshots a bit later,
                  now Fennec dog wants out (fireworks finally faded
                  away)</div>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I also found some recent bugreports about
          various video software and asoect ratio</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
            href="https://github.com/HandBrake/HandBrake/issues/5658"
            rel="noreferrer noreferrer noreferrer noreferrer"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/HandBrake/HandBrake/issues/5658</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">see log, where it says</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <pre><code>[20:12:27] WARNING: bitstream PAR 1:1 != container PAR 9:16
</code></pre>
        </div>
        <div dir="auto">so, may be we also should be super verbose and
          print TWO SAR values if detected, one from bitstream (codec)
          and another from container?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">See also avidemux question</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
            href="https://avidemux.org/smif/index.php?topic=19617.0"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://avidemux.org/smif/index.php?topic=19617.0</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">====</div>
        <div dir="auto">Few video players honor pixel aspect ratio info
          from codec rather from the container, [..]<br>
        </div>
        <div dir="auto">====</div>
        <div dir="auto"> </div>
        <div dir="auto">and openshot bug</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
            href="https://github.com/OpenShot/libopenshot/issues/489"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/OpenShot/libopenshot/issues/489</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">auto-closed due to bot?? so not sure if it was
          fixed or not in openshot.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">So, we are not only ones who STILL confused by
          all this :p</div>
        <div dir="auto"> </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 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">
                      .<br>
                      ><br>
                      > The patch seems to work, as "guessed SAR/DAR"
                      and "detected SAR/DAR"<br>
                      > appear, but only in source1. In source2
                      (which is a 4k) there are<br>
                      > neither, and in source3 and hdv.jpeg there is
                      only "guessed SAR/DAR".<br>
                      ><br>
                      > The other 3 patches also seem to work since
                      rendering bd.m2ts worked.<br>
                      ><br>
                      > <a href="https://postimg.cc/kDNqfpT0"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://postimg.cc/kDNqfpT0</a><br>
                      > <a href="https://postimg.cc/SJyq5f5J"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://postimg.cc/SJyq5f5J</a><br>
                      > <a href="https://postimg.cc/VdD1cbQ4"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://postimg.cc/VdD1cbQ4</a><br>
                      > <a href="https://postimg.cc/ctWZdRLk"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://postimg.cc/ctWZdRLk</a><br>
                      > <a href="https://postimg.cc/tnzbJs1q"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer"
                        target="_blank" moz-do-not-send="true"
                        class="moz-txt-link-freetext">https://postimg.cc/tnzbJs1q</a><br>
                      <br>
                    </blockquote>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>