<br><br>On Thursday, December 2, 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"><br>
<br>
Den 01.12.2021 18:30, 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 Tuesday, November 30, 2021, Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" target="_blank">terjejhanssen@gmail.com</a> <mailto:<a href="mailto:terjejhanssen@gmail.com" target="_blank">terjejhanssen@gmail.co<wbr>m</a>>> wrote:<br>
<br>
Tested the original sample script with minimal changes. A lot of<br>
buffer underflow messages, but the PCM audio stream was muxed and<br>
worked in VLC:<br>
<br>
ffmpeg -i dv28.dv -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2<br>
-b:v 25M -maxrate 25M -minrate 25M -s 720x576 -aspect 4:3 -c:a<br>
pcm_s16be -f vob dv28.mpg<br>
<br>
[vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to<br>
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<br>
bitrate=26867.5kbits/s speed= 15x<br>
video:416900kB audio:25620kB subtitle:0kB other streams:0kB global<br>
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,<br>
progressive), 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25<br>
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 : MPEG-PS<br>
Format : MPEG Video<br>
Format version : Version 2<br>
Format profile : 4:2:2@Main<br>
Format settings : BVOP<br>
Format settings, BVOP : Yes<br>
Format settings, Matrix : Default<br>
Format settings, GOP : M=3, N=12<br>
Format : PCM<br>
Format settings : Big / Signed<br>
<br>
<br>
there is also -muxrate and -bufsize options..<br>
<a href="https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-streaming-of-mpeg-2-ts-video-files" target="_blank">https://stackoverflow.com/ques<wbr>tions/44392689/ffmpeg-vbr-cbr-<wbr>conversion-and-streaming-of-<wbr>mpeg-2-ts-video-files</a> <<a href="https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-streaming-of-mpeg-2-ts-video-files" target="_blank">https://stackoverflow.com/que<wbr>stions/44392689/ffmpeg-vbr-cbr<wbr>-conversion-and-streaming-of-<wbr>mpeg-2-ts-video-files</a>><br>
<br>
try bufsize = muxrate = much bigger (1.8x?) than min/maxrate...<br>
<br>
ffmpeg exposes a lot of knobs...<br>
<br>
you also can try '-dc 9' 10 or 11 for higher-precision in some mpeg2 math..<br>
<br>
</blockquote>
===========<br>
<br>
ffmpeg -i dv28.dv -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -bufsize 45M -muxrate 45M -dc 10 -s 720x576 -aspect 4:3 -c:a pcm_s16be -f vob dv28.mpg<br>
<br>
Still a lot of ouput messages (some hundreds), tested -bufsize 45M -muxrate 45M (and 50M without change):<br>
[vob @ 0x557560237700] packet too large, ignoring buffer limits to mux it<br>
[vob @ 0x557560237700] buffer underflow st=1 bufi=6892 size=7680<br>
........... and lastly<br>
frame= 3416 fps=359 q=1.6 Lsize= 446718kB time=00:02:16.60 bitrate=26790.0kbits/s speed=14.4x<br>
video:415625kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240393%<br>
<br>
-----------<br>
<br>
The format setting "-f vob" in the original script, was maybe the trick that got ffmpeg to "mux" PCM audio into the mpg container, and not to other I tried(?)<br>
<br>
VOB is usual the DVD-video container where video has max bitrate 9.8 Mbps.<br>
I could find again if Blu-ray specification allows "VOB-video" or MPG-video here with high bitrate 25M?<br>
<br>
=============<br>
<br>
tsMuxer<br>
As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS<br>
Input file: dv28.mpg<br>
Tracs: MPEG-2 video stream and LPCM audio stream<br>
Output: M2TS muxing worked, Blu-ray ISO and Blu-ray Folder (tested as working fast and easy)<br>
<br>
<br>
ffmpeg -i dv28.m2ts 2>&1 >/dev/null | egrep "Video|Audio"<br>
Stream #0:0[0x1011]: Video: mpeg2video (4:2:2) (HDMV / 0x564D4448), 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[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s<br>
<br>
ffmpeg -i dv28_Blu-ray.iso 2>&1 >/dev/null | egrep "Video|Audio"<br>
Stream #0:0[0x1011]: Video: mpeg2video (4:2:2) (HDMV / 0x564D4448), 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[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s<br>
<br>
<br>
mediainfo dv28.m2ts | grep Format<br>
Format <wbr> : BDAV<br>
Format/Info <wbr> : Blu-ray Video<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<br>
<br>
<br>
mediainfo dv28_Blu-ray.iso | grep Format<br>
Format <wbr> : MPEG Video<br>
Format version <wbr> : Version 2<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>
<br>
<br>
tree -h BDMV<br>
BDMV<br>
├── [4.0K] AUXDATA<br>
├── [4.0K] BACKUP<br>
│ ├── [4.0K] BDJO<br>
│ ├── [4.0K] CLIPINF<br>
│ │ └── [1.8K] 00000.clpi<br>
│ ├── [ 120] index.bdmv<br>
│ ├── [ 290] MovieObject.bdmv<br>
│ └── [4.0K] PLAYLIST<br>
│ └── [ 170] 00000.mpls<br>
├── [4.0K] BDJO<br>
├── [4.0K] CLIPINF<br>
│ └── [1.8K] 00000.clpi<br>
├── [ 120] index.bdmv<br>
├── [4.0K] JAR<br>
├── [4.0K] META<br>
├── [ 290] MovieObject.bdmv<br>
├── [4.0K] PLAYLIST<br>
│ └── [ 170] 00000.mpls<br>
└── [4.0K] STREAM<br>
└── [456M] 00000.m2ts<br>
<br>
11 directories, 9 files<br>
<br>
===========<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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..<br>
<br>
</blockquote>
Good idea.<br>
I tried to burn dv28_Blu-ray.iso to a DVD-R disc with the gui burners Brasero and K3b, but both quitted at start with Failure.</blockquote><div><br></div><div>did they show detailed error message? </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Suggestion to how customize the previous "CL for HDV to Blu-ray" to burn the now ready made dv28_Blu-ray.iso (with udf included?)<br>
and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?</blockquote><div><br></div><div>try growisofs line from manual with this file? </div><div><br></div><div>also what "file' and udfinfo/bdinfo says about this iso? </div><div><br></div><div>For trying to burn just as data disk - try to drag those folders into k3d and do not forgot to check udf option somewhere (it probably will create hybrid iso/udf 1 fs - not sure if such disk will be seen as avchd by playe.. but worth trying at least once) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
========<br>
<br>
Terje J. H<br>
<br>
<br>
<br>
</blockquote>