<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <div class="moz-cite-prefix"><font face="Courier New, Courier,
        monospace">Den 09.12.2022 01:41, skrev Andrew Randrianasulu:<br>
      </font></div>
    <blockquote type="cite"
cite="mid:CA+rFky5x76C6m2M1fCmzPhBrJ6jkuXXC48Wkb2OpRtOj3Tr_YA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div><font face="Courier New, Courier, monospace"><br>
            <br>
          </font>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr"><font face="Courier New,
                Courier, monospace">пт, 9 дек. 2022 г., 03:36 Terje J.
                Hanssen <<a href="mailto:terjejhanssen@gmail.com"
                  moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
              </font></div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div> <font face="Courier New, Courier, monospace"><br>
                </font> <font face="Courier New, Courier, monospace"><br>
                </font>
                <div><font face="Courier New, Courier, monospace">Den
                    08.12.2022 01:26, skrev Terje J. Hanssen:<br>
                  </font> </div>
                <blockquote type="cite"> <font face="Courier New,
                    Courier, monospace"><br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                  </font>
                  <div><font face="Courier New, Courier, monospace">Den
                      08.12.2022 00:54, skrev Andrew Randrianasulu:<br>
                    </font> </div>
                  <blockquote type="cite">
                    <div dir="auto">
                      <div><font face="Courier New, Courier, monospace"><br>
                        </font> <font face="Courier New, Courier,
                          monospace"><br>
                        </font>
                        <div class="gmail_quote">
                          <div dir="ltr" class="gmail_attr"><font
                              face="Courier New, Courier, monospace">чт,
                              8 дек. 2022 г., 02:50 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>
                            </font> </div>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div> <font face="Courier New, Courier,
                                monospace"><br>
                              </font>
                              <div><font face="Courier New, Courier,
                                  monospace">Den 07.12.2022 22:40, skrev
                                  Andrew Randrianasulu:<br>
                                </font> </div>
                              <blockquote type="cite">
                                <div dir="auto">
                                  <div><font face="Courier New, Courier,
                                      monospace"><br>
                                    </font> <font face="Courier New,
                                      Courier, monospace"><br>
                                    </font>
                                    <div class="gmail_quote">
                                      <div dir="ltr" class="gmail_attr"><font
                                          face="Courier New, Courier,
                                          monospace">чт, 8 дек. 2022 г.,
                                          00:36 Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer"
                                            target="_blank"
                                            moz-do-not-send="true"
                                            class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
                                        </font> </div>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div> <font face="Courier New,
                                            Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font>
                                          <div><font face="Courier New,
                                              Courier, monospace">Den
                                              07.12.2022 00:13, skrev
                                              Andrew Randrianasulu:<br>
                                            </font> </div>
                                          <blockquote type="cite">
                                            <div dir="auto">
                                              <div><font face="Courier
                                                  New, Courier,
                                                  monospace">may be try
                                                  field_order as
                                                  recommended here</font></div>
                                              <div dir="auto"><font
                                                  face="Courier New,
                                                  Courier, monospace"><br>
                                                </font> </div>
                                              <div dir="auto"><font
                                                  face="Courier New,
                                                  Courier, monospace"><a
href="https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive"
                                                    rel="noreferrer
                                                    noreferrer
                                                    noreferrer"
                                                    target="_blank"
                                                    moz-do-not-send="true"
