<br><br>On Wednesday, November 24, 2021, Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Finally preparing the source HDV.M2T MPEG-2 media in a blu-ray M2TS format format with E-AC3 audio.<br>
<br>
<br>
ffmpeg -i 20081103140154.m2t -c:a eac3 -c:v copy 20081103140154_m2t-eac3.m2ts<br>
<br>
ffmpeg -i 20081103140154_m2t-eac3.m2ts 2>&1 >/dev/null | egrep "Audio|Video"<br>
<br>
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<br>
Stream #0:1[0x1100]: Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 192 kb/s<br>
<br>
===============<br>
<br>
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):<br>
# My comments and questions included.<br>
<br>
<br>
1. du -sb /yourHDVfile.MTS<br>
<br>
cd /video/HDV-M2T<br>
<br>
du -sb 20081103140154_m2t-eac3.m2ts<br>
44261376 20081103140154_m2t-eac3.m2ts<br>
<br>
----------<br>
<br>
2. blocks=((size-in-bytes/2048 + 4096))<br>
<br>
blocks=((44261376/2042 + 4096)) = 25700<br>
<br>
----------<br>
<br>
3. mkudffs /tmp/newfilename.udfs blocks<br>
<br>
zypper in udftools<br>
<br>
mkudffs /tmp/BD_HDV_20081103140154_m2t<wbr>-eac3_m2ts.udfs 25700<br>
<br>
filename=/tmp/BD_HDV_200811031<wbr>40154_m2t-eac3_m2ts.udfs<br>
label=LinuxUDF<br>
uuid=619e6f69a6e71b03<br>
blocksize=2048<br>
blocks=25700<br>
udfrev=201<br>
start=0, blocks=16, type=RESERVED<br>
start=16, blocks=3, type=VRS<br>
start=19, blocks=237, type=USPACE<br>
start=256, blocks=1, type=ANCHOR<br>
start=257, blocks=16, type=PVDS<br>
start=273, blocks=1, type=LVID<br>
start=274, blocks=25169, type=PSPACE<br>
start=25443, blocks=1, type=ANCHOR<br>
start=25444, blocks=239, type=USPACE<br>
start=25683, blocks=16, type=RVDS<br>
start=25699, blocks=1, type=ANCHOR<br>
<br>
-------------<br>
<br>
4. mount -o loop /tmp/newfilename.udfs /mntX<br>
<br>
mkdir /mntX<br>
<br>
mount -o loop /tmp/BD_HDV_20081103140154_m2t<wbr>-eac3_m2ts.udfs /mntX<br>
<br>
-----------<br>
<br>
5. /<cinelerra_installed_path>/bi<wbr>n/bdwrite /mntX /tmp/yourHDVfile.MTS<br>
<br>
which bdwrite<br>
/usr/bin/bdwrite<br>
<br>
bdwrite /mntX /tmp/20081103140154_m2t-eac3.m<wbr>2ts<br>
cant scan media: /tmp/20081103140154_m2t-eac3.m<wbr>2ts<br>
<br>
# Something wrong here with the procedure or my command syntax? "<br>
# I'm confused regarding "/mntX /tmp/yourHDVfile.MTS": my HDV.M2TS file is in the current /video/HDV-M2T ?</blockquote><div><br></div><div>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) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
bdwrite /mntX 20081103140154_m2t-eac3.m2ts<br>
/mntX/BDMV: File exists<br>
<br>
# Obviously a file is already (mounted) - from which procedure step?</blockquote><div><br></div><div>from 4...? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
ls /mntX/BDMV<br>
AUXDATA BACKUP BDJO CLIPINF JAR META PLAYLIST STREAM<br>
<br>
tree -h /mntX/BDMV<br>
/mntX/BDMV<br>
├── [ 40] AUXDATA<br>
├── [ 224] BACKUP<br>
│ ├── [ 40] BDJO<br>
│ ├── [ 40] CLIPINF<br>
│ ├── [ 40] JAR<br>
│ └── [ 40] PLAYLIST<br>
├── [ 40] BDJO<br>
├── [ 40] CLIPINF<br>
├── [ 40] JAR<br>
├── [ 40] META<br>
├── [ 40] PLAYLIST<br>
└── [ 40] STREAM<br>
<br>
# Only the Blu-ray structure created so far, no video content yet copied into the STREAM directory?</blockquote><div><br></div><div>seem so... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
----------<br>
<br>
6. umount /mntX<br>
<br>
umount /mntX<br>
<br>
------------<br>
<br>
7. dd if=/tmp/newfilename.udfs of=/dev/bd bs=2048000<br>
<br>
# I use a rewritable DVD+RW disc in the Blu-ray burner for this small testfile (43.23 MB)<br>
<br>
<br>
lsscsi | grep HL-DT<br>
[5:0:0:0] cd/dvd HL-DT-ST BD-RE BH10LS30 1.02 /dev/sr0<br>
<br>
dd if=/tmp/BD_HDV_20081103140154_<wbr>m2t-eac3_m2ts.udfs of=/dev/sr0 bs=2048000<br>
25+1 records in<br>
25+1 records out<br>
52633600 bytes (53 MB, 50 MiB) copied, 0.0548402 s, 960 MB/s<br>
<br>
--------<br>
<br>
8.# I'm in doubt if the HDV.m2ts file really was written to the disc or only the space allocated?<br>
<br>
cd /run/media/terje/LinuxUDF<br>
<br>
tree -h .<br>
.<br>
├── [ 412] BDMV<br>
│ ├── [ 40] AUXDATA<br>
│ ├── [ 224] BACKUP<br>
│ │ ├── [ 40] BDJO<br>
│ │ ├── [ 40] CLIPINF<br>
│ │ ├── [ 40] JAR<br>
│ │ └── [ 40] PLAYLIST<br>
│ ├── [ 40] BDJO<br>
│ ├── [ 40] CLIPINF<br>
│ ├── [ 40] JAR<br>
│ ├── [ 40] META<br>
│ ├── [ 40] PLAYLIST<br>
│ └── [ 40] STREAM<br>
└── [ 272] CERTIFICATE<br>
├── [ 224] BACKUP<br>
│ ├── [ 40] BDJO<br>
│ ├── [ 40] CLIPINF<br>
│ ├── [ 40] JAR<br>
│ └── [ 40] PLAYLIST<br>
├── [ 40] BDJO<br>
├── [ 40] CLIPINF<br>
├── [ 40] JAR<br>
└── [ 40] PLAYLIST<br>
<br>
23 directories, 0 files<br>
localhost:/run/media/terje/Lin<wbr>uxUDF # cd<br>
<br>
# That is the STREAM directory is empty, no 43.3 M HDV.m2ts video file copied into it?<br>
<br>
=======================<br>
<br>
Terje J. H<br>
</blockquote><div><br></div><div>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! </div><div><br></div><div>pleas let us know if pointing bdwrite at correct video file makes fully populated bd structure</div>