[Cin] Blu-ray compliant MPEG-2 SD video with LPCM audio
Terje J. Hanssen
terjejhanssen at gmail.com
Mon Dec 6 02:29:39 CET 2021
Den 05.12.2021 06:42, skrev Andrew Randrianasulu:
>
> On Sunday, December 5, 2021, Terje J. Hanssen <terjejhanssen at gmail.com
> <mailto:terjejhanssen at gmail.com>> 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 at 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 at 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 at 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
More information about the Cin
mailing list