class="moz-txt-link-freetext">https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive</a></font></div>
                                              <div dir="auto"><font
                                                  face="Courier New,
                                                  Courier, monospace"><br>
                                                </font> </div>
                                              <div dir="auto"><font
                                                  face="Courier New,
                                                  Courier, monospace">?<br>
                                                </font> </div>
                                            </div>
                                          </blockquote>
                                          <font face="Courier New,
                                            Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">I
                                            tried to add '-field_order
                                            bb'<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">
                                            ffmpeg -i dv28.dv -c:v
                                            mpeg2video -c:a copy
                                            -mpegts_m2ts_mode 1
                                            -field_order bb
                                            dv28-mpeg2-SD-bluray.mts<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">...........<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">Stream
                                            #0:0: Video: mpeg2video
                                            (Main), yuv420p(bottom
                                            first), 720x576 [SAR 16:15
                                            DAR 4:3], q=2-31, 200 kb/s,
                                            25 fps, 90k tbn<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">   
                                            Metadata:<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">     
                                            encoder         :
                                            Lavc59.37.100 mpeg2video<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">   
                                            Side data:<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">     
                                            cpb: bitrate max/min/avg:
                                            0/0/200000 buffer size: 0
                                            vbv_delay: N/A<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"> 
                                            Stream #0:1: Audio:
                                            pcm_s16le, 48000 Hz, stereo,
                                            s16, 1536 kb/s<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">[mpegts
                                            @ 0x564149f05bc0] Stream 1,
                                            codec pcm_s16le, is muxed as
                                            a private data stream and
                                            may not be recognized upon
                                            reading.<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">...............<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">I
                                            tried also the other
                                            -field_order values
                                            according to the ffmpeg
                                            manual: 'tt', 'tb', 'bt' <br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">but
                                            all changed the input DV
                                            interlaced videdo to Scan
                                            type Progressive MPEG-2
                                            output video, as in first
                                            post below.</font></div>
                                      </blockquote>
                                    </div>
                                  </div>
                                  <div dir="auto"><font face="Courier
                                      New, Courier, monospace"><br>
                                    </font> </div>
                                  <div dir="auto"><font face="Courier
                                      New, Courier, monospace"><br>
                                    </font> </div>
                                  <div dir="auto"><font face="Courier
                                      New, Courier, monospace">there
                                      also some other suggestions, like
                                      -top 1 (tff?) and/or two i* flags
                                      (interlaced dct, motion
                                      estimation)</font></div>
                                  <div dir="auto"><font face="Courier
                                      New, Courier, monospace"><br>
                                    </font> </div>
                                  <div dir="auto"><font face="Courier
                                      New, Courier, monospace">you can
                                      also try to set -profile to some
                                      dvd variant may be it will be
                                      smart enough to at least add all
                                      flags correctly ....</font></div>
                                </div>
                              </blockquote>
                              <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace">I tried '-flags +ilme+ildct'
                                and got the output video kept interlaced
                                BFF<br>
                              </font> <font face="Courier New, Courier,
                                monospace">The Bit rate parameters are
                                just copied from the 2021 command line.
                                Not sure what  -refs 1 -bf 2 and -dc 10
                                do (?)<br>
                              </font> <font face="Courier New, Courier,
                                monospace">'-c:a copy -mpegts_m2ts_mode
                                1' doesn't help here with regards to
                                LPCM, which disappear in a private
                                stream!?</font></div>
                          </blockquote>
                        </div>
                      </div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace">do not do c:a copy, try same bluray
                          pcm or ac3 with high bitrate ....</font></div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </div>
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </div>
                    </div>
                  </blockquote>
                  <font face="Courier New, Courier, monospace"><br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                    Thank you, pcm_bluray worked better. I thought LPCM
                    from DV now was equivalent to and accepted muxed
                    with ffmpeg.mts<br>
                    I can hear the audio with VLC, and will try bdwrie
                    to udffs and burn it to disc to-morrow.<br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                    Latest code line<br>
                    ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v
                    25M -maxrate 25M -minrate 25M -bufsize 45M -muxrate
                    45M -dc 10  -c:a pcm_bluray -mpegts_m2ts_mode 1
                    -flags +ilme+ildct dv28-mpeg2-SD-bluray.mts<br>
                  </font></blockquote>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><font face="Courier New, Courier, monospace"><br>
          </font></div>
        <div dir="auto"><font face="Courier New, Courier, monospace"><br>
          </font></div>
        <div dir="auto"><font face="Courier New, Courier, monospace">may
            be change bufsize and muxrate down to 25M too ?</font></div>
      </div>
    </blockquote>
    <br>
    <br>
    <font face="Courier New, Courier, monospace">I tried tests with each
      and both set down to 25M and got the file size shrinked to 456M</font><br>
    <font face="Courier New, Courier, monospace">But at the same time a
      lot of invalid messages arrived from ffmpeg<br>
    </font><br>
    <font face="Courier New, Courier, monospace">    encoder         :
      Lavc59.37.100 pcm_bluray</font><br>
    <font face="Courier New, Courier, monospace">[mpegts @
      0x55bec4e8a040] dts < pcr, TS is invalid00:05.00
      bitrate=24327.0kbits/s speed=9.81x    </font><br>
    <br>
    <font face="Courier New, Courier, monospace">    Last message
      repeated 30 times</font><br>
    <font face="Courier New, Courier, monospace">...........snip</font><br>
    <font face="Courier New, Courier, monospace">[mpegts @
      0x55bec4e8a040] dts < pcr, TS is invalid02:05.28
      bitrate=27871.6kbits/s speed=6.59x    <br>
          Last message repeated 378 times<br>
      [mpegts @ 0x55bec4e8a040] dts < pcr, TS is invalid02:12.44
      bitrate=27869.1kbits/s speed=6.79x    <br>
          Last message repeated 247 times<br>
      <br>
    </font><br>
    <font face="Courier New, Courier, monospace">I seem to remember
      there were similar (overrun?) messages earlier for the dvd/vob
      video, before we tuned up bufsize and muxrate .....</font><br>
    <font face="Courier New, Courier, monospace"><br>
    </font><br>
    <font face="Courier New, Courier, monospace"><br>
    </font>
    <blockquote type="cite"
