<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 30.11.2021 01:57, skrev Andrew
      Randrianasulu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+rFky7qzUw4HPnjkD7KAKfMzNzi70unGUaAYOszMhNScnxN7A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      <br>
      On Tuesday, November 30, 2021, Terje J. Hanssen <<a
        href="mailto:terjejhanssen@gmail.com" moz-do-not-send="true">terjejhanssen@gmail.com</a>>
      wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
        Den 29.11.2021 07:18, skrev Andrew Randrianasulu:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <br>
          <br>
          On Monday, November 29, 2021, Terje J. Hanssen <<a
            href="mailto:terjejhanssen@gmail.com" target="_blank"
            moz-do-not-send="true">terjejhanssen@gmail.com</a>
          <mailto:<a href="mailto:terjejhanssen@gmail.com"
            target="_blank" moz-do-not-send="true">terjejhanssen@gmail.co<wbr>m</a>>>
          wrote:<br>
          <br>
          <br>
          <br>
              Den 29.11.2021 02:07, skrev Andrew Randrianasulu:<br>
          <br>
          <br>
          <br>
                  On Monday, November 29, 2021, Terje J. Hanssen via Cin<br>
                  <<a href="mailto:cin@lists.cinelerra-gg.org"
            target="_blank" moz-do-not-send="true">cin@lists.cinelerra-gg.org</a><br>
                  <mailto:<a href="mailto:cin@lists.cinelerra-gg.org"
            target="_blank" moz-do-not-send="true">cin@lists.cinelerra-gg<wbr>.org</a>><br>
                  <mailto:<a href="mailto:cin@lists.cinelerra-gg.org"
            target="_blank" moz-do-not-send="true">cin@lists.cinelerra-gg<wbr>.org</a><br>
                  <mailto:<a href="mailto:cin@lists.cinelerra-gg.org"
            target="_blank" moz-do-not-send="true">cin@lists.cinelerra-gg<wbr>.org</a>>>>
          wrote:<br>
          <br>
                      2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM
          stereo<br>
                  audio :)<br>
          <br>
          <br>
                      Den 28.11.2021 22:48, skrev Terje J. Hanssen:<br>
          <br>
                          The source video files I want to convert to
          Blu-ray<br>
                  compliant<br>
                          MPEG-2 SD video with LPCM audio are:<br>
                          1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video
          with LPCM<br>
                  stereo<br>
                          audio<br>
                          and<br>
                          2) SD ProRes.mov, 422 (HQ) 19-bit video with
          LPCM<br>
                  stereo audio<br>
          <br>
                          The purpose is to get better MPEG-2 quality
          using higher<br>
                          (highest) possible bitrate than for DVD video.<br>
                          (Yes, I have tested h.264 via Cin-GG)<br>
          <br>
          <br>
                          Here a sample ffmpeg command script found for
          HD video<br>
                  with<br>
                          PCM (Blu-ray not mentioned):<br>
                  <a
            href="https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7"
            target="_blank" moz-do-not-send="true">https://gist.github.com/avoidi<wbr>k/153879c06afdcaad8d69b38bcc00<wbr>abb7</a><br>
                  <<a
            href="https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7"
            target="_blank" moz-do-not-send="true">https://gist.github.com/avoid<wbr>ik/153879c06afdcaad8d69b38bcc0<wbr>0abb7</a>><br>
                         <br>
                  <<a
            href="https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7"
            target="_blank" moz-do-not-send="true">https://gist.github.com/avoid<wbr>ik/153879c06afdcaad8d69b38bcc0<wbr>0abb7</a><br>
                  <<a
            href="https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7"
            target="_blank" moz-do-not-send="true">https://gist.github.com/avoid<wbr>ik/153879c06afdcaad8d69b38bcc0<wbr>0abb7</a>>><br>
                          # with PCM 16-bit audio (uncompressed),
          constant video<br>
                  bitrate<br>
                          with specific bitrate tolerance<br>
          <br>
                          ffmpeg -i "input.mp4" \<br>
                            -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf
          2 -b:v 50M<br>
                          -maxrate 50M -minrate 50M \<br>
                            -s 1920x1080 -aspect 16:9 \<br>
                            -c:a pcm_s16be -f vob \<br>
                            "output.mpg"<br>
          <br>
          <br>
          <br>
              Andrew,<br>
          <br>
              Thank you for your review and suggestions. I'll put the
          pieces<br>
              together tomorrow and start testing with em...<br>
          <br>
          <br>
                  for SD files replace '-s 1920x1080' with '-s 720x576'
          or omit<br>
                  this part {better} .<br>
          <br>
          <br>
              Not sure how to treate 720x576 (4:3) with regards to
          displaying on<br>
              a 16:9 Widescreen (HDTV), possibly crop the frames next to<br>
              SD Wide (16:9) "These resolutions are stored
          anamorphically, i.e.<br>
              they are stretched to the display aspect ratio by the
          player or<br>
              display."<br>
          <br>
          <br>
          <a
