<!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 22.01.2024 17:00, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky5pAo1z=vAxCpi3=TgCtqjbgLyLVQOU_Kpon5GUyqrQOA@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">пн, 22 янв. 2024 г., 18:39
              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 22.01.2024 15:05, skrev Andrew Randrianasulu:<br>
                </div>
                <blockquote type="cite">
                  <div dir="auto">
                    <div><br>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">пн, 22 янв.
                          2024 г., 16:18 Terje J. Hanssen <<a
                            href="mailto:terjejhanssen@gmail.com"
                            target="_blank" rel="noreferrer"
                            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 20.01.2024 23:31, skrev Andrew
                              Randrianasulu:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="auto">Sorry Terje if I was too
                                rough in my previous email.</div>
                            </blockquote>
                            <br>
                            Oh, I am fine with that. I understand also
                            some user-repeating questions might be
                            somewhat frustrating :)<br>
                            Some of the things like anamorphic video and
                            SAR, are issues from the past - to my
                            surprise. <br>
                             <br>
                            <blockquote type="cite">
                              <div dir="auto">
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">I am definitely very
                                  much want to have as error-free
                                  transcode (and as little transcode as
                                  possible in general) as you, for same
                                  reason.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">I am not sure you can
                                  absolutely trust ffmpeg for not doing
                                  any conversion by default. For example
                                  6.1 seems to upconvert 16 bit audio
                                  when you select dvd_pcm audio output.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">/dev/shm/ffmpeg/ffmpeg
                                  -i /home/guest/CIN51.mp4 -target
                                  pal-dvd -c:a pcm_dvd -f dvd
                                  /dev/shm/cin51.mpeg<br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">ah, it only does so if
                                  decoder output floats by default (aac,
                                  may be mp3 too?)</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">for dv it was 16 to 16.</div>
                              </div>
                            </blockquote>
                            <br>
                            I haven't succeeded to get DeVeDe to author
                            DVD and create iso again from the ffmpeg
                            encoded and muxed mpg with 16-bit lpcm from
                            dv input. No error from ffmpeg and ok
                            playback of the mpg using VLC. So it is
                            possibly or seemingly working(?) <br>
                            <br>
                            My follow-up question is if it possible in
                            some way to "feed or code" a similar command
                            line to FFmpeg in CinGG's DVD Create window,
                            and possibly get the DVD structure and iso
                            from this mpg?<br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">I was trying to make this happen,
                      but while ffmpeg shows no error on muxing -  next
                      stage (dvdauthor) reports some warnings and more
                      importantly resulted iso folder not seekable when
                      played by mpv (mplex muxed one works).</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">So I am stuck a bit on using ffmpeg
                      as dvd muxer ... May be if we let it encode both
                      audio and video in one pass result will be more
                      satisfactory?</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">Did you tried to run dvdauthor on
                      ffmpeg-encoded and muxed mpg with lpcm audio?</div>
                  </div>
                </blockquote>
                <br>
                <br>
                Yes, I did following the simple step 2. and 3 in<br>
                <a
href="https://askubuntu.com/questions/1013703/converting-dv-to-mpeg"
                  target="_blank" rel="noreferrer"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://askubuntu.com/questions/1013703/converting-dv-to-mpeg</a><br>
                <br>
                2. dvdauthor ran in a way, but created a very thin tree<br>
                <br>
                <blockquote><font face="monospace">DVD01_07_PCM</font><br>
                  <font face="monospace">├── [       4096]  AUDIO_TS</font><br>
                  <font face="monospace">└── [       4096]  VIDEO_TS</font><br>
                  <font face="monospace">    ├── [      12288] 
                    VTS_01_0.BUP</font><br>
                  <font face="monospace">    ├── [      12288] 
                    VTS_01_0.IFO</font><br>
                  <font face="monospace">    └── [  135628800] 
                    VTS_01_1.VOB</font><br>
                  <br>
                  <br>
                  <font face="monospace">ffprobe -hide_banner
                    DVD01_07_PCM/VIDEO_TS/VTS_01_1.VOB</font><br>
                  <font face="monospace">Input #0, mpeg, from
                    'DVD01_07_PCM/VIDEO_TS/VTS_01_1.VOB':</font><br>
                  <font face="monospace">  Duration: 00:01:53.28, start:
                    0.540000, bitrate: 9577 kb/s</font><br>
                  <font face="monospace">  Stream #0:0[0x1bf]: Data:
                    dvd_nav_packet</font><br>
                  <font face="monospace">  Stream #0:1[0x1e0]: Video:
                    mpeg2video (Main), yuv420p(tv, progressive), 720x576
                    [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc</font><br>
                  <font face="monospace">    Side data:</font><br>
                  <font face="monospace">      cpb: bitrate max/min/avg:
                    9000000/0/0 buffer size: 1835008 vbv_delay: N/A</font><br>
                  <font face="monospace">  Stream #0:2[0xa0]: Audio:
                    pcm_dvd, 48000 Hz, 2 channels, s16, 1536 kb/s</font><br>
                  <font face="monospace">Unsupported codec with id
                    100357 for input stream 0</font><br>
                </blockquote>
                <br>
                VLC could playback the final VTS_01_1.VOB file<br>
                <br>
                3. mkisofs did NOT create the dvd iso.<br>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">what kind of xml file you used with dvdauthor?
          one created by hand, or from cingg/devede-ng ?</div>
      </div>
    </blockquote>
    <br>
    I didn't use any xml file, just ran the command line in a terminal
    as I simply understood the Ubuntu url above:<br>
    <br>
    <font face="Courier New, Courier, monospace">dvdauthor -t -o
      dvd01_07_pcm --video=pal -f dvd01_07_pcm.vob<br>
      <br>
      mkisofs -dvd-video -o testing.iso DVD01_07_PCM</font><br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky5pAo1z=vAxCpi3=TgCtqjbgLyLVQOU_Kpon5GUyqrQOA@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> <br>
                <br>
                When I got DeVeDe to work earlier last year, it created
                a much more complete tree structure and also the iso<br>
                <a
href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05766.html"
                  target="_blank" rel="noreferrer"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05766.html</a><br>
                and unanswered<br>
                3) and 4) at FFmpeg-user, possibly a bit different
                ffmpeg, due to the buffer underflow  messages<br>
                <a
