<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 06.03.2023 21:30, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky4Z65Kgf=X4LLWb7NddYrbhrCfMuqvCBAhQaB1s0RHPOQ@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">пн, 6 мар. 2023 г., 23:00
              Andrew Randrianasulu <<a
                href="mailto:randrianasulu@gmail.com" rel="noreferrer
                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">пн, 6 мар. 2023
                      г., 22:51 Terje J. Hanssen <<a
                        href="mailto:terjejhanssen@gmail.com"
                        rel="noreferrer noreferrer 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">
                      <div> <br>
                        <br>
                        <div>Den 06.03.2023 15:02, skrev Andrew
                          Randrianasulu:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="auto">I think you need another
                            software like (q)dvdauthor or dvdstyler to
                            make DVD - they use *program* streams, not
                            transport streams as tsMuxer creates ...</div>
                        </blockquote>
                        <br>
                        I thought first to use mkisofs, but didnt really
                        find out the relevant syntax to make a video dvd
                        iso from the ffmpeg created dv28.mpg file with
                        pcm audio.<br>
                        <br>
                        Had a quick look in DVD styler, but for audio it
                        seemed to support only AC3 or MP2 audio.<br>
                      </div>
                    </blockquote>
                  </div>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">I think because project still active you
                  can look at their support place and see if anyone made
                  request for this already, or if not - log your own.</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><a
href="https://sourceforge.net/p/dvdstyler/discussion/318795/thread/00ecc86f13/"
                    rel="noreferrer noreferrer noreferrer noreferrer
                    noreferrer noreferrer noreferrer" target="_blank"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://sourceforge.net/p/dvdstyler/discussion/318795/thread/00ecc86f13/</a><br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">=====</div>
                <div dir="auto">If you use Mplex for muxing then Mplex
                  will abort with a message that it cannot recognize the
                  audio stream. This is an Mplex issue. It is no problem
                  for Mplex to mux an LPCM audio stream, but the file
                  must have the extension "lpcm". You can verify this by
                  renaming the audio file in the DVDStyler cache folder
                  and give it the "lpcm" extension. Then feed the video
                  and this renamed audio stream to Mplex for muxing, and
                  you will get a perfect MPEG2 file with PCM audio.<br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">====</div>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Also from mjpegtools mail list archive:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
href="https://www.mail-archive.com/mjpeg-users@lists.sourceforge.net/msg06753.html"
            rel="noreferrer noreferrer noreferrer noreferrer noreferrer"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://www.mail-archive.com/mjpeg-users@lists.sourceforge.net/msg06753.html</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
href="https://www.mail-archive.com/mjpeg-users@lists.sourceforge.net/msg06759.html"
            rel="noreferrer noreferrer noreferrer noreferrer"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://www.mail-archive.com/mjpeg-users@lists.sourceforge.net/msg06759.html</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">apparently you must use one big mpeg file in
          this case</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">=====</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <div dir="auto">
            <p>
              <a
href="https://www.mail-archive.com/search?l=mjpeg-users@lists.sourceforge.net&q=from:%22bn%22"
                rel="noreferrer noreferrer noreferrer" target="_blank"
                moz-do-not-send="true">bn</a>
              <a
href="https://www.mail-archive.com/search?l=mjpeg-users@lists.sourceforge.net&q=date:20060505"
                rel="noreferrer noreferrer noreferrer" target="_blank"
                moz-do-not-send="true">Fri, 05 May 2006 20:02:05 -0700</a>
            </p>
          </div>
          <div dir="auto">
            Well folks(?),<br>
            <br>
            No responses but I appear to have made some headway, which
            I'll share here in case someone's out there somewhere
            scratching their own head over this.<br>
            <br>
            The problem seems to have to do with dvdauthor's STC
            discontinuity at the chapter points when it's fed one file
            per chapter; the initial pts/dts values are reset, and this
            somehow throws things off during playback, even if audio and
            video endpoints are perfectly aligned.<br>
            <br>
            If the whole titleset is mplexed as one mpg and then
            dvdauthored with chapter- point offsets, the gaps
            disappear.  Also, if the chapter points aren't aligned to
            GOP boundaries, dvdauthor will do it anyway and shift them
            backwards.<br>
            <br>
            Bahman</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">=====</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">I hope this workflow is not bitrotted.
            According to man page from <a
              href="https://linux.die.net/man/1/mplex" rel="noreferrer
              noreferrer" target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://linux.die.net/man/1/mplex</a>
            mplex accept lpcm params:</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">===</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><dt><b>L|--lpcm-params</b>
            </dt>
            <dd><i>samples_per_sec:channels:bits_per_sample</i><br>
              [, <i>samples_per_sec:channels:bits_per_sample</i> ...]
              <p>
                A comma-seperated list of paramter sets for the lpcm
                audio streams (given in the order the lpcm streams
                appear on the command line). Each parameter set
                comprises the sampling rate in Hz, the number of
                channels, and the number of bits per sample seperated by
                colons. For example, the default 48kHz two-channel
                16-bit audio would be specified as 48000:2:16.
              </p>
            </dd>
            <dt>Note: these parameters are necessary because mplex
              expects raw LPCM
            </dt>
            <dd>audio data without any headers. That is: for each sample
              point a group of 16,20, or 24 bit amplitude values, one
              for each channel. Amplitude values are
              signed with the constituent bytes in big-endian (most
              significant bytes first) order. For 20 bit samples I am
              not sure but what documentation I have suggests
              such samples are padded at the lsb end so that they
              byte-align at the most significant bits. </dd>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">====</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