cite="mid:CA+rFky5x76C6m2M1fCmzPhBrJ6jkuXXC48Wkb2OpRtOj3Tr_YA@mail.gmail.com">
      <div dir="auto">
        <div dir="auto"><font face="Courier New, Courier, monospace"><br>
          </font></div>
        <div dir="auto"><font face="Courier New, Courier, monospace"><br>
          </font></div>
        <div dir="auto"><font face="Courier New, Courier, monospace"><br>
          </font></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"> <font face="Courier New,
                    Courier, monospace"><br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                    ffmpeg -i dv28-mpeg2-SD-bluray.mts  2>&1
                    >/dev/null | egrep "Video|Audio"<br>
                      Stream #0:0[0x1011]: Video: mpeg2video (Main)
                    ([2][0][0][0] / 0x0002), yuv420p(tv, bottom first),
                    720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn<br>
                      Stream #0:1[0x1100]: Audio: pcm_bluray
                    ([128][0][0][0] / 0x0080), 48000 Hz, stereo, s16,
                    1536 kb/s<br>
                  </font> <font face="Courier New, Courier, monospace"><br>
                  </font> </blockquote>
                <font face="Courier New, Courier, monospace"><br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  Yes, I got the dv28-mpeg2-SD-bluray.mts file written
                  to udfs with bdwrite and burned with K3b to a BD-RE
                  disc. The SD Blu-ray disc was also auto-playable in
                  the Blu-ray hardare player.<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  But look at the file-sizes, where the latest mts file
                  is 749M, that is 60-70% bigger than the DV source and
                  the previous generated iso, m2ts and mpg files. <br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  457M    dv28_25mbps.iso<br>
                  455M    dv28_25mbps.m2ts<br>
                  437M    dv28_25mbps.mpg<br>
                  458M    dv28_Blu-ray.iso<br>
                  470M    dv28.dv<br>
                  ----------------------<br>
                  749M    dv28-mpeg2-SD-bluray.mts<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  Is there any difference in the bit rate syntax or
                  other in the ffmpeg code line that causes the video
                  data rate to be much bigger?<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  Here is diff between the most relevant output from
                  mediainfo for two of the written SD Blu-ray video
                  files:<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  diff <(mediainfo dv28-mpeg2-SD-bluray.mts | egrep
                  'Format|Scan|Bit|size') <(mediainfo dv28_25mbps.iso
                  | egrep 'Format|Scan|Bit|size')<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  1,3c1,3<br>
                  < Format                                   : BDAV<br>
                  < Format/Info                              :
                  Blu-ray Video<br>
                  < File size                                : 749
                  MiB<br>
                  ---<br>
                  > Format                                   : MPEG
                  Video<br>
                  > Format version                           :
                  Version 2<br>
                  > File size                                : 457
                  MiB<br>
                  11d10<br>
                  < Format settings, picture structure       : Frame<br>
                  13c12<br>
                  < Bit rate                                 : 42.6
                  Mb/s<br>
                  ---<br>
                  > Bit rate                                 : 28.0
                  Mb/s<br>
                  15,25c14,16<br>
                  < Scan type                                :
                  Interlaced<br>
                  < Scan order                               : Bottom
                  Field First<br>
                  < Bits/(Pixel*Frame)                       : 4.108<br>
                  < Stream size                              : 694
                  MiB (93%)<br>
                  < Format                                   : PCM<br>
                  < Format settings                          : Big /
                  Signed<br>
                  < Bit rate mode                            :
                  Constant<br>
                  < Bit rate                                 : 1 536
                  kb/s<br>
                  < Bit depth                                : 16
                  bits<br>
                  < Stream size                              : 25.0
                  MiB (3%)<br>
                  < Format                                   : MPEG
                  Video / PCM<br>
                  ---<br>
                  > Scan type                                :
                  Progressive<br>
                  > Bits/(Pixel*Frame)                       : 2.703<br>
                  > Stream size                              : 457
                  MiB (100%)<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                  -----------------<br>
                </font> <font face="Courier New, Courier, monospace"><br>
                </font>
                <blockquote type="cite"><font face="Courier New,
                    Courier, monospace"> <br>
                  </font>
                  <blockquote type="cite">
                    <div dir="auto">
                      <div dir="auto"><font face="Courier New, Courier,
                          monospace"><br>
                        </font> </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> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace">ffmpeg -i dv28.dv -c:v
                                mpeg2video -refs 1 -bf 2 -b:v 25M
                                -maxrate 25M -minrate 25M -bufsize 45M
                                -muxrate 45M -dc 10  -c:a copy
                                -mpegts_m2ts_mode 1 -flags +ilme+ildct
                                dv28-mpeg2-SD-bluray.mts<br>
                              </font> <font face="Courier New, Courier,
                                monospace">................<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Stream #0:0: Video:
                                mpeg2video (Main), yuv420p(bottom coded
                                first (swapped)), 720x576 [SAR 16:15 DAR
                                4:3], q=2-31, 25000 kb/s, 25 fps, 90k
                                tbn<br>
                              </font> <font face="Courier New, Courier,
                                monospace">    Metadata:<br>
                              </font> <font face="Courier New, Courier,
                                monospace">      encoder         :
                                Lavc59.37.100 mpeg2video<br>
                              </font> <font face="Courier New, Courier,
                                monospace">    Side data:<br>
                              </font> <font face="Courier New, Courier,
                                monospace">      cpb: bitrate
                                max/min/avg: 25000000/25000000/25000000
                                buffer size: 45000000 vbv_delay: N/A<br>
                              </font> <font face="Courier New, Courier,
                                monospace">  Stream #0:1: Audio:
                                pcm_s16le, 48000 Hz, stereo, s16, 1536
                                kb/s<br>
                              </font> <font face="Courier New, Courier,
                                monospace">[mpegts @ 0x560287e48040]
                                Stream 1, codec pcm_s16le, is muxed as a
                                private data stream and may not be
                                recognized upon reading.<br>
                              </font> <font face="Courier New, Courier,
                                monospace">frame= 3416 fps=373 q=1.6
                                Lsize=  766566kB time=00:02:16.64
                                bitrate=45958.1kbits/s speed=14.9x    <br>
                              </font> <font face="Courier New, Courier,
                                monospace">video:415619kB audio:25620kB
                                subtitle:0kB other streams:0kB global
                                headers:0kB muxing overhead: 73.730377%<br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace">mediainfo
                                dv28-mpeg2-SD-bluray.mts | egrep
                                'Format|Scan|Width|Height|Bit'<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format                                  
                                : BDAV<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format/Info                             
                                : Blu-ray Video<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format                                  
                                : MPEG Video<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format
                                version                           :
                                Version 2<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format
                                profile                           :
                                Main@Main<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format
                                settings                          : BVOP<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format settings,
                                BVOP                    : Yes<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format settings,
                                Matrix                  : Default<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format settings,
                                GOP                     : M=3, N=12<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format settings, picture
                                structure       : Frame<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Bit rate
                                mode                            :
                                Variable<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Bit
                                rate                                 :
                                44.1 Mb/s<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Width                                   
                                : 720 pixels<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Height                                  
                                : 576 pixels<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Bit
                                depth                                : 8
                                bits<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Scan
                                type                                :
                                Interlaced<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Scan
                                order                               :
                                Bottom Field First<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Bits/(Pixel*Frame)                      
                                : 4.256<br>
                              </font> <font face="Courier New, Courier,
                                monospace">Format                                  
                                : MPEG Video / <br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font> <font face="Courier New, Courier,
                                monospace"><br>
                              </font>
                              <blockquote type="cite">
                                <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><font face="Courier New,
                                            Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">A
                                            side notes;<br>
                                            1080i HDV (scan order tff)
                                            copied to Blu-ray MPEG-2 did
                                            work interlaced.<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">According
                                            to wikipedia the supported
                                            SD formats on Blu-ray video
                                            are interlaced 720×576 25i
                                            and 720×480 29.97i, 4:3 or
                                            16:9<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace">Yet,
                                            the SD VOB (dvd) progressive
                                            mpeg-2 video I encoded to
                                            BD, did playback in my
                                            Blu-ray hardware player.<br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font> <font face="Courier
                                            New, Courier, monospace"><br>
                                          </font>
                                          <blockquote type="cite">
                                            <div dir="auto">
                                              <div dir="auto"><font
                                                  face="Courier New,
                                                  Courier, monospace"><br>
                                                </font>
                                                <div class="gmail_quote"
                                                  dir="auto">
                                                  <div dir="ltr"
                                                    class="gmail_attr"><font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace">ср, 7
                                                      дек. 2022 г.,
                                                      01:53 Terje J.
                                                      Hanssen via Cin
                                                      <<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>
                                                    </font> </div>
                                                  <blockquote
                                                    class="gmail_quote"
                                                    style="margin:0 0 0
                                                    .8ex;border-left:1px
                                                    #ccc
                                                    solid;padding-left:1ex"><font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace">With
                                                      HDV 'in the
                                                      Blu-ray box' I
                                                      would like to test
                                                      if it possible to
                                                      use <br>
                                                      equivalent
                                                      procedures for DV
                                                      to SD-Blu-ray
                                                      video.<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      That is continue
                                                      as an alternative
                                                      to the 2021 thread
                                                      here:<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><a
