Blu-ray compliant MPEG-2 SD video with LPCM audio
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG) Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg" Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if PCM has to be muxed via MP4(Box) first, a guideline is welcome? ------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) ----------------------- Terje J. H
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :) Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
On Monday, November 29, 2021, Terje J. Hanssen via Cin < [email protected]> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers. -f m2ts for mpeg2 transport stream. most likely remove -pix_fmt part. -i your file (ffmpeg hopefully will detect its type and codecs automatically) keep -c:v mpeg2video part I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too) try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin <[email protected] <mailto:[email protected]>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7> # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew, Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post21533...
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
-- Cin mailing list [email protected] <mailto:[email protected]> https://lists.cinelerra-gg.org/mailman/listinfo/cin <https://lists.cinelerra-gg.org/mailman/listinfo/cin>
On Monday, November 29, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin < [email protected] <mailto:[email protected]>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7
# with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
yeah, I missed this part... hopefully there will be simple chain of arguments to ffmpeg for this!
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with- ffmpeg#post2153378
you can try first with levels you found, then without (hopefully your player accept -rw disks)
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816
yeah.. you can also try to patch ffmpeg 4.4 (or 4.3) with Cinelerra-GG's ffmpeg*. patch2 (one modifying m2ts muxer) - but this will not add pcm_bluray 'encoder'
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
-- Cin mailing list [email protected] <mailto:[email protected]> https://lists.cinelerra-gg.org/mailman/listinfo/cin <https://lists.cinelerra-gg.org/mailman/listinfo/cin>
On Monday, November 29, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin < [email protected] <mailto:[email protected]>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7
# with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encod... === for MPEG-2, -aspect is useless; you need to use -bsf:v mpeg2_metadata=display_aspect_ratio=4/3 (the only valid values are 4/3, 16/9, 221/100). Even this might not work {...} ==== try to experiment..
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with- ffmpeg#post2153378
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
Suggestion to FFMpeg command to convert the actual SD video files Blu-ray compat? And if LPCM has to be muxed via MP4(Box) first, a guideline is welcome?
------------------ Some Blu-ray technical info and specifications: Video codec MPEG2 - MP@ML (4:3 or 16:9), MP@HL (16:9) Video frame size 720×576 25 frames interlaced / 50 fields (4:3/16:9) Max video bitrate 40 Mbit/s **BD-R/RE AV SESF, Part 3 (2018): Video Streams: max. 15 Mbps VBR (MP@ML) and 24 Mbps (MP@HL) Audio codecs LPCM 1.536 Mbps (16 bit, 2 ch), 2.304 Mbps (20, 24 bit) -----------------------
Terje J. H
-- Cin mailing list [email protected] <mailto:[email protected]> https://lists.cinelerra-gg.org/mailman/listinfo/cin <https://lists.cinelerra-gg.org/mailman/listinfo/cin>
Den 29.11.2021 07:18, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7> <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7>> # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encod... <https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encoding-video-file>
=== for MPEG-2, -aspect is useless; you need to use -bsf:v mpeg2_metadata=display_aspect_ratio=4/3 (the only valid values are 4/3, 16/9, 221/100). Even this might not work {...} ====
try to experiment..
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post21533... <https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post2153378>
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816 <https://forum.doom9.org/showthread.php?p=1811816#post1811816>
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
======================================= I've tried four ffmpeg tests, 1) -4) below with .m2ts and .mp4 containers I used data rate 25M (comparable with the source dv 25 mbps, compression 5:1) -f m2ts not accepted as format would not copy lpcm audio into any new streams VLC playback the video files OK - without audio Comments and new suggestions welcome ;) =================== du -sh dv28* 470M dv28.dv (the source input file) 452M dv28.m2ts 443M dv28.mkv 443M dv28.mp4 443M dv28.mts ffmpeg -i dv28.dv 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s 1) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f m2ts dv28.m2ts [NULL @ 0x557007bcd900] Requested output format 'm2ts' is not a suitable output format dv28.m2ts: Invalid argument 2) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f m2ts dv28.mp4 [NULL @ 0x55f3112e3900] Requested output format 'm2ts' is not a suitable output format dv28.mp4: Invalid argument 3) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f mpegts dv28.m2ts [mpeg2video @ 0x55bc49d1c040] Automatically choosing VBV buffer size of 372 kbyte [mpegts @ 0x55bc49d1a900] Stream 1, codec pcm_s16be, is muxed as a private data stream and may not be recognized upon reading. ffmpeg -i dv28.m2ts 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 720x756 [SAR 7:5 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc 4) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f mpegts dv28.mp4 mpeg2video @ 0x56173fa7e040] Automatically choosing VBV buffer size of 372 kbyte [mpegts @ 0x56173fa7c900] Stream 1, codec pcm_s16be, is muxed as a private data stream and may not be recognized upon reading. ffmpeg -i dv28.mp4 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 720x756 [SAR 7:5 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc ================ Terje J. H
On Tuesday, November 30, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 29.11.2021 07:18, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7
<https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7
# with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
https://superuser.com/questions/907933/correct-aspect-ratio- without-re-encoding-video-file <https://superuser.com/questio ns/907933/correct-aspect-ratio-without-re-encoding-video-file>
=== for MPEG-2, -aspect is useless; you need to use -bsf:v mpeg2_metadata=display_aspect_ratio=4/3 (the only valid values are 4/3, 16/9, 221/100). Even this might not work {...} ====
try to experiment..
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with- ffmpeg#post2153378 <https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with -ffmpeg#post2153378>
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816 <https://forum.doom9.org/showthread.php?p=1811816#post1811816>
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
=======================================
I've tried four ffmpeg tests, 1) -4) below with .m2ts and .mp4 containers I used data rate 25M (comparable with the source dv 25 mbps, compression 5:1) -f m2ts not accepted as format would not copy lpcm audio into any new streams VLC playback the video files OK - without audio
Comments and new suggestions welcome ;)
so yeah, it seems '-f mpegts' is way to go. does sound appear if you replace -c:a pcm_s16be with pcm_s16le?
===================
du -sh dv28*
470M dv28.dv (the source input file) 452M dv28.m2ts 443M dv28.mkv 443M dv28.mp4 443M dv28.mts
ffmpeg -i dv28.dv 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
1) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f m2ts dv28.m2ts
[NULL @ 0x557007bcd900] Requested output format 'm2ts' is not a suitable output format dv28.m2ts: Invalid argument
2) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f m2ts dv28.mp4
[NULL @ 0x55f3112e3900] Requested output format 'm2ts' is not a suitable output format dv28.mp4: Invalid argument
3) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f mpegts dv28.m2ts
[mpeg2video @ 0x55bc49d1c040] Automatically choosing VBV buffer size of 372 kbyte [mpegts @ 0x55bc49d1a900] Stream 1, codec pcm_s16be, is muxed as a private data stream and may not be recognized upon reading.
ffmpeg -i dv28.m2ts 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 720x756 [SAR 7:5 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
4) ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M -maxrate 25M -minrate 25M -s 720x756 -c:a pcm_s16be -f mpegts dv28.mp4
mpeg2video @ 0x56173fa7e040] Automatically choosing VBV buffer size of 372 kbyte [mpegts @ 0x56173fa7c900] Stream 1, codec pcm_s16be, is muxed as a private data stream and may not be recognized upon reading.
ffmpeg -i dv28.mp4 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 720x756 [SAR 7:5 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
================
Terje J. H
Den 30.11.2021 01:57, skrev Andrew Randrianasulu:
On Tuesday, November 30, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Den 29.11.2021 07:18, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>> wrote:
Den 29.11.2021 02:07, skrev Andrew Randrianasulu:
On Monday, November 29, 2021, Terje J. Hanssen via Cin <[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>> <mailto:[email protected] <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
2) SD ProRes.mov, 422 (HQ) 10-bit video with LPCM stereo audio :)
Den 28.11.2021 22:48, skrev Terje J. Hanssen:
The source video files I want to convert to Blu-ray compliant MPEG-2 SD video with LPCM audio are: 1) DV25.dv, 720 x 576 (PAL), 50i 4:2:0 video with LPCM stereo audio and 2) SD ProRes.mov, 422 (HQ) 19-bit video with LPCM stereo audio
The purpose is to get better MPEG-2 quality using higher (highest) possible bitrate than for DVD video. (Yes, I have tested h.264 via Cin-GG)
Here a sample ffmpeg command script found for HD video with PCM (Blu-ray not mentioned): https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7> <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7>>
<https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7> <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7 <https://gist.github.com/avoidik/153879c06afdcaad8d69b38bcc00abb7>>> # with PCM 16-bit audio (uncompressed), constant video bitrate with specific bitrate tolerance
ffmpeg -i "input.mp4" \ -c:v mpeg2video -pix_fmt yuv422p -refs 1 -bf 2 -b:v 50M -maxrate 50M -minrate 50M \ -s 1920x1080 -aspect 16:9 \ -c:a pcm_s16be -f vob \ "output.mpg"
Andrew,
Thank you for your review and suggestions. I'll put the pieces together tomorrow and start testing with em...
for SD files replace '-s 1920x1080' with '-s 720x576' or omit this part {better} .
Not sure how to treate 720x576 (4:3) with regards to displaying on a 16:9 Widescreen (HDTV), possibly crop the frames next to SD Wide (16:9) "These resolutions are stored anamorphically, i.e. they are stretched to the display aspect ratio by the player or display."
https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encod... <https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encoding-video-file> <https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encod... <https://superuser.com/questions/907933/correct-aspect-ratio-without-re-encoding-video-file>>
=== for MPEG-2, -aspect is useless; you need to use -bsf:v mpeg2_metadata=display_aspect_ratio=4/3 (the only valid values are 4/3, 16/9, 221/100). Even this might not work {...} ====
try to experiment..
'-b:v 40M -maxrate 40M -minrate 40M'. for 40 mbit/s fixed bitrate. for smaller bitrate just replace numbers.
-f m2ts for mpeg2 transport stream.
most likely remove -pix_fmt part.
-i your file (ffmpeg hopefully will detect its type and codecs automatically)
So any Mpeg2 Profile@Level is neither required as discussed here: https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post21533... <https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post2153378> <https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post21533... <https://forum.videohelp.com/threads/345143-mpeg2-MP-ML-with-ffmpeg#post2153378>>
keep -c:v mpeg2video part
I do not think you need mp4box for further conversion, as name suggest it mostly deals {at output end} with mp4 format, not mpeg2 transport stream (but you mentioned putting pcm in mp4, so I researched this part too)
PCM and ffmpeg was also discussed here https://forum.doom9.org/showthread.php?p=1811816#post1811816 <https://forum.doom9.org/showthread.php?p=1811816#post1811816> <https://forum.doom9.org/showthread.php?p=1811816#post1811816 <https://forum.doom9.org/showthread.php?p=1811816#post1811816>>
try tsmuxer (gui) next (not sure if Appimage works for you, if not try their linux build from their github - tags - assets (there you need to expand 'assets' arrow/triangle to see various binary and source archives).
Yep, tsMuxer still launches fine from my Appimage installation. I'll have a look at it later....
=======================================
I've tried four ffmpeg tests, 1) -4) below with .m2ts and .mp4 containers I used data rate 25M (comparable with the source dv 25 mbps, compression 5:1) -f m2ts not accepted as format would not copy lpcm audio into any new streams VLC playback the video files OK - without audio
Comments and new suggestions welcome ;)
so yeah, it seems '-f mpegts' is way to go. does sound appear if you replace -c:a pcm_s16be with pcm_s16le?
Still no audio, the same private stream message. Tried also just -c:a copy. Mediainfo below add for mpg and mp4 add Format : DTS Format/Info : Digital Theater Systems du -sh dv28* 470M dv28.dv 452M dv28.m2ts 443M dv28.mts 443M dv28.mkv 443M dv28.mp4 443M dv28.mpg mediainfo dv28.dv | grep Format Format : DV Format : DV Format : PCM Format settings : Big / Signed mediainfo dv28.m2ts | grep Format Format : BDAV Format/Info : Blu-ray Video Format : MPEG Video Format version : Version 2 Format profile : Main@High 1440 Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 mediainfo dv28.mkv | grep Format Format : MPEG-TS Format : MPEG Video Format version : Version 2 Format profile : Main@High 1440 Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 mediainfo dv28.mts | grep Format Format : MPEG-TS Format : MPEG Video Format version : Version 2 Format profile : Main@High 1440 Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 mediainfo dv28.mp4 | grep Format Format : MPEG-TS Format : MPEG Video Format version : Version 2 Format profile : Main@High 1440 Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : DTS Format/Info : Digital Theater Systems mediainfo dv28.mpg | grep Format Format : MPEG-TS Format : MPEG Video Format version : Version 2 Format profile : Main@High 1440 Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : DTS Format/Info : Digital Theater Systems
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: 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 [vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to mux it [vob @ 0x562322bbb6c0] buffer underflow st=1 bufi=6876 size=7680 frame= 3416 fps=374 q=2.2 Lsize= 448010kB time=00:02:16.60 bitrate=26867.5kbits/s speed= 15x video:416900kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240520% ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s mediainfo dv28.mpg | grep Format Format : MPEG-PS Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed Terje J. H
On Tuesday, November 30, 2021, Terje J. Hanssen <[email protected]> wrote:
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:
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
[vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to mux it [vob @ 0x562322bbb6c0] buffer underflow st=1 bufi=6876 size=7680 frame= 3416 fps=374 q=2.2 Lsize= 448010kB time=00:02:16.60 bitrate=26867.5kbits/s speed= 15x video:416900kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240520%
ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28.mpg | grep Format Format : MPEG-PS Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed
there is also -muxrate and -bufsize options.. https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-s... try bufsize = muxrate = much bigger (1.8x?) than min/maxrate... ffmpeg exposes a lot of knobs... you also can try '-dc 9' 10 or 11 for higher-precision in some mpeg2 math.. 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..
Terje J. H
Den 01.12.2021 18:30, skrev Andrew Randrianasulu:
On Tuesday, November 30, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
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:
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
[vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to mux it [vob @ 0x562322bbb6c0] buffer underflow st=1 bufi=6876 size=7680 frame= 3416 fps=374 q=2.2 Lsize= 448010kB time=00:02:16.60 bitrate=26867.5kbits/s speed= 15x video:416900kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240520%
ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28.mpg | grep Format Format : MPEG-PS Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed
there is also -muxrate and -bufsize options.. https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-s... <https://stackoverflow.com/questions/44392689/ffmpeg-vbr-cbr-conversion-and-streaming-of-mpeg-2-ts-video-files>
try bufsize = muxrate = much bigger (1.8x?) than min/maxrate...
ffmpeg exposes a lot of knobs...
you also can try '-dc 9' 10 or 11 for higher-precision in some mpeg2 math..
=========== 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 Still a lot of ouput messages (some hundreds), tested -bufsize 45M -muxrate 45M (and 50M without change): [vob @ 0x557560237700] packet too large, ignoring buffer limits to mux it [vob @ 0x557560237700] buffer underflow st=1 bufi=6892 size=7680 ........... and lastly frame= 3416 fps=359 q=1.6 Lsize= 446718kB time=00:02:16.60 bitrate=26790.0kbits/s speed=14.4x video:415625kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240393% ----------- 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(?) VOB is usual the DVD-video container where video has max bitrate 9.8 Mbps. I could find again if Blu-ray specification allows "VOB-video" or MPG-video here with high bitrate 25M? ============= tsMuxer As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS Input file: dv28.mpg Tracs: MPEG-2 video stream and LPCM audio stream Output: M2TS muxing worked, Blu-ray ISO and Blu-ray Folder (tested as working fast and easy) ffmpeg -i dv28.m2ts 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s ffmpeg -i dv28_Blu-ray.iso 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s mediainfo dv28.m2ts | grep Format Format : BDAV Format/Info : Blu-ray Video Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed mediainfo dv28_Blu-ray.iso | grep Format Format : MPEG Video Format version : Version 2 Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 tree -h BDMV BDMV ├── [4.0K] AUXDATA ├── [4.0K] BACKUP │ ├── [4.0K] BDJO │ ├── [4.0K] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 120] index.bdmv │ ├── [ 290] MovieObject.bdmv │ └── [4.0K] PLAYLIST │ └── [ 170] 00000.mpls ├── [4.0K] BDJO ├── [4.0K] CLIPINF │ └── [1.8K] 00000.clpi ├── [ 120] index.bdmv ├── [4.0K] JAR ├── [4.0K] META ├── [ 290] MovieObject.bdmv ├── [4.0K] PLAYLIST │ └── [ 170] 00000.mpls └── [4.0K] STREAM └── [456M] 00000.m2ts 11 directories, 9 files ===========
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..
Good idea. 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. 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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs? ======== Terje J. H
On Thursday, December 2, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 01.12.2021 18:30, skrev Andrew Randrianasulu:
On Tuesday, November 30, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
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:
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
[vob @ 0x562322bbb6c0] packet too large, ignoring buffer limits to mux it [vob @ 0x562322bbb6c0] buffer underflow st=1 bufi=6876 size=7680 frame= 3416 fps=374 q=2.2 Lsize= 448010kB time=00:02:16.60 bitrate=26867.5kbits/s speed= 15x video:416900kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240520%
ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28.mpg | grep Format Format : MPEG-PS Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed
there is also -muxrate and -bufsize options.. 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>
try bufsize = muxrate = much bigger (1.8x?) than min/maxrate...
ffmpeg exposes a lot of knobs...
you also can try '-dc 9' 10 or 11 for higher-precision in some mpeg2 math..
===========
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
Still a lot of ouput messages (some hundreds), tested -bufsize 45M -muxrate 45M (and 50M without change): [vob @ 0x557560237700] packet too large, ignoring buffer limits to mux it [vob @ 0x557560237700] buffer underflow st=1 bufi=6892 size=7680 ........... and lastly frame= 3416 fps=359 q=1.6 Lsize= 446718kB time=00:02:16.60 bitrate=26790.0kbits/s speed=14.4x video:415625kB audio:25620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.240393%
-----------
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(?)
VOB is usual the DVD-video container where video has max bitrate 9.8 Mbps. I could find again if Blu-ray specification allows "VOB-video" or MPG-video here with high bitrate 25M?
=============
tsMuxer As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS Input file: dv28.mpg Tracs: MPEG-2 video stream and LPCM audio stream Output: M2TS muxing worked, Blu-ray ISO and Blu-ray Folder (tested as working fast and easy)
ffmpeg -i dv28.m2ts 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
ffmpeg -i dv28_Blu-ray.iso 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28.m2ts | grep Format Format : BDAV Format/Info : Blu-ray Video Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Format : PCM Format settings : Big / Signed
mediainfo dv28_Blu-ray.iso | grep Format Format : MPEG Video Format version : Version 2 Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12
tree -h BDMV BDMV ├── [4.0K] AUXDATA ├── [4.0K] BACKUP │ ├── [4.0K] BDJO │ ├── [4.0K] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 120] index.bdmv │ ├── [ 290] MovieObject.bdmv │ └── [4.0K] PLAYLIST │ └── [ 170] 00000.mpls ├── [4.0K] BDJO ├── [4.0K] CLIPINF │ └── [1.8K] 00000.clpi ├── [ 120] index.bdmv ├── [4.0K] JAR ├── [4.0K] META ├── [ 290] MovieObject.bdmv ├── [4.0K] PLAYLIST │ └── [ 170] 00000.mpls └── [4.0K] STREAM └── [456M] 00000.m2ts
11 directories, 9 files
===========
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..
Good idea. 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.
did they show detailed error message?
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file? also what "file' and udfinfo/bdinfo says about this iso? 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)
========
Terje J. H
Den 02.12.2021 09:13, skrev Andrew Randrianasulu:
On Thursday, December 2, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
=============
tsMuxer As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS Input file: dv28.mpg Tracs: MPEG-2 video stream and LPCM audio stream Output: M2TS muxing worked, Blu-ray ISO and Blu-ray Folder (tested as working fast and easy)
ffmpeg -i dv28_Blu-ray.iso 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28_Blu-ray.iso | grep Format Format : MPEG Video Format version : Version 2 Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
also what "file' and udfinfo/bdinfo says about this iso?
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)
Confusing even without BDAV, but "avchd" is seemingly just AVC/H264 - MPEG-4 AVC, while BDMV on DVD media can contain both MPEG-2 and AVC MPEG4 stuff ......? https://web.archive.org/web/20110719224338/http://www.cyberlink.com/prog/sup... DVD+R Broken attempts again with Brasero, while K3b burned the iso image file itself as on HDD. For the latter a selected New Data project and selected the iso file, which maybe was m fault. DVD+RW I succeeded to burn the iso file to DVD+RW discs using both K3b and Brasero Playback from HDD with VLC works smootly, from DVD+RW disk a bit stuttered (I/O problems) with short "breathing pauses" at regular intervals (now and then) in video&audio. I expect this has to do with the 25 Mbps bitrate 2.5 x of DVD-video. When I get my ordered BD_RE discs I would expect them to manage this well. Samsung UBD 8500 player still doesn't accept these discs and put them out after saying they are out of specification. I have not compared all format specifications, but these tables cover Samsung FHD and UHD player respectively https://www.easefab.com/instructabletips/samsung-blu-ray-player-supported-fo... http://www.acrok.com/samsung-blu-ray-player-supported-formats/ -------------------- bd_info /dev/sr0 Using libbluray version 1.3.0 Volume Identifier : BluRay detected : yes First Play supported: yes Top menu supported : yes HDMV titles : 1 BD-J titles : 0 UNSUPPORTED titles : 0 BD-J detected : no AACS detected : no BD+ detected : no Application info: initial mode preference : 2D 3D content exists : No video format : ignored (0x0) frame rate : ignored (0x0) initial dynamic range : SDR (0x0) provider data : ' ' No disc library metadata ----------------------------- bluray_info /dev/sr0 Disc title: '', Volume name: ' ', Main title: 001, AACS: no, BD-J: no, BD+: no Title: 001, Playlist: 0000, Length: 00:02:16.64, Chapters: 001, Video streams: 01, Audio streams: 01, Subtitles: 00, Angles: 01, Filesize: 00457 MBs ------------------------- ffprobe bluray:/dev/sr0 [bluray @ 0x55f6b1d3ebc0] 0 usable playlists: bluray:/dev/sr0: Input/output error ffmpeg -i /dev/sr0 [mpegts @ 0x56143f5aacc0] Could not detect TS packet size, defaulting to non-FEC/DVHS [mpegts @ 0x56143f5aacc0] max resync size reached, could not find sync byte Last message repeated 14 times [mpegts @ 0x56143f5aacc0] changing packet size to 192 Input #0, mpegts, from '/dev/sr0': Duration: N/A, start: 4200.000000, bitrate: 26536 kb/s Program 1 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 Side data: cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 3047424 vbv_delay: N/A Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s At least one output file must be specified ------------------------------------------ df -h /dev/sr0 Filesystem Size Used Avail Use% Mounted on /dev/sr0 457M 457M 0 100% /run/media/terje/17634ba320202020 tree -h /run/media/terje/17634ba320202020 /run/media/terje/17634ba320202020 ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 288] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [1.8K] 00000.clpi │ │ ├── [ 290] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 170] 00000.mpls │ │ └── [ 120] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 290] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 170] 00000.mpls │ ├── [ 92] STREAM │ │ └── [456M] 00000.m2ts │ └── [ 120] index.bdmv └── [ 88] CERTIFICATE └── [ 40] BACKUP 14 directories, 9 files ---------------------- udfinfo /dev/sr0 udfinfo: Warning: Device '/dev/sr0' is busy, udfinfo may report bogus information udfinfo: Warning: Second and third Anchor Volume Descriptor Pointer not found filename=/dev/sr0 label= uuid=17634ba320202020 lvid= vid= vsid= fsid= fullvsid=17634BA3 owner= organization= contact= appid=*tsMuxeR git-c483756 impid=*tsMuxeR 53a5f1f6 winserialnum=0xa6df2fea blocksize=2048 blocks=2295104 usedblocks=233856 freeblocks=0 behindblocks=2060912 numfiles=9 numdirs=15 udfrev=2.50 udfwriterev=2.50 lastblock=2295104 integrity=closed accesstype=readonly softwriteprotect=no hardwriteprotect=no start=16, blocks=3, type=VRS start=32, blocks=16, type=MVDS start=64, blocks=1, type=LVID start=256, blocks=1, type=ANCHOR start=288, blocks=233856, type=PSPACE start=234176, blocks=16, type=RVDS
On Friday, December 3, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 02.12.2021 09:13, skrev Andrew Randrianasulu:
On Thursday, December 2, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
=============
tsMuxer As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS Input file: dv28.mpg Tracs: MPEG-2 video stream and LPCM audio stream Output: M2TS muxing worked, Blu-ray ISO and Blu-ray Folder (tested as working fast and easy)
ffmpeg -i dv28_Blu-ray.iso 2>&1 >/dev/null | egrep "Video|Audio" 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 Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
mediainfo dv28_Blu-ray.iso | grep Format Format : MPEG Video Format version : Version 2 Format : MPEG Video Format version : Version 2 Format profile : 4:2:2@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
very big thanks. So apparently cdrecord was not patient enough with drive (? unit becoming ready reply from scsi layer) and libburn behind braseo just send something illegal.. I think for now we can limit ourselves to k3b.
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
also what "file' and udfinfo/bdinfo says about this iso?
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)
Confusing even without BDAV, but "avchd" is seemingly just AVC/H264 - MPEG-4 AVC, while BDMV on DVD media can contain both MPEG-2 and AVC MPEG4 stuff ......? https://web.archive.org/web/20110719224338/http://www.cyberl ink.com/prog/support/cs/product-faq-content.do?id=5645& prodId=15&prodVerId=-1
yeahhh.. apparently avchd spec says about x264 encoded video, and there was (abandoned? ) specification for BLU-ray on dvd media (with wider codec selection?)
DVD+R Broken attempts again with Brasero, while K3b burned the iso image file itself as on HDD. For the latter a selected New Data project and selected the iso file, which maybe was m fault.
is there way to select not New Data Project but 'burn iso image'?
DVD+RW I succeeded to burn the iso file to DVD+RW discs using both K3b and Brasero Playback from HDD with VLC works smootly, from DVD+RW disk a bit stuttered (I/O problems) with short "breathing pauses" at regular intervals (now and then) in video&audio. I expect this has to do with the 25 Mbps bitrate 2.5 x of DVD-video. When I get my ordered BD_RE discs I would expect them to manage this well.
yeah.. from comments on this old blogpost from 2010 people discovered total bitrate on dvd must be not higher than 16-17 mbit/s, and video alone better not to shot over 13 mbit/s. (considering lpcm audio)
Samsung UBD 8500 player still doesn't accept these discs and put them out after saying they are out of specification. I have not compared all format specifications, but these tables cover Samsung FHD and UHD player respectively https://www.easefab.com/instructabletips/samsung-blu-ray- player-supported-formats.html http://www.acrok.com/samsung-blu-ray-player-supported-formats/
thanks, while those not as detailed as bd specs alone..
--------------------
bd_info /dev/sr0 Using libbluray version 1.3.0 Volume Identifier : BluRay detected : yes First Play supported: yes Top menu supported : yes HDMV titles : 1 BD-J titles : 0 UNSUPPORTED titles : 0
BD-J detected : no
AACS detected : no
BD+ detected : no
Application info: initial mode preference : 2D 3D content exists : No video format : ignored (0x0) frame rate : ignored (0x0) initial dynamic range : SDR (0x0) provider data : ' '
No disc library metadata
-----------------------------
bluray_info /dev/sr0 Disc title: '', Volume name: ' ', Main title: 001, AACS: no, BD-J: no, BD+: no Title: 001, Playlist: 0000, Length: 00:02:16.64, Chapters: 001, Video streams: 01, Audio streams: 01, Subtitles: 00, Angles: 01, Filesize: 00457 MBs
-------------------------
ffprobe bluray:/dev/sr0 [bluray @ 0x55f6b1d3ebc0] 0 usable playlists: bluray:/dev/sr0: Input/output error
ffmpeg -i /dev/sr0 [mpegts @ 0x56143f5aacc0] Could not detect TS packet size, defaulting to non-FEC/DVHS [mpegts @ 0x56143f5aacc0] max resync size reached, could not find sync byte Last message repeated 14 times [mpegts @ 0x56143f5aacc0] changing packet size to 192 Input #0, mpegts, from '/dev/sr0': Duration: N/A, start: 4200.000000, bitrate: 26536 kb/s Program 1 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 Side data: cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 3047424 vbv_delay: N/A Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s At least one output file must be specified
------------------------------------------
so it looks like disk can be detected as bluray of some sort, and our
audio encoded correctly...
df -h /dev/sr0 Filesystem Size Used Avail Use% Mounted on /dev/sr0 457M 457M 0 100% /run/media/terje/17634ba320202020
tree -h /run/media/terje/17634ba320202020 /run/media/terje/17634ba320202020 ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 288] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [1.8K] 00000.clpi │ │ ├── [ 290] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 170] 00000.mpls │ │ └── [ 120] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 290] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 170] 00000.mpls │ ├── [ 92] STREAM │ │ └── [456M] 00000.m2ts │ └── [ 120] index.bdmv └── [ 88] CERTIFICATE └── [ 40] BACKUP
14 directories, 9 files
----------------------
looks... correct?
udfinfo /dev/sr0 udfinfo: Warning: Device '/dev/sr0' is busy, udfinfo may report bogus information udfinfo: Warning: Second and third Anchor Volume Descriptor Pointer not found filename=/dev/sr0 label= uuid=17634ba320202020 lvid= vid= vsid= fsid= fullvsid=17634BA3 owner= organization= contact= appid=*tsMuxeR git-c483756 impid=*tsMuxeR 53a5f1f6 winserialnum=0xa6df2fea blocksize=2048 blocks=2295104 usedblocks=233856 freeblocks=0 behindblocks=2060912 numfiles=9 numdirs=15 udfrev=2.50 udfwriterev=2.50 lastblock=2295104 integrity=closed accesstype=readonly softwriteprotect=no hardwriteprotect=no start=16, blocks=3, type=VRS start=32, blocks=16, type=MVDS start=64, blocks=1, type=LVID start=256, blocks=1, type=ANCHOR start=288, blocks=233856, type=PSPACE start=234176, blocks=16, type=RVDS
so yeah, it is udf 2.50! can you check what udf_test (udf verifier we talked about earlier) says about this disk?
Den 03.12.2021 08:21, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
very big thanks. So apparently cdrecord was not patient enough with drive (? unit becoming ready reply from scsi layer) and libburn behind braseo just send something illegal..
I think for now we can limit ourselves to k3b.
Brasero (default) is good for simple burning, but afaik it has no Blu-ray support like K3b. K3b is (more) advanced, but its gui can be somewhat confusing before longer experience.
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
also what "file' and udfinfo/bdinfo says about this iso?
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)
Confusing even without BDAV, but "avchd" is seemingly just AVC/H264 - MPEG-4 AVC, while BDMV on DVD media can contain both MPEG-2 and AVC MPEG4 stuff ......? https://web.archive.org/web/20110719224338/http://www.cyberlink.com/prog/sup... <https://web.archive.org/web/20110719224338/http://www.cyberlink.com/prog/support/cs/product-faq-content.do?id=5645&prodId=15&prodVerId=-1>
yeahhh.. apparently avchd spec says about x264 encoded video, and there was (abandoned? ) specification for BLU-ray on dvd media (with wider codec selection?)
DVD+R Broken attempts again with Brasero, while K3b burned the iso image file itself as on HDD. For the latter a selected New Data project and selected the iso file, which maybe was m fault.
is there way to select not New Data Project but 'burn iso image'?
I'll look at and will test more of this next ......
DVD+RW I succeeded to burn the iso file to DVD+RW discs using both K3b and Brasero Playback from HDD with VLC works smootly, from DVD+RW disk a bit stuttered (I/O problems) with short "breathing pauses" at regular intervals (now and then) in video&audio. I expect this has to do with the 25 Mbps bitrate 2.5 x of DVD-video. When I get my ordered BD_RE discs I would expect them to manage this well.
yeah.. from comments on this old blogpost from 2010 people discovered total bitrate on dvd must be not higher than 16-17 mbit/s, and video alone better not to shot over 13 mbit/s. (considering lpcm audio)
Samsung UBD 8500 player still doesn't accept these discs and put them out after saying they are out of specification. I have not compared all format specifications, but these tables cover Samsung FHD and UHD player respectively https://www.easefab.com/instructabletips/samsung-blu-ray-player-supported-fo... <https://www.easefab.com/instructabletips/samsung-blu-ray-player-supported-formats.html> http://www.acrok.com/samsung-blu-ray-player-supported-formats/ <http://www.acrok.com/samsung-blu-ray-player-supported-formats/>
thanks, while those not as detailed as bd specs alone..
--------------------
bd_info /dev/sr0 Using libbluray version 1.3.0 Volume Identifier : BluRay detected : yes First Play supported: yes Top menu supported : yes HDMV titles : 1 BD-J titles : 0 UNSUPPORTED titles : 0
BD-J detected : no
AACS detected : no
BD+ detected : no
Application info: initial mode preference : 2D 3D content exists : No video format : ignored (0x0) frame rate : ignored (0x0) initial dynamic range : SDR (0x0) provider data : ' '
No disc library metadata
-----------------------------
bluray_info /dev/sr0 Disc title: '', Volume name: ' ', Main title: 001, AACS: no, BD-J: no, BD+: no Title: 001, Playlist: 0000, Length: 00:02:16.64, Chapters: 001, Video streams: 01, Audio streams: 01, Subtitles: 00, Angles: 01, Filesize: 00457 MBs
-------------------------
ffprobe bluray:/dev/sr0 [bluray @ 0x55f6b1d3ebc0] 0 usable playlists: bluray:/dev/sr0: Input/output error
ffmpeg -i /dev/sr0 [mpegts @ 0x56143f5aacc0] Could not detect TS packet size, defaulting to non-FEC/DVHS [mpegts @ 0x56143f5aacc0] max resync size reached, could not find sync byte Last message repeated 14 times [mpegts @ 0x56143f5aacc0] changing packet size to 192 Input #0, mpegts, from '/dev/sr0': Duration: N/A, start: 4200.000000, bitrate: 26536 kb/s Program 1 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 Side data: cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 3047424 vbv_delay: N/A Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s At least one output file must be specified
------------------------------------------
so it looks like disk can be detected as bluray of some sort, and our audio encoded correctly...
df -h /dev/sr0 Filesystem Size Used Avail Use% Mounted on /dev/sr0 457M 457M 0 100% /run/media/terje/17634ba320202020
tree -h /run/media/terje/17634ba320202020 /run/media/terje/17634ba320202020 ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 288] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [1.8K] 00000.clpi │ │ ├── [ 290] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 170] 00000.mpls │ │ └── [ 120] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 290] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 170] 00000.mpls │ ├── [ 92] STREAM │ │ └── [456M] 00000.m2ts │ └── [ 120] index.bdmv └── [ 88] CERTIFICATE └── [ 40] BACKUP
14 directories, 9 files
----------------------
looks... correct?
Yes, it seems so
udfinfo /dev/sr0 udfinfo: Warning: Device '/dev/sr0' is busy, udfinfo may report bogus information udfinfo: Warning: Second and third Anchor Volume Descriptor Pointer not found filename=/dev/sr0 label= uuid=17634ba320202020 lvid= vid= vsid= fsid= fullvsid=17634BA3 owner= organization= contact= appid=*tsMuxeR git-c483756 impid=*tsMuxeR 53a5f1f6 winserialnum=0xa6df2fea blocksize=2048 blocks=2295104 usedblocks=233856 freeblocks=0 behindblocks=2060912 numfiles=9 numdirs=15 udfrev=2.50 udfwriterev=2.50 lastblock=2295104 integrity=closed accesstype=readonly softwriteprotect=no hardwriteprotect=no start=16, blocks=3, type=VRS start=32, blocks=16, type=MVDS start=64, blocks=1, type=LVID start=256, blocks=1, type=ANCHOR start=288, blocks=233856, type=PSPACE start=234176, blocks=16, type=RVDS
so yeah, it is udf 2.50!
yeah, from tsMuxer
can you check what udf_test (udf verifier we talked about earlier) says about this disk?
Attach new udf_test.log file
Den 03.12.2021 12:51, skrev Terje J. Hanssen:
Den 03.12.2021 08:21, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
very big thanks. So apparently cdrecord was not patient enough with drive (? unit becoming ready reply from scsi layer) and libburn behind braseo just send something illegal..
I think for now we can limit ourselves to k3b.
Brasero (default) is good for simple burning, but afaik it has no Blu-ray support like K3b. K3b is (more) advanced, but its gui can be somewhat confusing before longer experience.
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
DVD+R Broken burning attempt. (Does growisofs also burn from an ISO image file?) growisofs -Z /dev/sr0=dv28_Blu-ray.iso Executing 'builtin_dd if=dv28_Blu-ray.iso of=/dev/sr0 obs=32k seek=0' /dev/sr0: "Current Write Speed" is 16.4x1352KBps. 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% :-[ WRITE@LBA=0h failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument :-( write failed: Invalid argument
also what "file' and udfinfo/bdinfo says about this iso?
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)
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test) Attach the last.log from K3b (missing privilegies?)
On Friday, December 3, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 03.12.2021 12:51, skrev Terje J. Hanssen:
Den 03.12.2021 08:21, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
very big thanks. So apparently cdrecord was not patient enough with drive (? unit becoming ready reply from scsi layer) and libburn behind braseo just send something illegal..
I think for now we can limit ourselves to k3b.
Brasero (default) is good for simple burning, but afaik it has no Blu-ray support like K3b. K3b is (more) advanced, but its gui can be somewhat confusing before longer experience.
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
DVD+R
Broken burning attempt. (Does growisofs also burn from an ISO image file?)
it should.. try to set burning speed for something less than default?
growisofs -Z /dev/sr0=dv28_Blu-ray.iso Executing 'builtin_dd if=dv28_Blu-ray.iso of=/dev/sr0 obs=32k seek=0' /dev/sr0: "Current Write Speed" is 16.4x1352KBps. 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% :-[ WRITE@LBA=0h failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument :-( write failed: Invalid argument
also what "file' and udfinfo/bdinfo says about this iso?
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)
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test)
Attach the last.log from K3b (missing privilegies?)
On Friday, December 3, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 03.12.2021 12:51, skrev Terje J. Hanssen:
Den 03.12.2021 08:21, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
===========
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..
Good idea. 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.
did they show detailed error message?
DVD-R /DVD+R discs Attach log files from the broken DVD-R burning attempts * K3b.log * brasero-session.log
very big thanks. So apparently cdrecord was not patient enough with drive (? unit becoming ready reply from scsi layer) and libburn behind braseo just send something illegal..
I think for now we can limit ourselves to k3b.
Brasero (default) is good for simple burning, but afaik it has no Blu-ray support like K3b. K3b is (more) advanced, but its gui can be somewhat confusing before longer experience.
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?) and also the BDMV and CERTIFICATE folders to DVD-R/DVD+R and DVD+RW discs?
try growisofs line from manual with this file?
DVD+R
Broken burning attempt. (Does growisofs also burn from an ISO image file?)
growisofs -Z /dev/sr0=dv28_Blu-ray.iso Executing 'builtin_dd if=dv28_Blu-ray.iso of=/dev/sr0 obs=32k seek=0' /dev/sr0: "Current Write Speed" is 16.4x1352KBps. 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/480116736 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% :-[ WRITE@LBA=0h failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument :-( write failed: Invalid argument
also what "file' and udfinfo/bdinfo says about this iso?
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)
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test)
Attach the last.log from K3b (missing privilegies?)
I googled this error with cdrecord and then there was google groups forum with recommendation on upgrading cdrecord https://groups.google.com/g/de.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4 https://sourceforge.net/projects/schilytools/files/schily-2021-01-05.tar.bz2...
Den 03.12.2021 18:53, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html <https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html> But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test)
Attach the last.log from K3b (missing privilegies?)
I googled this error with cdrecord and then there was google groups forum with recommendation on upgrading cdrecord
https://groups.google.com/g/de.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4 <https://groups.google.com/g/de.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4>
https://sourceforge.net/projects/schilytools/files/schily-2021-01-05.tar.bz2... <https://sourceforge.net/projects/schilytools/files/schily-2021-01-05.tar.bz2/download>
ATAPI DVD burner: As an update, I have now tested K3b burning on my second workstation (Supermicro) with a DVD burner type ATAPI, also scsi. Got success with all three disc types, DVD+RW, DVD+R and DVD-R burning the iso image the same way. The Samsung UBD Blu-ray player doesn't accept the DVD+/-R discs either. For now I just attach the log files from burning the DVD+/-R, and can add media output if of any interest.
Den 03.12.2021 23:52, skrev Terje J. Hanssen:
Den 03.12.2021 18:53, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html <https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html> But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test)
Attach the last.log from K3b (missing privilegies?)
I googled this error with cdrecord and then there was google groups forum with recommendation on upgrading cdrecord
https://groups.google.com/g/de.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4 <https://groups.google.com/g/de.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4>
https://sourceforge.net/projects/schilytools/files/schily-2021-01-05.tar.bz2... <https://sourceforge.net/projects/schilytools/files/schily-2021-01-05.tar.bz2/download>
ATAPI DVD burner: As an update, I have now tested K3b burning on my second workstation (Supermicro) with a DVD burner type ATAPI, also scsi. Got success with all three disc types, DVD+RW, DVD+R and DVD-R burning the iso image the same way. The Samsung UBD Blu-ray player doesn't accept the DVD+/-R discs either. For now I just attach the log files from burning the DVD+/-R, and can add media output if of any interest.
Update 5/12: BD-RE 2x 50GB disc (TDK) BD-R 6x 25GB disc (Verbatim) K3b with the Blu-ray burner wrote the iso file OK to both discs without failure. OK playback video and audio with VLC from BD-R/RE discs without stuttering. Samsung UBD Bluray player accepted the discs and started auto playback The video image was quite distorted (green/grey/white mosaic flickering) Tried to change player's Auto image setting, resolution etc without solving. Will try to change ffmpegs encoding profile and/or color depth next. At least the PCM audio could be hearing and played OK from BD-R/RE discs :) Terje J. H '
On Sunday, December 5, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 03.12.2021 23:52, skrev Terje J. Hanssen:
Den 03.12.2021 18:53, skrev Andrew Randrianasulu:
On Friday, December 3, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
DVD+R I tried to follow the same procedure that works for DVD+RW Tools > Burn (CD-)image Select ISO file "Type of image file is not recognizable. Do you want to burn it anyway?" Yes Start https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html <https://www.ubuntubuzz.com/2015/04/how-to-burn-iso-dvd-with-k3b.html> But for some reasons it won't burn on DVD+R, just starts to destroy the disc (not empty on a new test)
Attach the last.log from K3b (missing privilegies?)
I googled this error with cdrecord and then there was google groups forum with recommendation on upgrading cdrecord
https://groups.google.com/g/de.comp.hardware.laufwerke.brenn er/c/PnKNB8ppTR4 <https://groups.google.com/g/d e.comp.hardware.laufwerke.brenner/c/PnKNB8ppTR4>
https://sourceforge.net/projects/schilytools/files/schily- 2021-01-05.tar.bz2/download <https://sourceforge.net/proje cts/schilytools/files/schily-2021-01-05.tar.bz2/download>
ATAPI DVD burner: As an update, I have now tested K3b burning on my second workstation (Supermicro) with a DVD burner type ATAPI, also scsi. Got success with all three disc types, DVD+RW, DVD+R and DVD-R burning the iso image the same way. The Samsung UBD Blu-ray player doesn't accept the DVD+/-R discs either. For now I just attach the log files from burning the DVD+/-R, and can add media output if of any interest.
Update 5/12:
BD-RE 2x 50GB disc (TDK) BD-R 6x 25GB disc (Verbatim)
K3b with the Blu-ray burner wrote the iso file OK to both discs without failure. OK playback video and audio with VLC from BD-R/RE discs without stuttering.
Samsung UBD Bluray player accepted the discs and started auto playback The video image was quite distorted (green/grey/white mosaic flickering) Tried to change player's Auto image setting, resolution etc without solving.
Will try to change ffmpegs encoding profile and/or color depth next. At least the PCM audio could be hearing and played OK from BD-R/RE discs :)
Terje J. H
\0/ thanks for sticking with this problem since 2017!
'
Den 05.12.2021 06:42, skrev Andrew Randrianasulu:
On Sunday, December 5, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Update 5/12:
BD-RE 2x 50GB disc (TDK) BD-R 6x 25GB disc (Verbatim)
K3b with the Blu-ray burner wrote the iso file OK to both discs without failure. OK playback video and audio with VLC from BD-R/RE discs without stuttering.
Samsung UBD Bluray player accepted the discs and started auto playback The video image was quite distorted (green/grey/white mosaic flickering) Tried to change player's Auto image setting, resolution etc without solving.
Will try to change ffmpegs encoding profile and/or color depth next. At least the PCM audio could be hearing and played OK from BD-R/RE discs :)
Terje J. H
\0/
thanks for sticking with this problem since 2017!
'
YES - it works :) Revised the ffmpeg command line to autodetect the DV input pixel/display ascpect ratio (indicated by Andrew intially), in addition to color depth/sampling. Then the final disc playback run smoothly both with VLC mediaplayer and with a Samsung UBD-K8500 Blu-ray player. There are surely other fine-tuning flags to use with more insight and experience. If this DV case is of interest to complement and add to the HDV in the Cin-GG manual, I have summarized it in five procedure steps below. (The "HDV section" is also suggested revised to distinguish treatement between HDV, AVCREC and AVCHD formats) ===================================================== Blu-ray compliant MPEG-2 SD video with LPCM audio ------------------------------------------------- 1) Encode DV to MPEG-2 video and copy PCM audio as is to a VOB/MPG format: 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_s16be -f vob dv28.mpg Verify the streams: ffmpeg -i dv28.mpg 2>&1 >/dev/null | egrep "Video|Audio" Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s --------- 2) tsMuxer As FFMpeg would allow to mux PCM or remux MPG to M2TS, I tested tsMuxer, see the attached screenshot: tsMuxer_SD_M2TS Input file: dv28.mpg Tracs: MPEG-2 video stream and LPCM audio stream Output: dv28.iso ----------- 3) K3b burning to BD-RE disc Insert the disc into the Blu-ray burner K3b: Device > Medieinformation (verify disc) K3b: Tools menu > Burn CD-image - Type of image file is not recognizable. Do you want to burn it anyway? Yes (possibly repeated twice) Select dv28.iso image to burn Start -------------- 4) Verify the disc playback with VLC mediaplayer Insert the disc again after burning eject Open the Disc Volum in the Filemanager (Nautilus) Right-click the top BDMV map > Open with another program: i.e the VLC mediaplayer should then search and start Autoplay Verify Audio and Video is ok ------------------ 5) Verify the disc playback with a standalone Blu-ray player Insert the disc in player The disc should start Autoplay Optional Set image to 4:3 for SD first (default is 16:9) ================================================== bluray_info /dev/sr0 Disc title: '', Volume name: ' ', Main title: 001, AACS: no, BD-J: no, BD+: no Title: 001, Playlist: 0000, Length: 00:02:16.64, Chapters: 001, Video streams: 01, Audio streams: 01, Subtitles: 00, Angles: 01, Filesize: 00455 MBs --------------------------------- tree -h /run/media/terje/2631a4a520202020 /run/media/terje/2631a4a520202020 ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 288] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [1.8K] 00000.clpi │ │ ├── [ 120] index.bdmv │ │ ├── [ 290] MovieObject.bdmv │ │ └── [ 92] PLAYLIST │ │ └── [ 170] 00000.mpls │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [1.8K] 00000.clpi │ ├── [ 120] index.bdmv │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 290] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 170] 00000.mpls │ └── [ 92] STREAM │ └── [455M] 00000.m2ts └── [ 88] CERTIFICATE └── [ 40] BACKUP -------------------- mediainfo BDMV General Complete name : BDMV/BACKUP/CLIPINF/00000.clpi Format : Blu-ray Clip info / Blu-ray Clip info File size : 1.78 KiB Video ID : 4113 (0x1011) Format : MPEG-2 Video Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Audio ID : 4352 (0x1100) Format : PCM Channel(s) : 2 channels Sampling rate : 48.0 kHz General Complete name : BDMV/BACKUP/MovieObject.bdmv Format : Blu-ray Movie object File size : 290 Bytes General Complete name : BDMV/BACKUP/PLAYLIST/00000.mpls Format : Blu-ray Playlist File size : 170 Bytes Duration : 2 min 16 s Overall bit rate : 10 b/s Video ID : 4113 (0x1011) Format : MPEG-2 Video Duration : 2 min 16 s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Audio ID : 4352 (0x1100) Format : PCM Duration : 2 min 16 s Channel(s) : 2 channels Sampling rate : 48.0 kHz Menu 00:00:00.000 : Chapter 1 General Complete name : BDMV/BACKUP/index.bdmv Format : Blu-ray Index File size : 120 Bytes General ID : 1 (0x1) Complete name : BDMV/CLIPINF/00000.clpi Format : Blu-ray Clip info / Blu-ray Clip info File size : 1.78 KiB Duration : 2 min 16 s Overall bit rate mode : Variable Overall bit rate : 27.9 Mb/s Maximum Overall bit rate : 35.5 Mb/s OverallBitRate_Precision_Min : 27927422 OverallBitRate_Precision_Max : 27927626 Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Codec ID : 2 Duration : 2 min 16 s Bit rate mode : Variable Bit rate : 25.3 Mb/s Maximum bit rate : 25.0 Mb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 2.438 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Open GOP, Open/Closed of first frame : Closed Stream size : 412 MiB intra_dc_precision : 10 format_identifier : HDMV Source : 00000.m2ts / 00000.m2ts Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : PCM Format settings : Big / Signed Muxing mode : Blu-ray Codec ID : 128 Duration : 2 min 16 s Bit rate mode : Constant Bit rate : 1 536 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Bit depth : 16 bits Stream size : 25.0 MiB format_identifier : HDMV Source : 00000.m2ts / 00000.m2ts General Complete name : BDMV/MovieObject.bdmv Format : Blu-ray Movie object File size : 290 Bytes General Complete name : BDMV/PLAYLIST/00000.mpls Format : Blu-ray Playlist File size : 170 Bytes Duration : 2 min 16 s Overall bit rate mode : Variable Overall bit rate : 10 b/s Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Codec ID : 2 Duration : 2 min 16 s Bit rate mode : Variable Bit rate : 25.3 Mb/s Maximum bit rate : 25.0 Mb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 2.438 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Open GOP, Open/Closed of first frame : Closed Stream size : 412 MiB intra_dc_precision : 10 format_identifier : HDMV Source : 00000.m2ts / 00000.m2ts Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : PCM Format settings : Big / Signed Muxing mode : Blu-ray Codec ID : 128 Duration : 2 min 16 s Bit rate mode : Constant Bit rate : 1 536 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Bit depth : 16 bits Stream size : 25.0 MiB format_identifier : HDMV Source : 00000.m2ts / 00000.m2ts Menu 00:00:00.000 : Chapter 1 General ID : 1 (0x1) Complete name : BDMV/STREAM/00000.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 455 MiB Duration : 2 min 16 s Overall bit rate mode : Variable Overall bit rate : 27.9 Mb/s Maximum Overall bit rate : 35.5 Mb/s Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M=3, N=12 Codec ID : 2 Duration : 2 min 16 s Bit rate mode : Variable Bit rate : 25.3 Mb/s Maximum bit rate : 25.0 Mb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 2.438 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Open GOP, Open/Closed of first frame : Closed Stream size : 412 MiB (91%) Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : PCM Format settings : Big / Signed Muxing mode : Blu-ray Codec ID : 128 Duration : 2 min 16 s Bit rate mode : Constant Bit rate : 1 536 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Bit depth : 16 bits Stream size : 25.0 MiB (5%) General Complete name : BDMV/index.bdmv Format : Blu-ray Index File size : 120 Bytes ================ Terje J. H
participants (2)
-
Andrew Randrianasulu -
Terje J. Hanssen