<!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 14.01.2024 18:41, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky48+uoX95jaH++i+wOuSmf7RYxmH5ebru-5Y+PWmzJDaw@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">вс, 14 янв. 2024 г., 19:51
              Terje J. Hanssen <<a
                href="mailto:terjejhanssen@gmail.com"
                moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
            </div>
            <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div> <br>
                <br>
                <div>Den 14.01.2024 17:43, skrev Terje J. Hanssen:<br>
                </div>
                <blockquote type="cite"> <br>
                  <br>
                  <div>Den 13.01.2024 18:48, skrev Andrew Randrianasulu:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="auto">
                      <div><br>
                        <br>
                        <div class="gmail_quote">
                          <div dir="ltr" class="gmail_attr">сб, 13 янв.
                            2024 г., 07:47 Andrew Randrianasulu <<a
                              href="mailto:randrianasulu@gmail.com"
                              target="_blank" rel="noreferrer"
                              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">сб,
                                    13 янв. 2024 г., 03:26 Terje J.
                                    Hanssen via Cin <<a
href="mailto:cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer"
                                      target="_blank"
                                      moz-do-not-send="true"
                                      class="moz-txt-link-freetext">cin@lists.cinelerra-gg.org</a>>:<br>
                                  </div>
                                  <blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div> <br>
                                      <br>
                                      <div>Den 11.01.2024 23:43, skrev
                                        Terje J. Hanssen:<br>
                                      </div>
                                      <blockquote type="cite"> .......<br>
                                      </blockquote>
                                      <br>
                                      <blockquote type="cite"> 4 a)
                                        Cin-GG<br>
                                        Loaded a PAL 1080i/50 HDV clip<br>
                                        Set Format Preset: PAL 576i
                                        (16:9) - DV(D)<br>
                                        File Render File Format: FFmepg
                                        - avi   (NB! because plain Raw
                                        DV still causes DAR 4:3)<br>
                                                             Audio:
                                        Preset: avi_pcm_s16.avi<br>
                                                             Video:
                                        Compression: dv_pal.avi<br>
                                        <br>
                                      </blockquote>
                                      <br>
                                      For me it looks like the Set
                                      Format Preset: PAL 576i (16:9) -
                                      DV(D and/or the File Format:
                                      FFmpeg make up the correct DAR
                                      16:9 here, right?<br>
                                      <br>
                                      Because by Selecting the Format: <b>Raw
                                        DV </b>cause rendering to <b>DAR
                                        4:3</b> as shown below ! <br>
                                      This makes me wonder if it is only
                                      the FFmepg File formats that
                                      currently is fixed by patches?<br>
                                      May also other non-FFmpeg formats
                                      be affected by anamorphic aspect
                                      ratios ?<br>
                                    </div>
                                  </blockquote>
                                </div>
                              </div>
                              <div dir="auto"><br>
                              </div>
                              <div dir="auto">This is possible! I
                                basically never used non-ffmpeg video
                                encoders! I think we have 3 of them -
                                raw dv, mpeg video and theora video.</div>
                              <div dir="auto"><br>
                              </div>
                              <div dir="auto">I'll check each of them.</div>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                  <br>
                  OOPS!<br>
                  As already mentioned, CinGG's FFmpeg-avi was
                  saved/displayed 16:9 and the Raw DV was
                  saved/displayed 4:3.<br>
                  BUT, in addition I discovered now that in both cases
                  the images have been cropped around, that is cut off
                  at both sides, top and bottom.<br>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I wonder how much was cropped?  </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">May be I misread you but you loaded HDV
          1440*1080 clip and then rendered it into ffmpeg DV at 576i
          WITHOUT any scaling on top?</div>
        <div dir="auto"><br>
        </div>
      </div>
    </blockquote>
    <br>
    Yes, I loaded the anamorphic 16:9 HDV 1440x1080 clip and then
    rendered it using Set Format Preset PAL 576i (16:9)-DV(D) - without
    any scaling on top.<br>
    According to my understanding this should down-convert the full
    source image to DVD 16:9 anamorphic format, which at playback should
    display upscaled 16:9 screen.<br>
    That is, just as in my first post<br>
    4 b) FFmpeg transcode HDV to DV-wide<br>
    <font face="Courier New, Courier, monospace">ffmpeg -hide_banner -i
      hdv07_05.m2t -vf scale=720:576,setsar=64/45,setdar=16/9 -c:v
      dvvideo -c:a pcm_s16le dv07_05_wide.dv</font><br>
    <br>
    Gnome File properties and VLC Tools Codec info just say1440x1080
    resolution for the HDV source and 720x576 for the CinGG rendered avi
    and dv output.<br>
    I don't know if it possible to find out exactly, but<br>
    <br>
    Visually I espect and will estimate that the "middle part" 720x576
    px symmetrical around the center of the source image is kept. That
    is cropped away<br>
    <ul>
      <li><font face="Courier New, Courier, monospace">horizontally at
          each side: (1440-720)/2 = 360 px</font></li>
      <li><font face="Courier New, Courier, monospace">vertically top
          and bottom: (1080-576)/2 = 252 px</font></li>
    </ul>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky48+uoX95jaH++i+wOuSmf7RYxmH5ebru-5Y+PWmzJDaw@mail.gmail.com">
      <div dir="auto">
        <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>
                <blockquote type="cite"> That is, the 16:9 avi is
                  displayed with correct geometry, while the 4:3 Raw DV
                  is displayed stretched vertically. <br>
                  The latter get correct geometry if forced aspect 16:9
                  during VLC playback..<br>
                  <br>
                  Actually, only my ffmpeg manual encoded DV-wide has
                  got correct DAR 16:9 and also correct geometry.<br>
                </blockquote>
                And kept the full image (un-cropped).<br>
                <blockquote type="cite"> <br>
                  A visual tip is that this is easiest to discover and
                  compare side by side using large file thumbnails with
                  (Gnome) Filemanager.<br>
                  <br>
                  <blockquote type="cite">
                    <div dir="auto">
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">in cinelerra/fileogg.C I found
                        this comment:</div>
                      <div dir="auto">=====</div>
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">
                        <div dir="auto">if( asset->aspect_ratio >
                          0 ) {</div>
                        <div dir="auto">                // Cinelerra
                          uses frame aspect ratio, theora uses pixel
                          aspect ratio                             </div>
                        <div dir="auto">  float pixel_aspect =
                          asset->aspect_ratio / asset->width *
                          asset->height;</div>
                        <div dir="auto">               </div>
                        <div dir="auto"> aratio_num = pixel_aspect *
                          1000000;                                     
                                                 </div>
                        <div dir="auto">  aratio_den = 1000000;         
                                                                       
                                        }</div>
                        <div dir="auto">        else {                 
                                                                       
                                                              </div>
                        <div dir="auto"> aratio_num = 1000000;</div>
                        <div dir="auto">               </div>
                        <div dir="auto"> aratio_den = 1000000;         
                                                                       
                                        }</div>
                      </div>
                      <div dir="auto">=====</div>
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">strangely enough filedv seems to
                        contain code to set is16x9 encoder flag ... not
                        sure why it fails ....</div>
                      <div dir="auto"><br>
                      </div>
                      <div dir="auto">mpeg video also should honor
                        aspect ratio, but not tested yet.</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 dir="auto">
                              <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>
                                      <font