href="https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encoding-video-file"
            target="_blank" moz-do-not-send="true">https://superuser.com/question<wbr>s/907933/correct-aspect-ratio-<wbr>without-re-encoding-video-file</a>
          <<a
href="https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encoding-video-file"
            target="_blank" moz-do-not-send="true">https://superuser.com/questio<wbr>ns/907933/correct-aspect-<wbr>ratio-without-re-encoding-<wbr>video-file</a>><br>
          <br>
          ===<br>
          for MPEG-2, -aspect is useless; you need to use -bsf:v
          mpeg2_metadata=display_aspect_<wbr>ratio=4/3 (the only valid
          values are 4/3, 16/9, 221/100). Even this might not work {...}<br>
          ====<br>
          <br>
          try to experiment..<br>
          <br>
          <br>
          <br>
                  '-b:v 40M -maxrate 40M -minrate 40M'.  for 40 mbit/s
          fixed<br>
                  bitrate. for smaller bitrate just replace numbers.<br>
          <br>
                  -f m2ts for mpeg2 transport stream.<br>
          <br>
                  most likely remove -pix_fmt part.<br>
          <br>
                  -i your file (ffmpeg hopefully will detect its type
          and codecs<br>
                  automatically)<br>
          <br>
          <br>
          <br>
              So any Mpeg2 Profile@Level is neither required as
          discussed here:<br>
              <a
href="https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post2153378"
            target="_blank" moz-do-not-send="true">https://forum.videohelp.com/th<wbr>reads/345143-mpeg2-MP-ML-with-<wbr>ffmpeg#post2153378</a><br>
              <<a