href="https://lists.ffmpeg.org//pipermail/ffmpeg-user/2023-March/056229.html"
                  target="_blank" rel="noreferrer"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.ffmpeg.org//pipermail/ffmpeg-user/2023-March/056229.html</a></div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">"The question here is if pcm_dvd audio has been
          changed or "transcoded" </div>
        <pre>from "PCM signed 20|24-bit big-endian" to 16 bits?

</pre>
        <div dir="auto">"</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I think ffmpeg 6.1 defaulted to s32 audio
          conversion by default. So if input was 24 bit or float it
          should be encoded as 24bit dvd pcm audio.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">20 bit probably still not plumbed in inside
          ffmpeg correctly.</div>
      </div>
    </blockquote>
    <br>
    Honestly I don't remember why I really asked this last question,
    because <br>
    <br>
    ffprobe reported for me apparently corresponding I/O audio<br>
    <blockquote><font face="Courier New, Courier, monospace">dv01.dv
        (input source): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
        kb/s</font><br>
      <font face="Courier New, Courier, monospace">dv01.mpg (ffmpeg
        output): Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s</font><br>
      <font face="Courier New, Courier, monospace">VTS_02_1.VOB (DeVeDe
        tree):  Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s</font><br>
      <br>
    </blockquote>
    Beside mediainfo VTS_02_1.VOB<br>
    <blockquote><font face="monospace">Audio</font><br>
      <font face="monospace">   
        ID                                       : 189 (0xBD)-160 (0xA0)</font><br>
      <font face="monospace">   
        Format                                   : PCM</font><br>
      <font face="monospace">    Format
        settings                          : Big / Signed</font><br>
      <font face="monospace">    Muxing
        mode                              : DVD-Video</font><br>
      <font face="monospace">   
        Duration                                 : 9 min 56 s</font><br>
      <font face="monospace">    Bit rate
        mode                            : Constant</font><br>
      <font face="monospace">    Bit
        rate                                 : 1 536 kb/s</font><br>
      <font face="monospace">   
        Channel(s)                               : 2 channels</font><br>
      <font face="monospace">    Sampling
        rate                            : 48.0 kHz</font><br>
      <font face="monospace">    Bit
        depth                                : 16 bits</font><br>
      <font face="monospace">    Stream
        size                              : 109 MiB (16%)</font><br>
    </blockquote>
    <br>
    <blockquote type="cite"
