Testing HDV on a Blu-ray Disc Without Re-encoding
I pick up again and continue another thread on this topic started a year ago: https://www.mail-archive.com/[email protected]/msg02145.html In this post I start carefully with three questions regarding manual definitions and procedure in this section: https://cinelerra-gg.org/download/CinelerraGG_Manual/HDV_on_Blu_ray_Disc_Wit...
An MTS file is a video file saved in the high-definition (HD) MPEG Transport Stream video format, commonly called AVCHD. It contains HD video compatible with Blu-ray disc format and is based on the MPEG-2 transport stream. MTS files are often used by Sony, Panasonic, Canon and other HD camcorders.
========== Q1. My HDV 1080i video file transfered from tape to HDD via Firewire, get a file extension M2T, which then is recognized as format MPEG-TS by Mediainfo. AFAIK the next generation camcorders after HDV used H.264/AVC (AVCHD)? =========
Legal input for Video – MPEG1VIDEO, MPEG2VIDEO, H264; Audio – MP1, MP2, AC3, AC3PLUS, DTS, TRUHD.
To verify this with FFMpeg for the previous HDV test-file "20081103140154.m2t" available on internet: ffmpeg -i 20081103140154.m2t 2>&1 >/dev/null | egrep "Audio|Video" Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x814]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s According to the manual, both the HDV MPEG2Video stream and MP2 audio stream should be legal input to create a Blu-ray disc. However, MP2 isn't on Sony's list or other I have seen over audio and video codecs supported on Blu-ray Disc media. https://www.sony.com/electronics/support/articles/00029663 Q2. Can someone clarify if MP2 rather should be transcoded to i.e AC3 instead, possibly also remux to BDAV/M2TS if required (below)? (On my first attempt with "MTS" format, Mediainfo reported this FileExtension_Invalid: ts m2t m2s m4t m4s tmf ts tp trp ty) ========= Q3. I also wonder if the manual command procedure creates a BDAV or a BDM structure, and optional if a DVD-RW disc can be used to create and playback this "Blu-ray disc" using a Blu-ray burner and a standalone UHD-Blu-ray player device? (At the time I have no free BD-R/RE discs left) ========= Transcode to AC3 and remux to M2TS with FFMpeg if required: ffmpeg -i 20081103140154.m2t -acodec ac3 -vcodec copy 20081103140154.m2ts ffmpeg -i 20081103140154_m2t-ac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video" ......... Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s mediainfo 20081103140154_m2t-ac3.m2ts .......... General ID : 1 (0x1) Complete name : 20081103140154_m2t-ac3.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 42.2 MiB Duration : 13 s 360 ms Overall bit rate mode : Variable Overall bit rate : 26.4 Mb/s Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : MPEG Video Commercial name : HDV 1080i Format version : Version 2 Format profile : Main@High 1440 Format settings : CustomMatrix / BVOP Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Format settings, picture structure : Frame Codec ID : 2 Duration : 13 s 440 ms Bit rate mode : Constant Bit rate : 25.0 Mb/s Width : 1 440 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.643 Stream size : 40.3 MiB (95%) Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : 129 Duration : 13 s 440 ms Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Delay relative to video : -5 ms Stream size : 315 KiB (1%) Service kind : Complete Main Menu ID : 256 (0x100) Menu ID : 1 (0x1) Duration : 13 s 360 ms List : 4113 (0x1011) (MPEG Video) / 4352 (0x1100) (AC-3) Service name : Service01 Service provider : FFmpeg Service type : digital television ============= Terje J. H
On Wednesday, November 24, 2021, Terje J. Hanssen via Cin < [email protected]> wrote:
I pick up again and continue another thread on this topic started a year ago: https://www.mail-archive.com/[email protected]/msg02145.html
In this post I start carefully with three questions regarding manual definitions and procedure in this section: https://cinelerra-gg.org/download/CinelerraGG_Manual/HDV_on_ Blu_ray_Disc_Without.html
An MTS file is a video file saved in the high-definition (HD) MPEG
Transport Stream video format, commonly called AVCHD. It contains HD video compatible with Blu-ray disc format and is based on the MPEG-2 transport stream. MTS files are often used by Sony, Panasonic, Canon and other HD camcorders.
==========
Q1. My HDV 1080i video file transfered from tape to HDD via Firewire, get a file extension M2T, which then is recognized as format MPEG-TS by Mediainfo. AFAIK the next generation camcorders after HDV used H.264/AVC (AVCHD)?
i think yes...
=========
Legal input for
Video – MPEG1VIDEO, MPEG2VIDEO, H264; Audio – MP1, MP2, AC3, AC3PLUS, DTS, TRUHD.
To verify this with FFMpeg for the previous HDV test-file "20081103140154.m2t" available on internet:
ffmpeg -i 20081103140154.m2t 2>&1 >/dev/null | egrep "Audio|Video"
Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x814]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s
According to the manual, both the HDV MPEG2Video stream and MP2 audio stream should be legal input to create a Blu-ray disc.
However, MP2 isn't on Sony's list or other I have seen over audio and video codecs supported on Blu-ray Disc media. https://www.sony.com/electronics/support/articles/00029663
Q2. Can someone clarify if MP2 rather should be transcoded to i.e AC3 instead, possibly also remux to BDAV/M2TS if required (below)? (On my first attempt with "MTS" format, Mediainfo reported this FileExtension_Invalid: ts m2t m2s m4t m4s tmf ts tp trp ty)
from http://blu-raydisc.com/assets/Downloadablefile/BD-ROM-AV-WhitePaper_110712.p... p. 19 it seems mp2 is not allowed on Bd-rom disks (and ffmpeg's muxer had or even today have problems with muxing lpcm into bd-compatible m2ts?) so yeah, transcoding seems to be only way, manual need correction. I think while mp2 allowed in generic transport stream it is not allowed on bluray especially (at least by standart)
=========
Q3. I also wonder if the manual command procedure creates a BDAV or a BDM structure, and optional if a DVD-RW disc can be used to create and playback this "Blu-ray disc" using a Blu-ray burner and a standalone UHD-Blu-ray player device? (At the time I have no free BD-R/RE discs left)
I tried to find anyone with player for doing experiment like this - no luck! of course you are encouraged to try, just lower bitrate to 8-9 mbit/s total
=========
Transcode to AC3 and remux to M2TS with FFMpeg if required:
ffmpeg -i 20081103140154.m2t -acodec ac3 -vcodec copy 20081103140154.m2ts
ffmpeg -i 20081103140154_m2t-ac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video" ......... Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
mediainfo 20081103140154_m2t-ac3.m2ts .......... General ID : 1 (0x1) Complete name : 20081103140154_m2t-ac3.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 42.2 MiB Duration : 13 s 360 ms Overall bit rate mode : Variable Overall bit rate : 26.4 Mb/s
Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : MPEG Video Commercial name : HDV 1080i Format version : Version 2 Format profile : Main@High 1440 Format settings : CustomMatrix / BVOP Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Format settings, picture structure : Frame Codec ID : 2 Duration : 13 s 440 ms Bit rate mode : Constant Bit rate : 25.0 Mb/s Width : 1 440 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.643 Stream size : 40.3 MiB (95%) Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709
Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : 129 Duration : 13 s 440 ms Bit rate mode : Constant Bit rate : 192 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Delay relative to video : -5 ms Stream size : 315 KiB (1%) Service kind : Complete Main
Menu ID : 256 (0x100) Menu ID : 1 (0x1) Duration : 13 s 360 ms List : 4113 (0x1011) (MPEG Video) / 4352 (0x1100) (AC-3) Service name : Service01 Service provider : FFmpeg Service type : digital television
=============
Terje J. H -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Finally preparing the source HDV.M2T MPEG-2 media in a blu-ray M2TS format format with E-AC3 audio. ffmpeg -i 20081103140154.m2t -c:a eac3 -c:v copy 20081103140154_m2t-eac3.m2ts ffmpeg -i 20081103140154_m2t-eac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video" Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 192 kb/s =============== Trying to follow the manual's 7 procedure steps to create the Blu-ray structure and burn it to a DVD+RW disc (with root access): # My comments and questions included. 1. du -sb /yourHDVfile.MTS cd /video/HDV-M2T du -sb 20081103140154_m2t-eac3.m2ts 44261376 20081103140154_m2t-eac3.m2ts ---------- 2. blocks=((size-in-bytes/2048 + 4096)) blocks=((44261376/2042 + 4096)) = 25700 ---------- 3. mkudffs /tmp/newfilename.udfs blocks zypper in udftools mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700 filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619e6f69a6e71b03 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR ------------- 4. mount -o loop /tmp/newfilename.udfs /mntX mkdir /mntX mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX ----------- 5. /<cinelerra_installed_path>/bin/bdwrite /mntX /tmp/yourHDVfile.MTS which bdwrite /usr/bin/bdwrite bdwrite /mntX /tmp/20081103140154_m2t-eac3.m2ts cant scan media: /tmp/20081103140154_m2t-eac3.m2ts # Something wrong here with the procedure or my command syntax? " # I'm confused regarding "/mntX /tmp/yourHDVfile.MTS": my HDV.M2TS file is in the current /video/HDV-M2T ? bdwrite /mntX 20081103140154_m2t-eac3.m2ts /mntX/BDMV: File exists # Obviously a file is already (mounted) - from which procedure step? ls /mntX/BDMV AUXDATA BACKUP BDJO CLIPINF JAR META PLAYLIST STREAM tree -h /mntX/BDMV /mntX/BDMV ├── [ 40] AUXDATA ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR ├── [ 40] META ├── [ 40] PLAYLIST └── [ 40] STREAM # Only the Blu-ray structure created so far, no video content yet copied into the STREAM directory? ---------- 6. umount /mntX umount /mntX ------------ 7. dd if=/tmp/newfilename.udfs of=/dev/bd bs=2048000 # I use a rewritable DVD+RW disc in the Blu-ray burner for this small testfile (43.23 MB) lsscsi | grep HL-DT [5:0:0:0] cd/dvd HL-DT-ST BD-RE BH10LS30 1.02 /dev/sr0 dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 25+1 records in 25+1 records out 52633600 bytes (53 MB, 50 MiB) copied, 0.0548402 s, 960 MB/s -------- 8.# I'm in doubt if the HDV.m2ts file really was written to the disc or only the space allocated? cd /run/media/terje/LinuxUDF tree -h . . ├── [ 412] BDMV │ ├── [ 40] AUXDATA │ ├── [ 224] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 40] CLIPINF │ │ ├── [ 40] JAR │ │ └── [ 40] PLAYLIST │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 40] PLAYLIST │ └── [ 40] STREAM └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST 23 directories, 0 files localhost:/run/media/terje/LinuxUDF # cd # That is the STREAM directory is empty, no 43.3 M HDV.m2ts video file copied into it? ======================= Terje J. H
On Wednesday, November 24, 2021, Terje J. Hanssen <[email protected]> wrote:
Finally preparing the source HDV.M2T MPEG-2 media in a blu-ray M2TS format format with E-AC3 audio.
ffmpeg -i 20081103140154.m2t -c:a eac3 -c:v copy 20081103140154_m2t-eac3.m2ts
ffmpeg -i 20081103140154_m2t-eac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video"
Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 192 kb/s
===============
Trying to follow the manual's 7 procedure steps to create the Blu-ray structure and burn it to a DVD+RW disc (with root access): # My comments and questions included.
1. du -sb /yourHDVfile.MTS
cd /video/HDV-M2T
du -sb 20081103140154_m2t-eac3.m2ts 44261376 20081103140154_m2t-eac3.m2ts
----------
2. blocks=((size-in-bytes/2048 + 4096))
blocks=((44261376/2042 + 4096)) = 25700
----------
3. mkudffs /tmp/newfilename.udfs blocks
zypper in udftools
mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700
filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619e6f69a6e71b03 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR
-------------
4. mount -o loop /tmp/newfilename.udfs /mntX
mkdir /mntX
mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX
-----------
5. /<cinelerra_installed_path>/bin/bdwrite /mntX /tmp/yourHDVfile.MTS
which bdwrite /usr/bin/bdwrite
bdwrite /mntX /tmp/20081103140154_m2t-eac3.m2ts cant scan media: /tmp/20081103140154_m2t-eac3.m2ts
# Something wrong here with the procedure or my command syntax? " # I'm confused regarding "/mntX /tmp/yourHDVfile.MTS": my HDV.M2TS file is in the current /video/HDV-M2T ?
yeah, sounds like unclear manual assuming your video file also in /tmp, try same steps but with next line you tried first (or delete already written stuff from /mntX before next try)
bdwrite /mntX 20081103140154_m2t-eac3.m2ts /mntX/BDMV: File exists
# Obviously a file is already (mounted) - from which procedure step?
from 4...?
ls /mntX/BDMV AUXDATA BACKUP BDJO CLIPINF JAR META PLAYLIST STREAM
tree -h /mntX/BDMV /mntX/BDMV ├── [ 40] AUXDATA ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR ├── [ 40] META ├── [ 40] PLAYLIST └── [ 40] STREAM
# Only the Blu-ray structure created so far, no video content yet copied into the STREAM directory?
seem so...
----------
6. umount /mntX
umount /mntX
------------
7. dd if=/tmp/newfilename.udfs of=/dev/bd bs=2048000
# I use a rewritable DVD+RW disc in the Blu-ray burner for this small testfile (43.23 MB)
lsscsi | grep HL-DT [5:0:0:0] cd/dvd HL-DT-ST BD-RE BH10LS30 1.02 /dev/sr0
dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 25+1 records in 25+1 records out 52633600 bytes (53 MB, 50 MiB) copied, 0.0548402 s, 960 MB/s
--------
8.# I'm in doubt if the HDV.m2ts file really was written to the disc or only the space allocated?
cd /run/media/terje/LinuxUDF
tree -h . . ├── [ 412] BDMV │ ├── [ 40] AUXDATA │ ├── [ 224] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 40] CLIPINF │ │ ├── [ 40] JAR │ │ └── [ 40] PLAYLIST │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 40] PLAYLIST │ └── [ 40] STREAM └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST
23 directories, 0 files localhost:/run/media/terje/LinuxUDF # cd
# That is the STREAM directory is empty, no 43.3 M HDV.m2ts video file copied into it?
=======================
Terje J. H
Thanks A LOT for trying those procedures to the letter (how they supposed to be tried, at least initially!), it seems you found at least one bug! pleas let us know if pointing bdwrite at correct video file makes fully populated bd structure
Den 24.11.2021 21:37, skrev Andrew Randrianasulu:
On Wednesday, November 24, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Finally preparing the source HDV.M2T MPEG-2 media in a blu-ray M2TS format format with E-AC3 audio.
ffmpeg -i 20081103140154.m2t -c:a eac3 -c:v copy 20081103140154_m2t-eac3.m2ts
ffmpeg -i 20081103140154_m2t-eac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video"
Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 192 kb/s
===============
Trying to follow the manual's 7 procedure steps to create the Blu-ray structure and burn it to a DVD+RW disc (with root access): # My comments and questions included.
1. du -sb /yourHDVfile.MTS
cd /video/HDV-M2T
du -sb 20081103140154_m2t-eac3.m2ts 44261376 20081103140154_m2t-eac3.m2ts
----------
2. blocks=((size-in-bytes/2048 + 4096))
blocks=((44261376/2042 + 4096)) = 25700
----------
3. mkudffs /tmp/newfilename.udfs blocks
zypper in udftools
mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700
filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619e6f69a6e71b03 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR
-------------
4. mount -o loop /tmp/newfilename.udfs /mntX
mkdir /mntX
mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX
-----------
5. /<cinelerra_installed_path>/bin/bdwrite /mntX /tmp/yourHDVfile.MTS
which bdwrite /usr/bin/bdwrite
bdwrite /mntX /tmp/20081103140154_m2t-eac3.m2ts cant scan media: /tmp/20081103140154_m2t-eac3.m2ts
# Something wrong here with the procedure or my command syntax? " # I'm confused regarding "/mntX /tmp/yourHDVfile.MTS": my HDV.M2TS file is in the current /video/HDV-M2T ?
yeah, sounds like unclear manual assuming your video file also in /tmp, try same steps but with next line you tried first (or delete already written stuff from /mntX before next try)
Just to add, I have several DVD and BD discs with video written earlier using various tools, CinGG/bdwrite, K3b and NeroLinux, but probably none using just this procedure for HDV: I repeat and continue from step using a blank DVD+RW disc: bdwrite /mntX 20081103140154_m2t-eac3.m2ts tree -h /mntX /mntX ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST 23 directories, 9 files umount /mntX dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 dd: error writing '/dev/sr0': No space left on device 1+0 records in 0+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.0797526 s, 25.7 kB/s # dd: error writing '/dev/sr0': No space left on device # Is there something in the dd command that prerequisite a BD size disc: bs=2048000 # If so, what should it be for a 4.7 GB DVD+RW? # Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc? Terje J. H ;
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 24.11.2021 21:37, skrev Andrew Randrianasulu:
On Wednesday, November 24, 2021, Terje J. Hanssen < [email protected] <mailto:[email protected]>> wrote:
Finally preparing the source HDV.M2T MPEG-2 media in a blu-ray M2TS format format with E-AC3 audio.
ffmpeg -i 20081103140154.m2t -c:a eac3 -c:v copy 20081103140154_m2t-eac3.m2ts
ffmpeg -i 20081103140154_m2t-eac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video"
Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x1100]: Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 192 kb/s
===============
Trying to follow the manual's 7 procedure steps to create the Blu-ray structure and burn it to a DVD+RW disc (with root access): # My comments and questions included.
1. du -sb /yourHDVfile.MTS
cd /video/HDV-M2T
du -sb 20081103140154_m2t-eac3.m2ts 44261376 20081103140154_m2t-eac3.m2ts
----------
2. blocks=((size-in-bytes/2048 + 4096))
blocks=((44261376/2042 + 4096)) = 25700
----------
3. mkudffs /tmp/newfilename.udfs blocks
zypper in udftools
mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700
filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619e6f69a6e71b03 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR
-------------
4. mount -o loop /tmp/newfilename.udfs /mntX
mkdir /mntX
mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX
-----------
5. /<cinelerra_installed_path>/bin/bdwrite /mntX /tmp/yourHDVfile.MTS
which bdwrite /usr/bin/bdwrite
bdwrite /mntX /tmp/20081103140154_m2t-eac3.m2ts cant scan media: /tmp/20081103140154_m2t-eac3.m2ts
# Something wrong here with the procedure or my command syntax? " # I'm confused regarding "/mntX /tmp/yourHDVfile.MTS": my HDV.M2TS file is in the current /video/HDV-M2T ?
yeah, sounds like unclear manual assuming your video file also in /tmp, try same steps but with next line you tried first (or delete already written stuff from /mntX before next try)
Just to add, I have several DVD and BD discs with video written earlier using various tools, CinGG/bdwrite, K3b and NeroLinux, but probably none using just this procedure for HDV:
I repeat and continue from step using a blank DVD+RW disc:
bdwrite /mntX 20081103140154_m2t-eac3.m2ts
tree -h /mntX /mntX ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST
23 directories, 9 files
at least for now m2ts file is in)
umount /mntX
dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 dd: error writing '/dev/sr0': No space left on device 1+0 records in 0+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.0797526 s, 25.7 kB/s
# dd: error writing '/dev/sr0': No space left on device # Is there something in the dd command that prerequisite a BD size disc: bs=2048000 # If so, what should it be for a 4.7 GB DVD+RW?
does first command work better? growisofs -Z /dev/bd=/tmp/newfilename.udfs 'bs' here is blocksize, never saw it that big, but then I never tried to write to optical disk in this way...
# Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc?
not sure.. try also to burn resulted image with some gui software? (just in case..)
Terje J. H
;
Den 24.11.2021 23:29, skrev Andrew Randrianasulu:
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Just to add, I have several DVD and BD discs with video written earlier using various tools, CinGG/bdwrite, K3b and NeroLinux, but probably none using just this procedure for HDV:
I repeat and continue from step using a blank DVD+RW disc:
bdwrite /mntX 20081103140154_m2t-eac3.m2ts
tree -h /mntX /mntX ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST
23 directories, 9 files
at least for now m2ts file is in)
Yes, [ 42M] 00000.m2ts
umount /mntX
dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 dd: error writing '/dev/sr0': No space left on device 1+0 records in 0+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.0797526 s, 25.7 kB/s
# dd: error writing '/dev/sr0': No space left on device # Is there something in the dd command that prerequisite a BD size disc: bs=2048000 # If so, what should it be for a 4.7 GB DVD+RW?
does first command work better?
growisofs -Z /dev/bd=/tmp/newfilename.udfs
Yes, it works with DVD+R disc, see below.
'bs' here is blocksize, never saw it that big, but then I never tried to write to optical disk in this way...
# Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc?
not sure..
try also to burn resulted image with some gui software? (just in case..)
It would be of interest if optional procedures with GUI tools could be set up and tested to create Blu-ray video discs, tsMuxer and/or MP4Box istead of FFMeg if possible (I don't know em) and K3b with support for Blu-ray discs? (My experience with K3b mostly has been with recording raw videofiles from HDD to BD-R data discs for backup purposes, which lastly ended with firmware issues for the newer editions BD-R discs). Below added my latest successful test: **************************************************** New test using DVD+R disc and growiso instead: cd /video/HDV-M2T ls /tmp/BD* /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs rm /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs ls /mntX mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700 filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619ecc94e14e5d10 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX bdwrite /mntX 20081103140154_m2t-eac3.m2ts tree -h /mntX/BDMV /mntX/BDMV ├── [ 40] AUXDATA ├── [ 332] BACKUP │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ └── [ 124] index.bdmv ├── [ 40] BDJO ├── [ 92] CLIPINF │ └── [ 480] 00000.clpi ├── [ 40] JAR ├── [ 40] META ├── [ 110] MovieObject.bdmv ├── [ 92] PLAYLIST │ └── [ 184] 00000.mpls ├── [ 92] STREAM │ └── [ 42M] 00000.m2ts └── [ 124] index.bdmv 12 directories, 9 files umount /mntX growisofs -Z /dev/sr0=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs Executing 'builtin_dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 obs=32k seek=0' PERFORM OPC failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument START UNIT failed with SK=2h/MEDIUM NOT PRESENT - TRAY OPEN]: No medium found /dev/sr0: "Current Write Speed" is 16.4x1352KBps. the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 17203200/52633600 (32.7%) @3.7x, remaining 1:28 RBU 100.0% UBU 1.3% 48857088/52633600 (92.8%) @6.9x, remaining 0:03 RBU 11.3% UBU 100.0% builtin_dd: 25712*2KB out @ average 0.8x1352KBps /dev/sr0: flushing cache /dev/sr0: updating RMA /dev/sr0: closing session # Had to escape the blank DVD+R disc with Gnome Files and then enter it again before it mounted as LinuxUDF cd /run/media/terje/LinuxUDF tree -h . . ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST 23 directories, 9 files # The DVD+R disc is written OK # Open the top BDMV with VLC from Gnome Files starts playing the video. ================ Terje J. H
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 24.11.2021 23:29, skrev Andrew Randrianasulu:
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Just to add, I have several DVD and BD discs with video written earlier using various tools, CinGG/bdwrite, K3b and NeroLinux, but probably none using just this procedure for HDV:
I repeat and continue from step using a blank DVD+RW disc:
bdwrite /mntX 20081103140154_m2t-eac3.m2ts
tree -h /mntX /mntX ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST
23 directories, 9 files
at least for now m2ts file is in)
Yes, [ 42M] 00000.m2ts
umount /mntX
dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000 dd: error writing '/dev/sr0': No space left on device 1+0 records in 0+0 records out 2048 bytes (2.0 kB, 2.0 KiB) copied, 0.0797526 s, 25.7 kB/s
# dd: error writing '/dev/sr0': No space left on device # Is there something in the dd command that prerequisite a BD size disc: bs=2048000 # If so, what should it be for a 4.7 GB DVD+RW?
does first command work better?
growisofs -Z /dev/bd=/tmp/newfilename.udfs
Yes, it works with DVD+R disc, see below.
'bs' here is blocksize, never saw it that big, but then I never tried to write to optical disk in this way...
# Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc?
not sure..
try also to burn resulted image with some gui software? (just in case..)
It would be of interest if optional procedures with GUI tools could be set up and tested to create Blu-ray video discs, tsMuxer and/or MP4Box istead of FFMeg if possible (I don't know em) and K3b with support for Blu-ray discs?
yeah, i'll try to adapt somescript found in blog [*] for creating .meta file for tsmuxer. mp4box probably should me nentioned somewhere in manual as way to get pcm-in-mp4 output
(My experience with K3b mostly has been with recording raw videofiles from HDD to BD-R data discs for backup purposes, which lastly ended with firmware issues for the newer editions BD-R discs).
Below added my latest successful test:
****************************************************
New test using DVD+R disc and growiso instead:
cd /video/HDV-M2T
ls /tmp/BD* /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs rm /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs
ls /mntX
mkudffs /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs 25700 filename=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs label=LinuxUDF uuid=619ecc94e14e5d10 blocksize=2048 blocks=25700 udfrev=201 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=25169, type=PSPACE start=25443, blocks=1, type=ANCHOR start=25444, blocks=239, type=USPACE start=25683, blocks=16, type=RVDS start=25699, blocks=1, type=ANCHOR
mount -o loop /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs /mntX
bdwrite /mntX 20081103140154_m2t-eac3.m2ts
tree -h /mntX/BDMV /mntX/BDMV ├── [ 40] AUXDATA ├── [ 332] BACKUP │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ └── [ 124] index.bdmv ├── [ 40] BDJO ├── [ 92] CLIPINF │ └── [ 480] 00000.clpi ├── [ 40] JAR ├── [ 40] META ├── [ 110] MovieObject.bdmv ├── [ 92] PLAYLIST │ └── [ 184] 00000.mpls ├── [ 92] STREAM │ └── [ 42M] 00000.m2ts └── [ 124] index.bdmv
12 directories, 9 files
umount /mntX
growisofs -Z /dev/sr0=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs Executing 'builtin_dd if=/tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs of=/dev/sr0 obs=32k seek=0' PERFORM OPC failed with SK=5h/ASC=21h/ACQ=04h]: Invalid argument START UNIT failed with SK=2h/MEDIUM NOT PRESENT - TRAY OPEN]: No medium found /dev/sr0: "Current Write Speed" is 16.4x1352KBps. the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% the LUN is still in process of becoming ready, retrying in 5 secs... 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 0/52633600 ( 0.0%) @0x, remaining ??:?? RBU 100.0% UBU 0.0% 17203200/52633600 (32.7%) @3.7x, remaining 1:28 RBU 100.0% UBU 1.3% 48857088/52633600 (92.8%) @6.9x, remaining 0:03 RBU 11.3% UBU 100.0% builtin_dd: 25712*2KB out @ average 0.8x1352KBps /dev/sr0: flushing cache /dev/sr0: updating RMA /dev/sr0: closing session
# Had to escape the blank DVD+R disc with Gnome Files and then enter it again before it mounted as LinuxUDF
cd /run/media/terje/LinuxUDF
tree -h . . ├── [ 520] BDMV │ ├── [ 40] AUXDATA │ ├── [ 332] BACKUP │ │ ├── [ 40] BDJO │ │ ├── [ 92] CLIPINF │ │ │ └── [ 480] 00000.clpi │ │ ├── [ 40] JAR │ │ ├── [ 110] MovieObject.bdmv │ │ ├── [ 92] PLAYLIST │ │ │ └── [ 184] 00000.mpls │ │ └── [ 124] index.bdmv │ ├── [ 40] BDJO │ ├── [ 92] CLIPINF │ │ └── [ 480] 00000.clpi │ ├── [ 40] JAR │ ├── [ 40] META │ ├── [ 110] MovieObject.bdmv │ ├── [ 92] PLAYLIST │ │ └── [ 184] 00000.mpls │ ├── [ 92] STREAM │ │ └── [ 42M] 00000.m2ts │ └── [ 124] index.bdmv └── [ 272] CERTIFICATE ├── [ 224] BACKUP │ ├── [ 40] BDJO │ ├── [ 40] CLIPINF │ ├── [ 40] JAR │ └── [ 40] PLAYLIST ├── [ 40] BDJO ├── [ 40] CLIPINF ├── [ 40] JAR └── [ 40] PLAYLIST
23 directories, 9 files
# The DVD+R disc is written OK # Open the top BDMV with VLC from Gnome Files starts playing the video.
cool, patience win! But.. does it play in hw player? [*] - https://www.google.com/amp/s/irishjesus.wordpress.com/2010/10/17/blu-ray-mov... ==== function mux_bluray_assets { echo 'Muxing streams and generating BDMV file structure' # create the metafile needed by tsMuxeR echo "MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=00:00:00.000;00:05:00.000;00:10:00.000;00:15:00.000;00:20:00.000;00:25:00.000 --split-size=2GB --vbv-len=500" > $TSMUXER_META echo "V_MPEG4/ISO/AVC, \"$H264_FILE\", fps=23.976, insertSEI, contSPS, ar=As source" >> $TSMUXER_META echo "A_LPCM, \"$WAV_FILE\", lang=eng" >> $TSMUXER_META # mux the two files and generate the BR-structure $TSMUXER $TSMUXER_META $BDMV_PATH >>mkbdmovie.log 2>&1 } ===
================
Terje J. H
Den 25.11.2021 06:05, skrev Andrew Randrianasulu:
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected] <mailto:[email protected]>> wrote:
Den 24.11.2021 23:29, skrev Andrew Randrianasulu:
# Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc?
not sure..
I quick formatted the DVD+RW disc with K3b, and did a new attempt from start worked. Not sure what solved the first time issue, but now it worked.
try also to burn resulted image with some gui software? (just in case..)
The /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs directory structure?
It would be of interest if optional procedures with GUI tools could be set up and tested to create Blu-ray video discs, tsMuxer and/or MP4Box istead of FFMeg if possible (I don't know em) and K3b with support for Blu-ray discs?
yeah, i'll try to adapt somescript found in blog [*] for creating .meta file for tsmuxer. mp4box probably should me nentioned somewhere in manual as way to get pcm-in-mp4 output
(My experience with K3b mostly has been with recording raw videofiles from HDD to BD-R data discs for backup purposes, which lastly ended with firmware issues for the newer editions BD-R discs).
Below added my latest successful test:
****************************************************
New test using DVD+R disc and growiso instead:
# The DVD+R disc is written OK # Open the top BDMV with VLC from Gnome Files starts playing the video.
cool, patience win!
But.. does it play in hw player?
Both the DVD+RW abd DVD-R discs works with VLC media player. But my Samsung UHD Blu-ray player put out the discs saying "Cannot play the disc, not according to the specification". Not surprising really; DVD discs with BDMV structure and a HDV.m2ts media file. Will try at a later oportunity to burn and test it with a real BD-RE disc.
[*] - https://www.google.com/amp/s/irishjesus.wordpress.com/2010/10/17/blu-ray-mov... <https://www.google.com/amp/s/irishjesus.wordpress.com/2010/10/17/blu-ray-movie-authoring-in-linux/amp/>
==== function mux_bluray_assets { echo 'Muxing streams and generating BDMV file structure' # create the metafile needed by tsMuxeR
echo "MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=00:00:00.000;00:05:00.000;00:10:00.000;00:15:00.000;00:20:00.000;00:25:00.000 --split-size=2GB --vbv-len=500" > $TSMUXER_META echo "V_MPEG4/ISO/AVC, \"$H264_FILE\", fps=23.976, insertSEI, contSPS, ar=As source" >> $TSMUXER_META echo "A_LPCM, \"$WAV_FILE\", lang=eng" >> $TSMUXER_META
# mux the two files and generate the BR-structure $TSMUXER $TSMUXER_META $BDMV_PATH >>mkbdmovie.log 2>&1 }
Yeah, the url above is one of the references I have saved and written to pdf. But sorry, I don't understand much of the script. What I meant with gui tools above, was it would be useful (if time allows later) with gui procedure steps for MP3Box and tsMuxer? For K3b there already is a couple of references regarding burning Blu-ray discs: https://www.debugpoint.com/2018/08/burn-blu-ray-disks-ubuntu-linux-k3b/ https://askubuntu.com/questions/1306860/k3b-cant-burn-blu-ray-disc-mkisofs-c... Terje J. H
On Friday, November 26, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 25.11.2021 06:05, skrev Andrew Randrianasulu:
On Thursday, November 25, 2021, Terje J. Hanssen <[email protected]> wrote:
Den 24.11.2021 23:29, skrev Andrew Randrianasulu:
# Is it possible to blank out the empty structures written to DVD+RW, in case it require a blank disc?
not sure..
I quick formatted the DVD+RW disc with K3b, and did a new attempt from start worked. Not sure what solved the first time issue, but now it worked.
try also to burn resulted image with some gui software? (just in case..)
The /tmp/BD_HDV_20081103140154_m2t-eac3_m2ts.udfs directory structure?
===== Yes
It would be of interest if optional procedures with GUI tools could be set up and tested to create Blu-ray video discs, tsMuxer and/or MP4Box istead of FFMeg if possible (I don't know em) and K3b with support for Blu-ray discs?
yeah, i'll try to adapt somescript found in blog [*] for creating .meta file for tsmuxer. mp4box probably should me nentioned somewhere in manual as way to get pcm-in-mp4 output
(My experience with K3b mostly has been with recording raw videofiles from HDD to BD-R data discs for backup purposes, which lastly ended with firmware issues for the newer editions BD-R discs).
Below added my latest successful test:
****************************************************
New test using DVD+R disc and growiso instead:
# The DVD+R disc is written OK # Open the top BDMV with VLC from Gnome Files starts playing the video.
cool, patience win!
But.. does it play in hw player?
Both the DVD+RW abd DVD-R discs works with VLC media player.
But my Samsung UHD Blu-ray player put out the discs saying "Cannot play the disc, not according to the specification".
if you get tsmuxer working you can try --avchd option for it, possibly with re-encoded (into much smaller bitrate h264) stream.. yes, it will be lossy, but at least we will learn if any combination of open-source tools we have can produce (playable in at least your hw player) those 'bd structure on dvd' disks..
Not surprising really; DVD discs with BDMV structure and a HDV.m2ts media file. Will try at a later oportunity to burn and test it with a real BD-RE disc.
[*] - https://www.google.com/amp/s/irishjesus.wordpress.com/2010/ 10/17/blu-ray-movie-authoring-in-linux/amp/
==== function mux_bluray_assets { echo 'Muxing streams and generating BDMV file structure' # create the metafile needed by tsMuxeR
echo "MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=00:00:00.000;00:05:00.000;00:10:00.000; 00:15:00.000;00:20:00.000;00:25:00.000 --split-size=2GB --vbv-len=500" > $TSMUXER_META echo "V_MPEG4/ISO/AVC, \"$H264_FILE\", fps=23.976, insertSEI, contSPS, ar=As source" >> $TSMUXER_META echo "A_LPCM, \"$WAV_FILE\", lang=eng" >> $TSMUXER_META
# mux the two files and generate the BR-structure $TSMUXER $TSMUXER_META $BDMV_PATH >>mkbdmovie.log 2>&1 }
Yeah, the url above is one of the references I have saved and written to pdf. But sorry, I don't understand much of the script.
If it works as-is (it does re-encode).. you probably can tweak it a bit without much understanding )
What I meant with gui tools above, was it would be useful (if time allows later) with gui procedure steps for MP3Box and tsMuxer? For K3b there already is a couple of references regarding burning Blu-ray discs: https://www.debugpoint.com/2018/08/burn-blu-ray-disks-ubuntu-linux-k3b/ https://askubuntu.com/questions/1306860/k3b-cant- burn-blu-ray-disc-mkisofs-crashes
Terje J. H
yeah, thanks.. While _in theory_ one-time udf image creation should be much less complex compared to full rewritable udf 2.50/2.60 image.. code still not written and I struggle with very basic concepts, like what should be put inside specification-mandated Metadata files.. Can you load m2t file into tsMuxerGui? from there you can just play with options until it spit out file or directory tree...
participants (2)
-
Andrew Randrianasulu -
Terje J. Hanssen