href="https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html"
                                                        rel="noreferrer
                                                        noreferrer
                                                        noreferrer
                                                        noreferrer
                                                        noreferrer"
                                                        target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html</a><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      Blu-ray compliant
                                                      MPEG-2 SD video
                                                      with LPCM audio<br>
-------------------------------------------------<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      1) Encode DV to
                                                      MPEG-2 video and
                                                      copy PCM audio as
                                                      is to a VOB/MPG
                                                      format:<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      ffmpeg -i dv28.dv
                                                      -c:v mpeg2video
                                                      -refs 1 -bf 2 -b:v
                                                      25M -maxrate 25M<br>
                                                      -minrate 25M
                                                      -bufsize 45M
                                                      -muxrate 45M -dc
                                                      10 -c:a pcm_s16be
                                                      -f vob <br>
                                                      dv28_25mbps.mpg<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      2) tsMuxer<br>
                                                      As FFMpeg (then)
                                                      would not allow to
                                                      mux PCM or remux
                                                      MPG to M2TS, I <br>
                                                      tested tsMuxer,<br>
                                                      see the attached
                                                      screenshot:
                                                      tsMuxer_SD_M2TS<br>
                                                      Input file: 
                                                      dv28_25mbps.mpg<br>
                                                      Tracs:      
                                                      MPEG-2 video
                                                      stream and LPCM
                                                      audio stream<br>
                                                      Output:     
                                                      dv28_25mbps.iso<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
