[Cin] Testing HDV on a Blu-ray Disc Without Re-encoding
Terje J. Hanssen
terjejhanssen at gmail.com
Wed Nov 24 21:20:20 CET 2021
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
More information about the Cin
mailing list