href="https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post2153378"
            target="_blank" moz-do-not-send="true">https://forum.videohelp.com/t<wbr>hreads/345143-mpeg2-MP-ML-with<wbr>-ffmpeg#post2153378</a>><br>
          <br>
          <br>
          <br>
                  keep -c:v mpeg2video part<br>
          <br>
                  I do not think you need mp4box for further conversion,
          as name<br>
                  suggest it mostly deals {at output end} with mp4
          format, not<br>
                  mpeg2 transport stream (but you mentioned putting pcm
          in mp4,<br>
                  so I researched this part too)<br>
          <br>
          <br>
              PCM and ffmpeg was also discussed here<br>
              <a
            href="https://forum.doom9.org/showthread.php?p=1811816#post1811816"
            target="_blank" moz-do-not-send="true">https://forum.doom9.org/showth<wbr>read.php?p=1811816#post1811816</a><br>
              <<a
            href="https://forum.doom9.org/showthread.php?p=1811816#post1811816"
            target="_blank" moz-do-not-send="true">https://forum.doom9.org/showt<wbr>hread.php?p=1811816#post181181<wbr>6</a>><br>
          <br>
          <br>
                  try tsmuxer (gui) next (not sure if Appimage works for
          you, if<br>
                  not try their linux build from their github - tags -
          assets<br>
                  (there you need to expand 'assets' arrow/triangle to
          see<br>
                  various binary and source archives).<br>
          <br>
          <br>
          <br>
              Yep, tsMuxer still launches fine from my Appimage
          installation.<br>
              I'll have a look at it later....<br>
          <br>
        </blockquote>
        ==============================<wbr>=========<br>
        <br>
        I've tried four ffmpeg tests, 1) -4) below with .m2ts and .mp4
        containers<br>
        I used data rate 25M (comparable with the source dv 25 mbps,
        compression 5:1)<br>
        -f m2ts not accepted as format<br>
        would not copy lpcm audio into any new streams<br>
        VLC playback the video files OK - without audio<br>
        <br>
        Comments and new suggestions welcome ;)</blockquote>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>so yeah, it seems '-f mpegts' is way to go. does sound appear
        if you replace</div>
      <div> -c:a pcm_s16be with pcm_s16le? </div>
      <div> </div>
    </blockquote>
    <br>
    <font face="monospace">Still no audio, the same private stream
      message. Tried also just -c:a copy.<br>
      Mediainfo below add for mpg and mp4 add <br>
      Format                                   : DTS<br>
      Format/Info                              : Digital Theater Systems<br>
      <br>
      <br>
      du  -sh dv28*<br>
      470M    dv28.dv<br>
      452M    dv28.m2ts<br>
      443M    dv28.mts<br>
      443M    dv28.mkv<br>
      443M    dv28.mp4<br>
      443M    dv28.mpg<br>
      <br>
      <br>
      mediainfo dv28.dv | grep Format<br>
      Format                                   : DV<br>
      Format                                   : DV<br>
      Format                                   : PCM<br>
      Format settings                          : Big / Signed<br>
      <br>
      <br>
      mediainfo dv28.m2ts | grep Format<br>
      Format                                   : BDAV<br>
      Format/Info                              : Blu-ray Video<br>
      Format                                   : MPEG Video<br>
      Format version                           : Version 2<br>
      Format profile                           : Main@High 1440<br>
      Format settings                          : BVOP<br>
      Format settings, BVOP                    : Yes<br>
      Format settings, Matrix                  : Default<br>
      Format settings, GOP                     : M=3, N=12<br>
      <br>
      <br>
      mediainfo dv28.mkv | grep Format<br>
      Format                                   : MPEG-TS<br>
      Format                                   : MPEG Video<br>
      Format version                           : Version 2<br>
      Format profile                           : Main@High 1440<br>
      Format settings                          : BVOP<br>
      Format settings, BVOP                    : Yes<br>
      Format settings, Matrix                  : Default<br>
      Format settings, GOP                     : M=3, N=12<br>
      <br>
      <br>
      mediainfo dv28.mts | grep Format<br>
      Format                                   : MPEG-TS<br>
      Format                                   : MPEG Video<br>
      Format version                           : Version 2<br>
      Format profile                           : Main@High 1440<br>
      Format settings                          : BVOP<br>
      Format settings, BVOP                    : Yes<br>
      Format settings, Matrix                  : Default<br>
      Format settings, GOP                     : M=3, N=12<br>
      <br>
      <br>
      mediainfo dv28.mp4 | grep Format<br>
      Format                                   : MPEG-TS<br>
      Format                                   : MPEG Video<br>
      Format version                           : Version 2<br>
      Format profile                           : Main@High 1440<br>
      Format settings                          : BVOP<br>
      Format settings, BVOP                    : Yes<br>
      Format settings, Matrix                  : Default<br>
      Format settings, GOP                     : M=3, N=12<br>
      Format                                   : DTS<br>
      Format/Info                              : Digital Theater Systems<br>
      <br>
      <br>
      mediainfo dv28.mpg | grep Format<br>
      Format                                   : MPEG-TS<br>
      Format                                   : MPEG Video<br>
      Format version                           : Version 2<br>
      Format profile                           : Main@High 1440<br>
      Format settings                          : BVOP<br>
      Format settings, BVOP                    : Yes<br>
      Format settings, Matrix                  : Default<br>
      Format settings, GOP                     : M=3, N=12<br>
      Format                                   : DTS<br>
      Format/Info                              : Digital Theater Systems<br>
      <br>
      <br>
      <br>
      <br>
      <br>
    </font><br>
  </body>
</html>