------------------------<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      Using Mediainfo to
                                                      compare the source
                                                      dv28.dv ffmpeg
                                                      input file with
                                                      its <br>
                                                      output file
                                                      dv28_25mbps.mpg
                                                      (intermediate) and
                                                      with the resulting
                                                      <br>
                                                      dv28_25mbps.iso,
                                                      show that the
                                                      interlaced dv
                                                      video was changed
                                                      to <br>
                                                      progressive
                                                      VOB/BVOB dvd
                                                      video.<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                       > mediainfo
                                                      dv28.dv | egrep
                                                      'Format|Scan|Width|Height|Bit'<br>
Format                                   : DV<br>
Format                                   : DV<br>
                                                      Bit rate
                                                      mode                           
                                                      : Constant<br>
                                                      Bit
                                                      rate                                
                                                      : 24.4 Mb/s<br>
Width                                    : 720 pixels<br>
Height                                   : 576 pixels<br>
                                                      Bit
                                                      depth                               
                                                      : 8 bits<br>
                                                      Scan
                                                      type                               
                                                      : Interlaced<br>
                                                      Scan
                                                      order                              
                                                      : Bottom Field
                                                      First<br>
Bits/(Pixel*Frame)                       : 2.357<br>
Format                                   : PCM<br>
                                                      Format
                                                      settings                         
                                                      : Big / Signed<br>
                                                      Bit rate
                                                      mode                           
                                                      : Constant<br>
                                                      Bit
                                                      rate                                
                                                      : 1 536 kb/s<br>
                                                      Bit
                                                      depth                               
                                                      : 16 bits<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                       > mediainfo
                                                      dv28_25mbps.mpg |
                                                      egrep
                                                      'Format|Scan|Width|Height|Bit'<br>
