<br><br>On Tuesday, November 30, 2021, Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tested the original sample script with minimal changes. A lot of buffer underflow messages, but the PCM audio stream was muxed and worked in VLC:<br>
<br>
ffmpeg -i dv28.dv -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x576 -aspect 4:3 -c:a pcm_s16be -f vob dv28.mpg<br>
<br>
[vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to mux it<br>
[vob @ 0x562322bbb6c0] buffer underflow st=1 bufi=6876 size=7680<br>
frame= 3416 fps=374 q=2.2 Lsize= 448010kB time=00:02:16.60 bitrate=26867.5kbits/s speed= 15x<br>
video:416900kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240520%<br>
<br>
<br>
ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio"<br>
Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv, progressive), 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc<br>
Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s<br>
<br>
<br>
mediainfo dv28.mpg | grep Format<br>
Format <wbr> : MPEG-PS<br>
Format <wbr> : MPEG Video<br>
Format version <wbr> : Version 2<br>
Format profile <wbr> : 4:2:2@Main<br>
Format settings <wbr> : BVOP<br>
Format settings, BVOP : Yes<br>
Format settings, Matrix : Default<br>
Format settings, GOP : M=3, N=12<br>
Format <wbr> : PCM<br>
Format settings <wbr> : Big / Signed</blockquote><div><br></div><div>there is also -muxrate and -bufsize options.. </div><div><a href="https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-streaming-of-mpeg-2-ts-video-files">https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-streaming-of-mpeg-2-ts-video-files</a></div><div><br></div><div>try bufsize = muxrate = much bigger (1.8x?) than min/maxrate... </div><div><br></div><div>ffmpeg exposes a lot of knobs... </div><div><br></div><div>you also can try '-dc 9' 10 or 11 for higher-precision in some mpeg2 math.. </div><div><br></div><div>for minimising disk loss you probably can prep. few samples with different encoding/muxing params and burn them all on one disk and see how well/bad your hw player plays (and seeks) them.. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Terje J. H<br>
<br>
</blockquote>