<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">I want to highlight some paragraphs with
reference to the manual section "DVD and Bluray Creation"<br>
<a class="moz-txt-link-freetext" href="https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html">https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html</a><br>
<br>
However there is a serious issue with interaction between the
Operating System and bdwrite when creating a BD/blu-ray that
requires automount to be turned off. Refer to the details and more
specific explanations below the following steps for how to do
this. <br>
<br>
Blu-ray Workaround for Mount/Umount <br>
<a class="moz-txt-link-freetext" href="https://cinelerra-gg.org/download/CinelerraGG_Manual/Blu_ray_Workaround_Mount_Um.html">https://cinelerra-gg.org/download/CinelerraGG_Manual/Blu_ray_Workaround_Mount_Um.html</a><br>
<br>
--------------<br>
<br>
The max disk space needed is a little over 100GB for 50GB Double
Layer (DL) media or 50GB for a single layer BD blu-ray. A standard
SD of 4.7GB needs about 10GB disk space. You probably can get by
with much less if the render for blu-ray is less than 25 hours of
media. You will need twice as much disk space as the media holds
to ensure you have sufficient space for working and copying. <br>
<br>
For blu-ray, the filesystem generation is slightly harder. First,
it creates an empty filesystem image <target>/bd.udfs using
mkudffs which makes a big hole for the filesystem data. The hole
is made just a little bigger than the data written by bdwrite so
that you don't have to write an entire 25GB or 50GB disc even if
no data exists. This empty filesystem is loopback mounted to make
it writable, and the linux kernel manages the filesystem image.
The bdwrite program applies the blu-ray structure to the UDF
filesystem by creating the needed BDMV blu-ray filesystem, which
the kernel stores onto the image file bd.udfs. When udfs is
unmounted, the kernel finalizes the disk image on bd.udfs. The
bd.udfs image can be written directly to a blu-ray disk via dd or
growisofs. <br>
<br>
<br>
I've used test files much smaller than the 50GB capacity BD-RE DL
disc.<br>
Cin-GG uses /tmp as default for BD rendering, where I have 27G
available space before rendering:<br>
<br>
df -h /tmp<br>
Filesystem Size Used Avail Use% Mounted on<br>
/dev/nvme0n1p3 40G 11G 27G 30% /<br>
<br>
---------------<br>
<br>
<br>
Be aware that the CINELERRA-GG program will be totally shutdown
AFTER the batch jobs finish. Screenshot below shows BD blu-ray
creation with 2 batch jobs queued up and ready to go. <br>
<br>
<br>
<a class="moz-txt-link-freetext" href="https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html#SECTION0016001000000000000000">https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html#SECTION0016001000000000000000</a><br>
<br>
Blu-ray Media<br>
<br>
For rewritable blu-ray (recommended) (BD-RE):<br>
<br>
Note: unwritten (virgin) media must be formatted first using <br>
* This info is missing within step 9 in the beginning of this
chapter (equivalent to K3b quick format)<br>
<br>
dvd+rw-format /dev/bd #only done once and does not take very
long<br>
<br>
To write or rewrite rewritable blu-ray media:<br>
<br>
cd /TargetDirectory/bd_20150820-093747/<br>
dd if=./bd.udfs of=/dev/bd bs=2048000 #the growisofs command
below also works<br>
<br>
To write blu-ray write-once media: (BD-R) (no pre-formatting
needed):<br>
<br>
cd /TargetDirectory/bd_20150820-093747/<br>
growisofs -dvd-compat -Z /dev/bd=./bd.udfs<br>
<br>
========================================<br>
<br>
</font>
<div class="moz-cite-prefix"><font face="monospace">Den 21.12.2021
16:13, skrev Andrew Randrianasulu:<br>
</font></div>
<blockquote type="cite"
cite="mid:CA+rFky5aicpnTvU=tjQmXcBz-Tec=d4MGXtsbiif60-D0fb3pw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font face="monospace"> I think bdwrite segfaults now ( (</font>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">not sure why, I try to revert some
changes (tried to add variable chapter marks along the way)
and see if it improves situation... <br>
<br>
On Tuesday, December 21, 2021, Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com" moz-do-not-send="true">terjejhanssen@gmail.com</a>>
wrote:<br>
</font>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="monospace"><br>
Den 21.12.2021 13:14, skrev Terje J. Hanssen:<br>
</font>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="monospace">
[...........]<br>
</font>
<font face="monospace"><br>
After so much confusing and fail-sensitivety with udfs on
hdd:<br>
</font>
<font face="monospace"><br>
My Tip/suggestion:<br>
Wouldn't it be an idea to have an option to write a BD.iso
instead (with udf included) just as tsMuxer can do? At
least for a simple file like this, K3b gui handle a BD.iso
quite easy and straight forward by selecting the iso-file
and "Burn the (CD)image to disc".<br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
==============================</font><wbr><font
face="monospace">=============<br>
</font>
</blockquote>
<font face="monospace"><br>
Did a test verification with K3b. Had to quick-format the
BD-RE disc and then K3b burned the previous txMuxer
generated SD-BD.iso image to a BD-compliant disc that played
fine with VLC and autoplayed in Samsung UBD player as
Blu-ray.<br>
</font>
<font face="monospace"><br>
----------------<br>
</font>
<font face="monospace"><br>
Now, yet a new test as root to BD render with Cin-GG and dd
to the formatted BD-RE disc.<br>
</font>
<font face="monospace"><br>
./cin_bluray_lpcm_test_9e73037</font><wbr><font
face="monospace">6d01dcf86b3420de8f3625cec.</font><wbr><font
face="monospace">AppImage<br>
/usr/bin/AppImageLauncher: /usr/lib64/libcurl.so.4: no
version information available (required by
/usr/bin/../lib/x86_64-linux-g</font><wbr><font
face="monospace">nu/appimagelauncher/libappimag</font><wbr><font
face="monospace">eupdate.so)<br>
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-root'<br>
qt5ct: using qt5ct plugin<br>
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and
$XDG_RUNTIME_DIR not defined (consider using
--machine=<user>@.host --user to connect to bus of
other user)<br>
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and
$XDG_RUNTIME_DIR not defined (consider using
--machine=<user>@.host --user to connect to bus of
other user)<br>
Cinelerra Infinity - built: Dec 20 2021 14:52:15<br>
git://<a
href="http://git.cinelerra-gg.org/goodguy/cinelerra.git"
target="_blank" moz-do-not-send="true">git.cinelerra-gg.org/goo<wbr>dguy/cinelerra.git</a><br>
(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams<br>
2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy<br>
Cinelerra is free software, covered by the GNU General
Public License,<br>
and you are welcome to change it and/or distribute copies of
it under<br>
certain conditions. There is absolutely no warranty for
Cinelerra.<br>
</font>
<font face="monospace"><br>
Render::render_single: Session finished.<br>
** rendered 3415 frames in 38.119 secs, 89.588 fps<br>
++ dirname /tmp/bd_20211221-143520/bd.sh<br>
+ sdir=/tmp/bd_20211221-143520<br>
++ cd /tmp/bd_20211221-143520<br>
++ pwd<br>
+ dir=/tmp/bd_20211221-143520<br>
+ PATH=/sbin:/usr/sbin:/usr/loca</font><wbr><font
face="monospace">l/sbin:/root/bin:/usr/local/</font><wbr><font
face="monospace">bin:/usr/bin:/bin:/tmp/.mount_</font><wbr><font
face="monospace">cin_blJgBTQy/usr/bin<br>
+ mkdir -p /tmp/bd_20211221-143520/udfs<br>
++ du -cb /tmp/bd_20211221-143520/bd.m2t</font><wbr><font
face="monospace">s<br>
++ tail -1<br>
++ sed -e 's/[ ].*//'<br>
+ sz=211070976<br>
+ blks=107158<br>
+ rm -f /tmp/bd_20211221-143520/bd.udf</font><wbr><font
face="monospace">s<br>
+ mkudffs -b 2048 /tmp/bd_20211221-143520/bd.udf</font><wbr><font
face="monospace">s 107158<br>
filename=/tmp/bd_20211221-1435</font><wbr><font
face="monospace">20/bd.udfs<br>
label=LinuxUDF<br>
uuid=61c1d85eb5d3ee36<br>
blocksize=2048<br>
blocks=107158<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=106627, type=PSPACE<br>
start=106901, blocks=1, type=ANCHOR<br>
start=106902, blocks=239, type=USPACE<br>
start=107141, blocks=16, type=RVDS<br>
start=107157, blocks=1, type=ANCHOR<br>
+ mount -t udf -o loop /tmp/bd_20211221-143520/bd.udf</font><wbr><font
face="monospace">s /tmp/bd_20211221-143520/udfs<br>
+ bdwrite /tmp/bd_20211221-143520/udfs
/tmp/bd_20211221-143520/bd.m2t</font><wbr><font
face="monospace">s<br>
/tmp/bd_20211221-143520/bd.sh: line 11: 7630 Segmentation
fault (core dumped) bdwrite $dir/udfs $dir/bd.m2ts*<br>
</font>
<font face="monospace"><br>
-------------------------<br>
</font>
<font face="monospace"><br>
localhost:/tmp # du -sh bd_20211221-143520/<br>
202M bd_20211221-143520/<br>
localhost:/tmp #<br>
localhost:/tmp # tree -sh bd_20211221-143520/<br>
bd_20211221-143520/<br>
├── [2.0K] <a href="http://bd.jobs" target="_blank"
moz-do-not-send="true">bd.jobs</a><br>
├── [201M] bd.m2ts<br>
├── [ 525] bd.sh<br>
├── [209M] bd.udfs<br>
├── [5.9K] bd.xml<br>
└── [ 136] udfs<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>
</font>
<font face="monospace"><br>
24 directories, 5 files<br>
localhost:/tmp # cd bd_20211221-143520/<br>
</font>
<font face="monospace"><br>
==============================</font><wbr><font
face="monospace">==============================</font><wbr><font
face="monospace">=================<br>
</font>
<font face="monospace"><br>
Write to disc<br>
</font>
<font face="monospace"><br>
localhost:/tmp/bd_20211221-143</font><wbr><font
face="monospace">520 # dd if=./bd.udfs of=/dev/sr0
bs=2048000<br>
107+1 records in<br>
107+1 records out<br>
219459584 bytes (219 MB, 209 MiB) copied, 0.0823011 s, 2.7
GB/s<br>
</font>
<font face="monospace"><br>
* Had to wait quite some time after the command finished
before the disc writing started and finished !!<br>
==============================</font><wbr><font
face="monospace">==============================</font><wbr><font
face="monospace">==============================</font><wbr><font
face="monospace">=========<br>
</font>
<font face="monospace"><br>
localhost:/tmp/bd_20211221-143</font><wbr><font
face="monospace">520 # df -h<br>
Filesystem Size Used Avail Use% Mounted on<br>
devtmpfs 4.0M 0 4.0M 0% /dev<br>
tmpfs 32G 960K 32G 1% /dev/shm<br>
tmpfs 13G 27M 13G 1% /run<br>
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup<br>
/dev/nvme0n1p3 40G 12G 26G 31% /<br>
/dev/nvme0n1p1 156M 6.1M 150M 4% /boot/efi<br>
/dev/nvme0n1p4 427G 97G 309G 24% /home<br>
/dev/sdb1 459G 421G 15G 97% /video<br>
/dev/sdc1 384G 145G 220G 40% /data<br>
tmpfs 6.3G 180K 6.3G 1% /run/user/1000<br>
/dev/sdd1 3.6T 2.3T 1.2T 67%
/run/media/terje/Seagate_4TB_b</font><wbr><font
face="monospace">ack<br>
/dev/loop0 209M 66K 209M 1%
/tmp/bd_20211221-143520/udfs<br>
/dev/sr0 209M 20K 209M 1%
/run/media/terje/LinuxUDF<br>
</font>
<font face="monospace"><br>
* Had to umount and mount the disc again before it was seen
as a "LinuxUDF" disc in FileManager<br>
</font>
<font face="monospace"><br>
df -h /dev/sr0<br>
Filesystem Size Used Avail Use% Mounted on<br>
/dev/sr0 209M 20K 209M 1%
/run/media/terje/LinuxUDF<br>
</font>
<font face="monospace"><br>
-------------------<br>
</font>
<font face="monospace"><br>
** But the STREAM map is now empty (no 0000.m2ts) and VLC
cannot playback video from the disc!<br>
</font>
<font face="monospace"><br>
Samsung hardware player read the disc as Datadisk, but
browsing to STREAM is emptyf course nothing to playback.<br>
</font>
<font face="monospace"><br>
Looks like only the Blu-ray structure has been written to
disc without content.<br>
</font>
<font face="monospace"><br>
cd /run/media/terje/LinuxUDF<br>
localhost:/run/media/terje/Lin</font><wbr><font
face="monospace">uxUDF #<br>
localhost:/run/media/terje/Lin</font><wbr><font
face="monospace">uxUDF # tree -sh .<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>
</font>
<font face="monospace"><br>
23 directories, 0 files<br>
</font>
<font face="monospace"><br>
========================<br>
</font>
<font face="monospace"><br>
Attach output log-files for<br>
</font>
<font face="monospace"><br>
udf_test_CGG_dd_BD-RE<br>
udfinfo_CGG_dd_BD-RE<br>
bd_info_CGG_dd_BD-RE<br>
</font>
<font face="monospace"><br>
==========================<br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
<font face="monospace"><br>
</font>
</blockquote>
</div>
</blockquote>
<font face="monospace"><br>
</font>
</body>
</html>