Format                                   : MPEG-PS<br>
Format                                   : MPEG Video<br>
                                                      Format
                                                      version                          
                                                      : Version 2<br>
                                                      Format
                                                      profile                          
                                                      : Main@Main<br>
                                                      Format
                                                      settings                         
                                                      : BVOP<br>
                                                      Format settings,
                                                      BVOP                   
                                                      : Yes<br>
                                                      Format settings,
                                                      Matrix                 
                                                      : Default<br>
                                                      Format settings,
                                                      GOP                    
                                                      : M=3, N=12<br>
                                                      Bit rate
                                                      mode                           
                                                      : Variable<br>
                                                      Bit
                                                      rate                                
                                                      : 24.7 Mb/s<br>
Width                                    : 720 pixels<br>
Height                                   : 576 pixels<br>
                                                      Bit
                                                      depth                               
                                                      : 8 bits<br>
                                                      Scan
                                                      type                               
                                                      : Progressive<br>
Bits/(Pixel*Frame)                       : 2.384<br>
Format                                   : PCM<br>
                                                      Format
                                                      settings                         
                                                      : Big / Signed<br>
                                                      Bit rate
                                                      mode                           
                                                      : Constant<br>
                                                      Bit
                                                      rate                                
                                                      : 1 536 kb/s<br>
                                                      Bit
                                                      depth                               
                                                      : 16 bits<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                       > mediainfo
                                                      dv28_25mbps.iso |
                                                      egrep
                                                      'Format|Scan|Width|Height|Bit'<br>
Format                                   : MPEG Video<br>
                                                      Format
                                                      version                          
                                                      : Version 2<br>