href="https://www.mail-archive.com/search?l=mjpeg-users%40lists.sourceforge.net&q=lpcm"
            moz-do-not-send="true">https://www.mail-archive.com/search?l=mjpeg-users%40lists.sourceforge.net&q=lpcm</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">some more reading from 2005-6 era.</div>
      </div>
    </blockquote>
    <br>
    <br>
    Not a direct respons, but I think I have come a step forward via a
    five years old ffmpeg bug report:<br>
    <blockquote><a class="moz-txt-link-freetext" href="https://trac.ffmpeg.org/ticket/6782">https://trac.ffmpeg.org/ticket/6782</a><br>
      Doesn't produce MPEGPS-MPEG-2-LPCM compliant output (-target, -f
      dvd, -f vob). Buffer underflow appear.<br>
      pcm_dvd added; mpegps -target removed<br>
      <br>
    </blockquote>
    There is obviously a deticated "pcm_dvd" codec for ffmpeg,
    correspondingly to the later "pcm_bluray".<br>
    So I verified this on my ffmpeg 5.1.2 built from Packman for
    Tumbleweed and found:<br>
    <br>
    <blockquote>ffmpeg -hide_banner -codecs | egrep "pcm_bluray|pcm_dvd"<br>
       DEAI.S pcm_bluray           PCM signed 16|20|24-bit big-endian
      for Blu-ray media<br>
       DEAI.S pcm_dvd              PCM signed 20|24-bit big-endian<br>
    </blockquote>
    <br>
    Transcoded input raw DV with PCM audio to MPEG-2 video pcm_dvd audio
    in a VOB/MPG format:<br>
    <br>
    <blockquote>ffmpeg -hide_banner -i dv01.dv -c:v mpeg2video -refs 1
      -bf 2 -b:v 8M -maxrate 8M -minrate 8M -bufsize 20M -muxrate 11M
      -dc 10 -c:a <b>pcm_dvd</b> -f vob -flags +ilme+ildct dv01.mpg<br>
          ............ still a lot of<br>
          [vob @ 0x562a8c68f240] buffer underflow st=1 bufi=1392
      size=2008<br>
              Last message repeated 6 times<br>
          [vob @ 0x562a8c68f240] buffer underflow st=1 bufi=1396
      size=2008<br>
          frame=14912 fps=298 q=3.9 Lsize=  703652kB time=00:09:56.48
      bitrate=9663.9kbits/s speed=11.9x    <br>
          video:582644kB audio:112007kB subtitle:0kB other streams:0kB
      global headers:0kB muxing overhead: 1.295818%<br>
    </blockquote>
    <br>
    <blockquote>du -sh *.dv *.mpg<br>
          2,0G    dv01.dv<br>
          688M    dv01.mpg<br>
    </blockquote>
    <br>
    Verified that the ffmpeg <b>dv01.mpg</b> output file contains <b>pcm_dvd</b><br>
    <br>
        ffprobe -hide_banner dv01.mpg<br>
    <blockquote>    Input #0, mpeg, from 'dv01.mpg':<br>
            Duration: 00:09:56.48, start: 0.540000, bitrate: 9663 kb/s<br>
            Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
      bottom first), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k
      tbn<br>
              Side data:<br>
                cpb: bitrate max/min/avg: 8000000/0/0 buffer size:
      20004864 vbv_delay: N/A<br>
            Stream #0:1[0xa0]: Audio: <b>pcm_dvd</b>, 48000 Hz, stereo,
      s16, 1536 kb/s<br>
    </blockquote>
    <br>
    The DVD structure and video files from DeVeDe is now being
    transcoded from pcm_dvd to AC-3 audio:<br>
    <br>
    <blockquote>tree ./dv01_tw_DVD -sh<br>
      <br>
          [4.0K]  ./dv01_tw_DVD<br>
          ├── [500M]  dv01_tw_DVD.iso<br>
          ├── [4.0K]  dvd_tree<br>
          │   ├── [4.0K]  AUDIO_TS<br>
          │   └── [4.0K]  VIDEO_TS<br>
          │       ├── [ 12K]  VIDEO_TS.BUP<br>
          │       ├── [ 12K]  VIDEO_TS.IFO<br>
          │       ├── [ 32K]  VIDEO_TS.VOB<br>
          │       ├── [ 18K]  VTS_01_0.BUP<br>
          │       ├── [ 18K]  VTS_01_0.IFO<br>
          │       ├── [3.1M]  VTS_01_0.VOB<br>
          │       ├── [ 32K]  VTS_01_1.VOB<br>
          │       ├── [ 24K]  VTS_02_0.BUP<br>
          │       ├── [ 24K]  VTS_02_0.IFO<br>
          │       ├── [ 32K]  VTS_02_0.VOB<br>
          │       └── [496M]  VTS_02_1.VOB<br>
          ├── [4.0K]  menu<br>
          │   ├── [1.9K]  menu_0_active_bg.png<br>
          │   ├── [ 61K]  menu_0_bg.png<br>
          │   ├── [3.1M]  menu_0B.mpg<br>
          │   ├── [3.1M]  menu_0.mpg<br>
          │   ├── [1.9K]  menu_0_selected_bg.png<br>
          │   ├── [1.7K]  menu_0_unselected_bg.png<br>
          │   └── [ 451]  menu_0.xml<br>
          ├── [4.0K]  movies<br>
          │   └── [496M]  movie_0.mpg<br>
          └── [4.0K]  xml_data<br>
              └── [1.7K]  dvdauthor.xml<br>
      <br>
          7 directories, 21 files<br>
      <br>
      <br>
      <br>
      ffprobe -hide_banner dv01_tw_DVD/dvd_tree/VIDEO_TS/VTS_02_1.VOB<br>
      <br>
          Input #0, mpeg, from
      'dv01_tw_DVD/dvd_tree/VIDEO_TS/VTS_02_1.VOB':<br>
            Duration: 00:09:56.49, start: 0.534667, bitrate: 6970 kb/s<br>
            Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
            Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
      progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn<br>
              Side data:<br>
                cpb: bitrate max/min/avg: 7500000/0/0 buffer size:
      1835008 vbv_delay: N/A<br>
            Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 224
      kb/s<br>
      <br>
      <br>
      <br>
      ffprobe -hide_banner dv01_tw_DVD/movies/movie_0.mpg<br>
      <br>
          [mpeg @ 0x555ff4407ec0] start time for stream 0 is not set in
      estimate_timings_from_pts<br>
          Input #0, mpeg, from 'movie_0.mpg':<br>
            Duration: 00:09:56.49, start: 0.534667, bitrate: 6970 kb/s<br>
            Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
            Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
      progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn<br>
              Side data:<br>
                cpb: bitrate max/min/avg: 7500000/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>
    </blockquote>
    <br>
    I looks like DeVeDeNG version 4.17 possibly doesn't support pcm_dvd
    yet. To get this clarified I have written to the author to try to
    get this clarified.<br>
    My first impression of this program is that I got taste for its
    simplicity and straight forward use, yet relative comprehensive
    behind the buttons.<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="https://gitlab.com/rastersoft/devedeng">https://gitlab.com/rastersoft/devedeng</a><br>
      <a class="moz-txt-link-freetext" href="https://www.rastersoft.com/programas/devede.html">https://www.rastersoft.com/programas/devede.html</a><br>
      <a class="moz-txt-link-freetext" href="https://www.xmodulo.com/create-video-dvd-linux-desktop.html">https://www.xmodulo.com/create-video-dvd-linux-desktop.html</a><br>
      <br>
      Documentation for the legacy DeVeDe 3.9 version<br>
      <a class="moz-txt-link-freetext" href="https://www.rafalinux.com/?page_id=248">https://www.rafalinux.com/?page_id=248</a><br>
    </blockquote>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky4Z65Kgf=X4LLWb7NddYrbhrCfMuqvCBAhQaB1s0RHPOQ@mail.gmail.com">
      <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:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <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>
                        DeVeDe:<br>
                        So I installed and tried "DeVeDe(NG)" - a "Video
                        DVD creator" program I had never heard about
                        before recently<br>
                        <a
                          href="https://www.xmodulo.com/create-video-dvd-linux-desktop.html"
                          rel="noreferrer noreferrer noreferrer
                          noreferrer noreferrer noreferrer noreferrer
                          noreferrer noreferrer" target="_blank"
                          moz-do-not-send="true"
                          class="moz-txt-link-freetext">https://www.xmodulo.com/create-video-dvd-linux-desktop.html</a><br>
                        <br>
                        With DeVeDe I managed to create the video DVD
                        structure and ISO, and it offered to burn the
                        iso with K3b automatically,<br>
                        With its Property/Misch buttons the selection in
                        the middle offered:<br>
                        *Repack audio and video without reencoding
                        (Useful for VOB files)<br>
                        <br>
                        The problem is that the Audio (PCM) disappeared
                        from the dv28.mpg input file<br>
                        <br>
                        The burned DVD from iso:<br>
                        <br>
                            tree ./DVDVIDEO -sh<br>
                        <blockquote>./DVDVIDEO<br>
                          ├── [  40]  AUDIO_TS<br>
                          └── [ 612]  VIDEO_TS<br>
                              ├── [ 12K]  VIDEO_TS.BUP<br>
                              ├── [ 12K]  VIDEO_TS.IFO<br>
                              ├── [ 32K]  VIDEO_TS.VOB<br>
                              ├── [ 18K]  VTS_01_0.BUP<br>
                              ├── [ 18K]  VTS_01_0.IFO<br>
                              ├── [3.6M]  VTS_01_0.VOB<br>
                              ├── [ 32K]  VTS_01_1.VOB<br>
                              ├── [ 18K]  VTS_02_0.BUP<br>
                              ├── [ 18K]  VTS_02_0.IFO<br>
                              ├── [ 32K]  VTS_02_0.VOB<br>
                              └── [133M]  VTS_02_1.VOB<br>
                        </blockquote>
                            2 directories, 11 files<br>
                        <br>
                        <br>
                        The structure and iso created on HDD:<br>
                        <br>
                            tree . -sh<br>
                        <blockquote>.<br>
                          ├── [138M]  dv28_DVD.iso<br>
                          ├── [4.0K]  dvd_tree<br>
                          │   ├── [4.0K]  AUDIO_TS<br>
                          │   └── [4.0K]  VIDEO_TS<br>
                          │       ├── [ 12K]  VIDEO_TS.BUP<br>
                          │       ├── [ 12K]  VIDEO_TS.IFO<br>
                          │       ├── [ 32K]  VIDEO_TS.VOB<br>
                          │       ├── [ 18K]  VTS_01_0.BUP<br>
                          │       ├── [ 18K]  VTS_01_0.IFO<br>
                          │       ├── [3.6M]  VTS_01_0.VOB<br>
                          │       ├── [ 32K]  VTS_01_1.VOB<br>
                          │       ├── [ 18K]  VTS_02_0.BUP<br>
                          │       ├── [ 18K]  VTS_02_0.IFO<br>
                          │       ├── [ 32K]  VTS_02_0.VOB<br>
                          │       └── [133M]  VTS_02_1.VOB<br>
                          ├── [4.0K]  menu<br>
                          │   ├── [2.0K]  menu_0_active_bg.png<br>
                          │   ├── [ 64K]  menu_0_bg.png<br>
                          │   ├── [3.6M]  menu_0B.mpg<br>
                          │   ├── [3.6M]  menu_0.mpg<br>
                          │   ├── [2.0K]  menu_0_selected_bg.png<br>
                          │   ├── [1.7K]  menu_0_unselected_bg.png<br>
                          │   └── [ 442]  menu_0.xml<br>
                          ├── [4.0K]  movies<br>
                          │   └── [133M]  movie_0.mpg<br>
                          └── [4.0K]  xml_data<br>
                              └── [1.7K]  dvdauthor.xml<br>
                          <br>
                          6 directories, 21 files<br>
                        </blockquote>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>