face="Courier New, Courier, monospace">mediainfo dv07_05_wide_cingg.dv |
                                        grep Display<br>
                                          Display aspect
                                        ratio                     : 4:3<br>
                                        <br>
                                        ffprobe -hide_banner
                                        dv07_05_wide_cingg.dv<br>
                                        Input #0, dv, from
                                        'dv07_05_wide_cingg.dv':<br>
                                          Duration: 00:06:58.08, start:
                                        0.000000, bitrate: 28800 kb/s<br>
                                          Stream #0:0: Video: dvvideo,
                                        yuv420p, 720x576 [SAR 16:15 DAR
                                        4:3], 25000 kb/s, 25 fps, 25
                                        tbr, 25 tbn, 25 tbc<br>
                                          Stream #0:1: Audio: pcm_s16le,
                                        48000 Hz, stereo, s16, 1536 kb/s</font><br>
                                      <br>
                                      <br>
                                      <br>
                                      <br>
                                    </div>
                                    -- <br>
                                    Cin mailing list<br>
                                    <a
href="mailto:Cin@lists.cinelerra-gg.org"
rel="noreferrer noreferrer noreferrer" target="_blank"
                                      moz-do-not-send="true"
                                      class="moz-txt-link-freetext">Cin@lists.cinelerra-gg.org</a><br>
                                    <a
href="https://lists.cinelerra-gg.org/mailman/listinfo/cin"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                      moz-do-not-send="true"
                                      class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
                                  </blockquote>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </blockquote>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>