Format                                   : MPEG Video<br>
                                                      Format
                                                      version                          
                                                      : Version 2<br>
                                                      Format
                                                      profile                          
                                                      : Main@Main<br>
                                                      Format
                                                      settings                         
                                                      : BVOP<br>
                                                      Format settings,
                                                      BVOP                   
                                                      : Yes<br>
                                                      Format settings,
                                                      Matrix                 
                                                      : Default<br>
                                                      Format settings,
                                                      GOP                    
                                                      : M=3, N=12<br>
                                                      Bit rate
                                                      mode                           
                                                      : Variable<br>
                                                      Bit
                                                      rate                                
                                                      : 28.0 Mb/s<br>
Width                                    : 720 pixels<br>
Height                                   : 576 pixels<br>
                                                      Bit
                                                      depth                               
                                                      : 8 bits<br>
                                                      Scan
                                                      type                               
                                                      : Progressive<br>
Bits/(Pixel*Frame)                       : 2.703<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
-----------------------------------<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      That is,
                                                      suggestion how to
                                                      merge/customize
                                                      the newer ffmpeg
                                                      HDV to <br>
                                                      Blu-ray procedure<br>
                                                      ffmpeg -i hdv.m2t
                                                      -c:v copy -c:a
                                                      pcm_bluray
                                                      -mpegts_m2ts_mode
                                                      1 output.mts<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      for SD-DV to keep
                                                      it interlaced and
                                                      get
                                                      dv28_25mbps.m2ts
                                                      muxed directly?<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      ------------------<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      I did a first try
                                                      with the following
                                                      line, without
                                                      taking care of <br>
                                                      25mbps, but got
                                                      lost the pcm audio
                                                      to a privat stream
                                                      (change mode?).<br>
                                                      Additional the
                                                      vido is not kept
                                                      interlaced.<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      ffmpeg version
                                                      5.1.2 Copyright
                                                      (c) 2000-2022 the
                                                      FFmpeg developers<br>
                                                         built with gcc
                                                      12 (SUSE Linux)<br>
                                                      ..........snip<br>
                                                      [dv @
                                                      0x55b59acfeb80]
                                                      Estimating
                                                      duration from
                                                      bitrate, this may
                                                      be <br>
                                                      inaccurate<br>
                                                      Input #0, dv, from
                                                      'dv28.dv':<br>
                                                         Metadata:<br>
                                                          
                                                      timecode        :
                                                      00:00:00:00<br>
                                                         Duration:
                                                      00:02:16.64,
                                                      start: 0.000000,
                                                      bitrate: 28800
                                                      kb/s<br>
                                                         Stream #0:0:
                                                      Video: dvvideo,
                                                      yuv420p, 720x576
                                                      [SAR 16:15 DAR
                                                      4:3], <br>
                                                      25000 kb/s, 25
                                                      fps, 25 tbr, 25
                                                      tbn<br>
                                                         Stream #0:1:
                                                      Audio: pcm_s16le,
                                                      48000 Hz, stereo,
                                                      s16, 1536 kb/s<br>
                                                      Stream mapping:<br>
                                                         Stream #0:0
                                                      -> #0:0
                                                      (dvvideo (native)
                                                      -> mpeg2video
                                                      (native))<br>
                                                         Stream #0:1
                                                      -> #0:1 (copy)<br>
                                                      Press [q] to stop,
                                                      [?] for help<br>
                                                      Output #0, mpegts,
                                                      to
                                                      'dv28-mpeg2-SD-bluray.mts':<br>
                                                         Metadata:<br>
                                                          
                                                      timecode        :
                                                      00:00:00:00<br>
                                                          
                                                      encoder         :
                                                      Lavf59.27.100<br>
                                                         Stream #0:0:
                                                      Video: mpeg2video
                                                      (Main),
                                                      yuv420p(bottom
                                                      coded first <br>
                                                      (swapped)),
                                                      720x576 [SAR 16:15
                                                      DAR 4:3], q=2-31,
                                                      200 kb/s, 25 fps,
                                                      90k tbn<br>
                                                           Metadata:<br>
                                                            
                                                      encoder         :
                                                      Lavc59.37.100
                                                      mpeg2video<br>
                                                           Side data:<br>
                                                             cpb:
                                                      bitrate
                                                      max/min/avg:
                                                      0/0/200000 buffer
                                                      size: 0 vbv_delay:
                                                      N/A<br>
                                                         Stream #0:1:
                                                      Audio: pcm_s16le,
                                                      48000 Hz, stereo,
                                                      s16, 1536 kb/s<br>
                                                      [mpegts @
                                                      0x55b59ad3dd40]
                                                      Stream 1, codec
                                                      pcm_s16le, is
                                                      muxed as a <br>
                                                      private data
                                                      stream and may not
                                                      be recognized upon
                                                      reading.<br>
                                                      frame= 3416
                                                      fps=586 q=31.0
                                                      Lsize=   39336kB
                                                      time=00:02:16.64 <br>
