<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Thx for replying.<br>
    <br>
    <div class="moz-cite-prefix">Den 28.05.2023 16:08, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky7hNyY_MzzKRmRfqrQ2Xswb0G-_NkOKnt3+o687oc0boQ@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">вс, 28 мая 2023 г., 16:51
              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> Lately I have experimented with PAL DV to DVD
                rendering, both using ffmpeg/DeVeDE, and now using CinGG
                mpeg2enc/FFMPEG<br>
                <br>
                I hope someone can help to clarify the following
                questions and debug possible issues regarding DVD
                Rendering with CinGG:<br>
                <br>
                <br>
                1. dvd.m2v and dvd.mpg<br>
                Why are there two video files created, dvd.m2v w/o Audio
                and dvd.mpg w/Audio, and which one is used for what?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I think m2v and ac3 (elementary streams) got
          muxed by mplex into mpg ...</div>
      </div>
    </blockquote>
    <br>
    Ok, I was used with DeVeDe that creates only one complete
    "movie_0.mpg" A/V file, beside the DVD tree structure  <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky7hNyY_MzzKRmRfqrQ2Xswb0G-_NkOKnt3+o687oc0boQ@mail.gmail.com">
      <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>
                <blockquote><font face="monospace">tree -sh
                    dvd_20230528-115747<br>
                    dvd_20230528-115747<br>
                    ├── [ 16M]  dvd.ac3<br>
                    ├── [3.4K]  <a href="http://dvd.jobs"
                      rel="noreferrer noreferrer noreferrer"
                      target="_blank" moz-do-not-send="true">dvd.jobs</a><br>
                    ├── [562M]  dvd.m2v<br>
                    ├── [588M]  dvd.mpg<br>
                    ├── [ 733]  dvd.sh<br>
                    ├── [6.5K]  dvd.xml<br>
                    └── [4.0K]  iso<br>
                        ├── [4.0K]  AUDIO_TS<br>
                        └── [4.0K]  VIDEO_TS<br>
                            ├── [6.0K]  VIDEO_TS.BUP<br>
                            ├── [6.0K]  VIDEO_TS.IFO<br>
                            ├── [ 18K]  VTS_01_0.BUP<br>
                            ├── [ 18K]  VTS_01_0.IFO<br>
                            └── [588M]  VTS_01_1.VOB<br>
                  </font><br>
                </blockquote>
                2. Deinterlacing:<br>
                <br>
                The input PAL DV source file is Interlaced, Bottom Field
                First<br>
                <blockquote><font face="monospace">ffprobe:</font><br>
                  <font face="monospace">  Stream #0:0: Video: dvvideo,
                    none, 25000 kb/s, SAR 16:15 DAR 0:0, 25 fps, 25 tbr,
                    25 tbn</font><br>
                  <font face="monospace">  Stream #0:1: Audio:
                    pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s</font><br>
                  <font face="monospace">Unsupported codec with id 24
                    for input stream 0</font><br>
                </blockquote>
                <blockquote><font face="monospace">mediainfo:<br>
                    Width                                    : 720
                    pixels<br>
                    Height                                   : 576
                    pixels<br>
                    Color space                              : YUV<br>
                    Scan type                                :
                    Interlaced<br>
                    Scan order                               : Bottom
                    Field First<br>
                  </font></blockquote>
                <br>
                Why does deinterlacing with dvd default rendering
                (mpeg2enc) still come out as Interlaced, but Top Field
                first?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">May be bug in mpeg2 output? Does it look
          interlaced, or it just flag set wrongly?</div>
      </div>
    </blockquote>
    <br>
    Using Deinterlace creates a dvd.mpg file only marginally larger than
    without deinterlacing.<br>
    But the result is visually better than without deinterlacing, which
    is awful jagged at camera movements zoom/pan, at least on my
    2560x1440 res monitor using VLC.<br>
    The reason is for sure also due to low resolution for the 4:3 SD
    cropped to 16:9 and then displayed at full screen. <br>
     <br>
    mpeg2enc deinterlacing and FFmpeg deinterlacing seems visually
    comparable. Possibly chroma deinterlacing in addition will help a
    bit.<br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky7hNyY_MzzKRmRfqrQ2Xswb0G-_NkOKnt3+o687oc0boQ@mail.gmail.com">
      <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>
                <blockquote> <font face="monospace">ffprobe -hide_banner
                    dvd.m2v<br>
                    Input #0, mpegvideo, from 'dvd.m2v':<br>
                      Duration: N/A, bitrate: N/A<br>
                      Stream #0:0: Video: mpeg2video (Main), yuv420p(tv,
                    bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9],
                    25 fps, 25 tbr, 1200k tbn<br>
                        Side data:<br>
                          cpb: bitrate max/min/avg: 8000000/0/0 buffer
                    size: 1835008 vbv_delay: N/A<br>
                    <br>
                    <br>
                    ffprobe -hide_banner dvd.mpg<br>
                    [mpeg @ 0x55a756c7af00] start time for stream 0 is
                    not set in estimate_timings_from_pts<br>
                    Input #0, mpeg, from 'dvd.mpg':<br>
                      Duration: 00:09:56.44, start: 0.160000, bitrate:
                    8305 kb/s<br>
                      Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
                      Stream #0:1[0x1e0]: Video: mpeg2video (Main),
                    yuv420p(tv, bt470bg, top first), 720x576 [SAR 64:45
                    DAR 16:9], 25 fps, 25 tbr, 90k tbn<br>
                        Side data:<br>
                          cpb: bitrate max/min/avg: 8000000/0/0 buffer
                    size: 1835008 vbv_delay: N/A<br>
                      Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo,
                    fltp, 224 kb/s<br>
                    Unsupported codec with id 98312 for input stream 0<br>
                    <br>
                    <br>
                    mediainfo dvd.m2v | egrep "Color|pixels|Scan"<br>
                    Width                                    : 720
                    pixels<br>
                    Height                                   : 576
                    pixels<br>
                    Color space                              : YUV<br>
                    Scan type                                :
                    Interlaced<br>
                    Scan order                               : Top Field
                    First<br>
                    Color primaries                          : BT.601
                    PAL<br>
                    <br>
                    <br>
                    mediainfo dvd.mpg | egrep "Color|pixels|Scan"<br>
                    Width                                    : 720
                    pixels<br>
                    Height                                   : 576
                    pixels<br>
                    Color space                              : YUV<br>
                    Scan type                                :
                    Interlaced<br>
                    Scan order                               : Top Field
                    First<br>
                    Color primaries                          : BT.601
                    PAL<br>
                    <br>
                  </font></blockquote>
                While corresponding deinterlacing with the optional
                FFMPEG DVD Rendering comes out as Progressive?<br>
                <blockquote><font face="monospace">ffprobe -hide_banner
                    dvd.m2v<br>
                    Input #0, mpegvideo, from 'dvd.m2v':<br>
                      Duration: N/A, bitrate: N/A<br>
                      Stream #0:0: Video: mpeg2video (Main), yuv420p(tv,
                    bt470bg/unknown/unknown, progressive), 720x576 [SAR
                    64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn<br>
                        Side data:<br>
                          cpb: bitrate max/min/avg: 9000000/0/0 buffer
                    size: 1835008 vbv_delay: N/A<br>
                  </font><br>
                  <font face="monospace">ffprobe -hide_banner dvd.mpg<br>
                    [mpeg @ 0x561effba3f00] start time for stream 0 is
                    not set in estimate_timings_from_pts<br>
                    Input #0, mpeg, from 'dvd.mpg':<br>
                      Duration: 00:09:56.42, start: 0.160000, bitrate:
                    8266 kb/s<br>
                      Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
                      Stream #0:1[0x1e0]: Video: mpeg2video (Main),
                    yuv420p(tv, bt470bg/unknown/unknown, progressive),
                    720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k
                    tbn<br>
                        Side data:<br>
                          cpb: bitrate max/min/avg: 9000000/0/0 buffer
                    size: 1835008 vbv_delay: N/A<br>
                      Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo,
                    fltp, 224 kb/s<br>
                  </font><br>
                  <font face="monospace">mediainfo dvd.m2v | egrep
                    "Color|pixels|Scan"<br>
                    Width                                    : 720
                    pixels<br>
                    Height                                   : 576
                    pixels<br>
                    Color space                              : YUV<br>
                    Scan type                                :
                    Progressive<br>
                    <br>
                    mediainfo dvd.mpg | egrep "Color|pixels|Scan"<br>
                    Width                                    : 720
                    pixels<br>
                    Height                                   : 576
                    pixels<br>
                    Color space                              : YUV<br>
                    Scan type                                :
                    Progressive<br>
                    <br>
                  </font></blockquote>
                3. Dvd Interlaced Chroma <br>
                <br>
                With reference to the CinGG manual<br>
                <a
href="https://cinelerra-gg.org/download/CinelerraGG_Manual/Dvd_Interlaced_Chroma.html"
                  rel="noreferrer noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://cinelerra-gg.org/download/CinelerraGG_Manual/Dvd_Interlaced_Chroma.html</a><br>
                <br>
                <blockquote><i>Now you can use the YUV420P DVD Interlace
                    Mode when rendering DV directly to mpeg2 through a
                    yuv4mpeg stream and when using video effects on HDV
                    video.</i><br>
                  <i>With this option enabled, improved chroma results
                    will be obtained from your DV or HDV source. Editing
                    DV or HDV and rendering it back to the same format
                    does not require any special handling. In order to
                    perform colorspace conversions correctly in
                    CINELERRA-GG and avoid Chroma errors for interlaced
                    4:2:0 video, check the box as follows:</i><br>
                  <br>
                  Settings → Performance → YUV420P DVD Interlace Mode <br>
                </blockquote>
                <br>
                I can't find this option and is it relevant for DVD
                rendering?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Its in Interface section ..</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I can attach screenshot separately.</div>
      </div>
    </blockquote>
    <br>
    Thx, I found it. Then there is a need to correct this in the manual.<br>
    Wonder if there is a reason why YUV420P DVD Interlace Mode is not
    set as default?<br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky7hNyY_MzzKRmRfqrQ2Xswb0G-_NkOKnt3+o687oc0boQ@mail.gmail.com">
      <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>
                4. Missing FFMPEG output<br>
                <br>
                According to the manual:<br>
                <a
href="https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html"
                  rel="noreferrer noreferrer noreferrer" target="_blank"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html</a>
                <br>
                <blockquote> I<i>t is also highly recommended to run the
                    CINELERRA-GG startup from a terminal window, instead
                    of the icon, in order to see informative messages of
                    how to actually write the output (at prompt: keyin
                    <install_directory_path/bin/cin). </i><br>
                  <br>
                </blockquote>
                For the default mpeg2enc DVD rendering there is output
                like<br>
                <blockquote>mpeg2enc -v 0  -b 8000 -q 1 -a 3 -F 3 -H -I
                  1 -M 8 -z t -f 8 -g 15 -G 15 -R 0 -o
                  '/home/terje/Videoklipp/DVD/dvd_mpeg2enc_20230527-184531/dvd.m2v'<br>
                </blockquote>
                For the optional FFMEG DVD Rendering it would be nice to
                also get the actual "ffmpeg code line" as terminal
                output, both for learning, customizing and debugging.<br>
                Is that possible ?<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Ffmpeg dvd uses libavcodec directly, if I
          remember correctly. You still can edit dvd profile, at least
          if you installed cingg as usual (appimage probably can be
          extracted and modified too). look for dvd</div>
      </div>
    </blockquote>
    <br>
    I start CinGG as appimage in a terminal.<br>
    What I thought of was just to see the resulting FFmpeg command line
    in the terminal .......<br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky7hNyY_MzzKRmRfqrQ2Xswb0G-_NkOKnt3+o687oc0boQ@mail.gmail.com">
      <div dir="auto">
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">===</div>
        <div dir="auto">
          <div dir="auto">cat bin/ffmpeg/video/dvd.dvd</div>
          <div dir="auto">dvd mpeg2video</div>
          <div dir="auto">s 720x480</div>
          <div dir="auto">r 30000/1001</div>
          <div dir="auto">pixel_format yuv420p</div>
          <div dir="auto">g 18</div>
          <div dir="auto">maxrate 9000000</div>
          <div dir="auto">minrate 0</div>
          <div dir="auto">bufsize 1835008</div>
          <div dir="auto">packetsize 2048</div>
          <div dir="auto">cin_bitrate=8000000</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">for user-installed cin </div>
        </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>
              </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>
    <br>
  </body>
</html>