cite="mid:CA+rFky5pAo1z=vAxCpi3=TgCtqjbgLyLVQOU_Kpon5GUyqrQOA@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>
                <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> <br>
                            <font face="Courier New, Courier, monospace">ffmpeg
                              -hide_banner -i dv01_07.dv -f dvd -target
                              pal-dvd -aspect 4:3 -b:v 8M -mbd rd
                              -trellis 1 -cmp 0 -subcmp 2 -c:a pcm_dvd
                              dvd01_07_pcm.mpg</font><br>
                            <blockquote><font face="monospace">[dv @
                                0x55d83fb616c0] Estimating duration from
                                bitrate, this may be inaccurate</font><br>
                              <font face="monospace">Input #0, dv, from
                                'dv01_07.dv':</font><br>
                              <font face="monospace">  Metadata:</font><br>
                              <font face="monospace">    timecode       
                                : 01:09:35:09</font><br>
                              <font face="monospace">  Duration:
                                00:01:53.28, start: 0.000000, bitrate:
                                28800 kb/s</font><br>
                              <font face="monospace">  Stream #0:0:
                                Video: dvvideo, yuv420p, 720x576 [SAR
                                16:15 DAR 4:3], 25000 kb/s, 25 fps, 25
                                tbr, 25 tbn, 25 tbc</font><br>
                              <font face="monospace">  Stream #0:1:
                                Audio: pcm_s16le, 48000 Hz, stereo, s16,
                                1536 kb/s</font><br>
                              <font face="monospace">Multiple -c,
                                -codec, -acodec, -vcodec, -scodec or
                                -dcodec options specified for stream 1,
                                only the last option '-c:a pcm_dvd' will
                                be used.</font><br>
                              <font face="monospace">Stream mapping:</font><br>
                              <font face="monospace">  Stream #0:0 ->
                                #0:0 (dvvideo (native) -> mpeg2video
                                (native))</font><br>
                              <font face="monospace">  Stream #0:1 ->
                                #0:1 (pcm_s16le (native) -> pcm_dvd
                                (native))</font><br>
                              <font face="monospace">Press [q] to stop,
                                [?] for help</font><br>
                              <font face="monospace">Output #0, dvd, to
                                'dvd01_07_pcm.mpg':</font><br>
                              <font face="monospace">  Metadata:</font><br>
                              <font face="monospace">    timecode       
                                : 01:09:35:09</font><br>
                              <font face="monospace">    encoder        
                                : Lavf58.76.100</font><br>
                              <font face="monospace">  Stream #0:0:
                                Video: mpeg2video (Main), yuv420p(bottom
                                coded first (swapped)), 720x576 [SAR
                                16:15 DAR 4:3], q=2-31, 8000 kb/s, 25
                                fps, 90k tbn</font><br>
                              <font face="monospace">    Metadata:</font><br>
                              <font face="monospace">     
                                encoder         : Lavc58.134.100
                                mpeg2video</font><br>
                              <font face="monospace">    Side data:</font><br>
                              <font face="monospace">      cpb: bitrate
                                max/min/avg: 9000000/0/8000000 buffer
                                size: 1835008 vbv_delay: N/A</font><br>
                              <font face="monospace">  Stream #0:1:
                                Audio: pcm_dvd, 48000 Hz, stereo, s16,
                                1536 kb/s</font><br>
                              <font face="monospace">    Metadata:</font><br>
                              <font face="monospace">     
                                encoder         : Lavc58.134.100 pcm_dvd</font><br>
                              <font face="monospace">frame= 2832 fps=149
                                q=2.0 Lsize=  132450kB time=00:01:53.27
                                bitrate=9578.8kbits/s speed=5.95x    </font><br>
                              <font face="monospace">video:108950kB
                                audio:21272kB subtitle:0kB other
                                streams:0kB global headers:0kB muxing
                                overhead: 1.711336%</font><br>
                            </blockquote>
                            <font face="monospace"><br>
                            </font>
                            <blockquote type="cite">
                              <div dir="auto"><br>
                                <div dir="auto">Not sure how good
                                  internal ffmpeg muxer for dvd file
                                  creation, but you probably can test
                                  this by reusing cingg created audio
                                  and video files from dvd master.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">I have few more ideas to
                                  test and smart-up our bash script so
                                  it will use wav output + sox + mplex
                                  automatically if wav or pcm file was
                                  detected in output directory (so you
                                  can set easy wav output and do not
                                  care about BE pcm file and its
                                  extension), but again I need some time
                                  to test this.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">I was looking for some
                                  quality control tools and found
                                  qctools and this post specifically on
                                  stackexchange</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><a
href="https://sound.stackexchange.com/questions/40222/show-the-differences-between-two-similar-audio-files-using-graphical-method"
rel="noreferrer noreferrer noreferrer noreferrer noreferrer"
                                    target="_blank"
                                    moz-do-not-send="true"
                                    class="moz-txt-link-freetext">https://sound.stackexchange.com/questions/40222/show-the-differences-between-two-similar-audio-files-using-graphical-method</a><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">it mentions  program
                                  named Sonic Lineup, hopefully easy
                                  (and working on Linux) way to compare
                                  two audio files.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">Not sure if it supports
                                  dvd audio tho ....</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><a
href="https://sonicvisualiser.org/sonic-lineup/index.html"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                    moz-do-not-send="true"
                                    class="moz-txt-link-freetext">https://sonicvisualiser.org/sonic-lineup/index.html</a><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">qctools are more aiming
                                  at video quality metrics, just build
                                  their latest tool:</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><a
                                    href="https://mediaarea.net/QCTools"
rel="noreferrer noreferrer noreferrer" target="_blank"
                                    moz-do-not-send="true"
                                    class="moz-txt-link-freetext">https://mediaarea.net/QCTools</a><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto">I am sure you can get
                                  Appimage or even rpm from their site.</div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                                <div dir="auto"><br>
                                </div>
                              </div>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <br>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>