bitrate=2358.3kbits/s speed=23.4x<br>
                                                      video:11070kB
                                                      audio:25620kB
                                                      subtitle:0kB other
                                                      streams:0kB global
                                                      <br>
                                                      headers:0kB muxing
                                                      overhead:
                                                      7.211923%<br>
terje@localhost:/run/media/terje/Seagate_4TB_back/data/Video-test/SD_Blu-ray>
                                                      <br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
terje@localhost:/run/media/terje/Seagate_4TB_back/data/Video-test/SD_Blu-ray>
                                                      <br>
                                                      ffmpeg -i
                                                      dv28-mpeg2-SD-bluray.mts 
                                                      2>&1
                                                      >/dev/null |
                                                      egrep
                                                      "Video|Audio"<br>
                                                         Stream
                                                      #0:0[0x1011]:
                                                      Video: mpeg2video
                                                      (Main)
                                                      ([2][0][0][0] / <br>
                                                      0x0002),
                                                      yuv420p(tv,
                                                      progressive),
                                                      720x576 [SAR 16:15
                                                      DAR 4:3], 25 fps,
                                                      <br>
                                                      25 tbr, 90k tbn<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      mediainfo
                                                      dv28-mpeg2-SD-bluray.mts
                                                      | egrep
                                                      'Format|Scan|Width|Height|Bit'<br>
Format                                   : BDAV<br>
Format/Info                              : Blu-ray Video<br>
Format                                   : MPEG Video<br>
                                                      Format
                                                      version                          
                                                      : Version 2<br>
                                                      Format
                                                      profile                          
                                                      : Main@Main<br>
                                                      Format settings,
                                                      BVOP                   
                                                      : No<br>
                                                      Format settings,
                                                      Matrix                 
                                                      : Default<br>
                                                      Format settings,
                                                      GOP                    
                                                      : Variable<br>
                                                      Bit rate
                                                      mode                           
                                                      : Variable<br>
                                                      Bit
                                                      rate                                
                                                      : 2 257 kb/s<br>
Width                                    : 720 pixels<br>
Height                                   : 576 pixels<br>
                                                      Bit
                                                      depth                               
                                                      : 8 bits<br>
                                                      Scan
                                                      type                               
                                                      : Progressive<br>
Bits/(Pixel*Frame)                       : 0.218<br>
Format                                   : MPEG Video /<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><br>
                                                      -- <br>
                                                      Cin mailing list<br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><a
                                                        href="mailto:Cin@lists.cinelerra-gg.org"
                                                        rel="noreferrer
                                                        noreferrer
                                                        noreferrer
                                                        noreferrer"
                                                        target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">Cin@lists.cinelerra-gg.org</a><br>
                                                    </font> <font
                                                      face="Courier New,
                                                      Courier,
                                                      monospace"><a
                                                        href="https://lists.cinelerra-gg.org/mailman/listinfo/cin"
                                                        rel="noreferrer
                                                        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>
                                                    </font> </blockquote>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                          <font face="Courier New,
                                            Courier, monospace"><br>
                                          </font> </div>
                                      </blockquote>
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <font face="Courier New, Courier, monospace"><br>
                  </font> </blockquote>
                <font face="Courier New, Courier, monospace"><br>
                </font> </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>