[CinCV TNG] BD creation in Cinelerra-GG

Andrew Randrianasulu randrianasulu at gmail.com
Sat May 12 22:12:27 CEST 2018


В сообщении от Saturday 12 May 2018 23:10:37 Phyllis Smith написал(а):
> > Apparently my version of mkudffs is very old, so it created udf with
> > wrong permissions by default, so I modified sh script in bd temp folder:
> > ...
> > note gid=0,uid=0 parameters!
>
> I always test/run as root - 0,0 - and have not seen this particular problem
> so I must have a newer version.  Will put on the "to do" list to look into
> adding an alternative BUT many people really do not want to run as root so
> may not be possible.


Now, after upgrading to udftools master branch Cinelerra can't write (small) 
m2ts file into udf filesystem: 

kudffs --help
mkudffs from udftools 2.0
Usage:
        mkudffs [options] device [blocks-count]
Options:
        --help, -h         Display this help
        --label=, -l       UDF label, synonym for both --lvid and --vid 
(default: LinuxUDF)
        --uuid=, -u        UDF uuid, first 16 characters of Volume set 
identifier (default: random)
        --blocksize=, -b   Size of blocks in bytes (512, 1024, 2048, 4096, 8192, 
16384, 32768; default: detect)
        --media-type=, -m  Media type (hd, dvd, dvdram, dvdrw, dvdr, worm, mo, 
cdrw, cdr, cd, bdr; default: hd)
        --udfrev=, -r      UDF revision (1.02, 1.50, 2.00, 2.01, 2.50, 2.60; 
default: 2.01)
        --no-write, -n     Not really, do not write to device, just simulate
        --new-file         Create new image file, fail if already exists
        --lvid=            Logical Volume Identifier (default: LinuxUDF)
        --vid=             Volume Identifier (default: LinuxUDF)
        --vsid=            17.-127. character of Volume Set Identifier (default: 
LinuxUDF)
        --fsid=            File Set Identifier (default: LinuxUDF)
        --fullvsid=        Full Volume Set Identifier, overwrite --uuid 
and --vsid
        --uid=             Uid of the root directory (default: 0)
        --gid=             Gid of the root directory (default: 0)
        --mode=            Permissions (octal mode bits) of the root directory 
(default: 0755)
        --bootarea=        UDF boot area (preserve, erase, mbr; default: based 
on media type)
        --strategy=        Allocation strategy to use (4, 4096; default: based 
on media type)
        --spartable        Use Sparing Table (default: based on media type) and 
set its count (1 - 4; default: 2)
        --sparspace=       Number of entries in Sparing Table (default: 1024, 
but based on media type)
        --packetlen=       Packet length in number of blocks for Sparing Table 
(default: based on media type)
        --vat              Use Virtual Allocation Table (default: based on media 
type)
        --closed           Close disc with Virtual Allocation Table (default: do 
not close)
        --space=           Space (freedbitmap, freedtable, unallocbitmap, 
unalloctable; default: unallocbitmap)
        --ad=              Allocation descriptor (inicb, short, long; default: 
inicb)
        --noefe            Don't Use Extended File Entries (default: use for UDF 
revision >= 2.00)
        --locale           String options are encoded according to current 
locale (default)
        --u8               String options are encoded in 8-bit OSTA Compressed 
Unicode format
        --u16              String options are encoded in 16-bit OSTA Compressed 
Unicode format
        --utf8             String options are encoded in UTF-8

[...]

cin
Cinelerra 5.1 - built: May  6 2018 22:25:19
git://git.cinelerra-cv.org/goodguy/cinelerra.git
(c) 2006-2018 Heroine Virtual Ltd. by Adam Williams
(c) 2007-2018 cin5 derivative by W.P. Morrow aka goodguy
Cinelerra is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. There is absolutely no warranty for Cinelerra.

Render::render_single: Session finished.
+ 
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R7/bin:/usr/games:/usr/lib/java/bin:/bin:/opt/kde3/bin:/usr/lib/cin
+ mkdir -p /dev/shm/tmp/bd_20180512-230025/udfs
++ tail -1
++ sed -e 's/[  ].*//'
++ du -cb /dev/shm/tmp/bd_20180512-230025/bd.m2ts
+ sz=94093440
+ blks=50040
+ rm -f /dev/shm/tmp/bd_20180512-230025/bd.udfs
+ mkudffs /dev/shm/tmp/bd_20180512-230025/bd.udfs 50040
filename=/dev/shm/tmp/bd_20180512-230025/bd.udfs
label=LinuxUDF
uuid=5af7489f93bfba40
blocksize=512
blocks=50040
udfrev=2.01
start=0, blocks=64, type=ERASE
start=64, blocks=13, type=VRS
start=77, blocks=19, type=ERASE
start=96, blocks=16, type=MVDS
start=112, blocks=16, type=ERASE
start=128, blocks=16, type=LVID
start=144, blocks=112, type=ERASE
start=256, blocks=1, type=ANCHOR
start=257, blocks=49526, type=PSPACE
start=49783, blocks=1, type=ANCHOR
start=49784, blocks=72, type=ERASE
start=49856, blocks=16, type=RVDS
start=49872, blocks=167, type=ERASE
start=50039, blocks=1, type=ANCHOR
+ mount -t udf -o 
loop /dev/shm/tmp/bd_20180512-230025/bd.udfs /dev/shm/tmp/bd_20180512-230025/udfs
+ 
bdwrite /dev/shm/tmp/bd_20180512-230025/udfs /dev/shm/tmp/bd_20180512-230025/bd.m2ts
cant write: /dev/shm/tmp/bd_20180512-230025/udfs/BDMV/STREAM/00000.m2ts
write error: /dev/shm/tmp/bd_20180512-230025/udfs/BDMV/STREAM/00000.m2ts = No 
space left on device
cant copy clip /dev/shm/tmp/bd_20180512-230025/bd.m2ts

------------------------------

ow .... Yes, this was  just my curiosity - I don't have BD recorder, or 
(standalone) player. But yeah, I broke DVD-vido on my machine recently (upgrade 
to libdvdcss broke old xine-libs) - so I figured out testing some 
formally-present blue-ray support in Mplayer will not hurt ....


>
> Now it finishes, but killing Cin in the end! Is it supposed to be this way?
>
>
> Yes, for safety reasons to ensure there are no conflicts on the "writes"
> between bdwrite and cinelerra to avoid having a person open another window
> to create the bluray but leaves cinelerra running at the same time.
>
> As for the rest of the information you sent, gg will have to look at that
> to see if he has any comments to add.  The purpose has always been to
> create a physical piece of media rather than to play directly on a computer
> -- you can already do that without all the extra work!!  Dolphins in the
> Baltic Sea would be amazing to see.   gg/Phyllis
>
> On Sat, May 12, 2018 at 12:54 PM, Andrew Randrianasulu <
>
> randrianasulu at gmail.com> wrote:
> > Hello!
> >
> > I was curious how this process will work (or not), so I tried to render
> > small
> > clip into pseudo-bd.
> >
> > Apparently my version of mkudffs is very old, so it created udf with
> > wrong permissions by default, so I modified sh script in bd temp folder:
> >
> > #!/bin/bash -ex
> > PATH=$PATH:/usr/lib/cin
> > mkdir -p $1/udfs
> > sz=`du -cb $1/bd.m2ts* | tail -1 | sed -e 's/[  ].*//'`
> > blks=$((sz/2048 + 4096))
> > rm -f $1/bd.udfs
> > mkudffs $1/bd.udfs $blks
> > mount -t udf -o loop,gid=0,uid=0 $1/bd.udfs $1/udfs
> > bdwrite $1/udfs $1/bd.m2ts*
> > umount $1/udfs
> > echo To burn bluray, load writable media and run:
> > echo for WORM: growisofs -dvd-compat -Z /dev/bd=$1/bd.udfs
> > echo for RW:   dd if=$1/bd.udfs of=/dev/bd bs=2048000
> > kill $$
> >
> >
> > note gid=0,uid=0 parameters!
> >
> > Now it finishes, but killing Cin in the end! Is it supposed to be this
> > way? ------------
> >
> > cin
> > Cinelerra 5.1 - built: May  6 2018 22:25:19
> > git://git.cinelerra-cv.org/goodguy/cinelerra.git
> > (c) 2006-2018 Heroine Virtual Ltd. by Adam Williams
> > (c) 2007-2018 cin5 derivative by W.P. Morrow aka goodguy
> > Cinelerra is free software, covered by the GNU General Public License,
> > and you are welcome to change it and/or distribute copies of it under
> > certain conditions. There is absolutely no warranty for Cinelerra.
> >
> > Render::render_single: Session finished.
> > +
> > PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/
> > usr/bin:/bin:/usr/X11R7/bin:/usr/games:/usr/lib/java/bin:/
> > bin:/opt/kde3/bin:/usr/lib/cin
> > + mkdir -p /dev/shm/tmp/bd_20180512-213234/udfs
> > ++ du -cb /dev/shm/tmp/bd_20180512-213234/bd.m2ts
> > ++ tail -1
> > ++ sed -e 's/[  ].*//'
> > + sz=94093440
> > + blks=50040
> > + rm -f /dev/shm/tmp/bd_20180512-213234/bd.udfs
> > + mkudffs /dev/shm/tmp/bd_20180512-213234/bd.udfs 50040
> > 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=49509, type=PSPACE
> > start=49783, blocks=1, type=ANCHOR
> > start=49784, blocks=239, type=USPACE
> > start=50023, blocks=16, type=RVDS
> > start=50039, blocks=1, type=ANCHOR
> > + mount -t udf -o
> > loop,uid=0 /dev/shm/tmp/bd_20180512-213234/bd.udfs
> > /dev/shm/tmp/bd_20180512-213234/udfs
> > +
> > bdwrite /dev/shm/tmp/bd_20180512-213234/udfs /dev/shm/tmp/bd_20180512-
> > 213234/bd.m2ts
> > /dev/shm/tmp/bd_20180512-213234/udfs/BDMV: Permission denied
> >
> >
> > ---------------------
> > above was run with just uid=0 option set.
> >
> > root at slax:/dev/shm/tmp# cin
> > Cinelerra 5.1 - built: May  6 2018 22:25:19
> > git://git.cinelerra-cv.org/goodguy/cinelerra.git
> > (c) 2006-2018 Heroine Virtual Ltd. by Adam Williams
> > (c) 2007-2018 cin5 derivative by W.P. Morrow aka goodguy
> > Cinelerra is free software, covered by the GNU General Public License,
> > and you are welcome to change it and/or distribute copies of it under
> > certain conditions. There is absolutely no warranty for Cinelerra.
> >
> > Render::render_single: Session finished.
> > +
> > PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/
> > usr/bin:/bin:/usr/X11R7/bin:/usr/games:/usr/lib/java/bin:/
> > bin:/opt/kde3/bin:/usr/lib/cin
> > + mkdir -p /dev/shm/tmp/bd_20180512-213805/udfs
> > ++ du -cb /dev/shm/tmp/bd_20180512-213805/bd.m2ts
> > ++ sed -e 's/[  ].*//'
> > ++ tail -1
> > + sz=94093440
> > + blks=50040
> > + rm -f /dev/shm/tmp/bd_20180512-213805/bd.udfs
> > + mkudffs /dev/shm/tmp/bd_20180512-213805/bd.udfs 50040
> > 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=49509, type=PSPACE
> > start=49783, blocks=1, type=ANCHOR
> > start=49784, blocks=239, type=USPACE
> > start=50023, blocks=16, type=RVDS
> > start=50039, blocks=1, type=ANCHOR
> > + mount -t udf -o
> > loop,gid=0,uid=0 /dev/shm/tmp/bd_20180512-213805/bd.udfs
> > /dev/shm/tmp/bd_20180512-213805/udfs
> > +
> > bdwrite /dev/shm/tmp/bd_20180512-213805/udfs /dev/shm/tmp/bd_20180512-
> > 213805/bd.m2ts
> > + umount /dev/shm/tmp/bd_20180512-213805/udfs
> > + echo To burn bluray, load writable media and run:
> > To burn bluray, load writable media and run:
> > + echo for WORM:
> > growisofs -dvd-compat -Z /dev/bd=/dev/shm/tmp/bd_20180512-213805/bd.udfs
> > for WORM:
> > growisofs -dvd-compat -Z /dev/bd=/dev/shm/tmp/bd_20180512-213805/bd.udfs
> > + echo for RW: dd if=/dev/shm/tmp/bd_20180512-213805/bd.udfs of=/dev/bd
> > bs=2048000
> > for RW: dd if=/dev/shm/tmp/bd_20180512-213805/bd.udfs of=/dev/bd
> > bs=2048000
> > + kill 20106
> > Завершено
> >
> > Now I can mount resulting udf file:
> > mount /dev/shm/tmp/bd_20180512-213805/bd.udfs
> > /dev/shm/tmp/bd_20180512-213805/udfs/ -o
> > ro
> >
> > and play it in Mplayer:
> >
> > mplayer br://1//dev/shm/tmp/bd_20180512-213805/udfs/
> > Warning unknown option lavdops at line 3
> > MPlayer SVN-r38109-4.9.2 (C) 2000-2018 MPlayer Team
> >
> > Playing br://1//dev/shm/tmp/bd_20180512-213805/udfs/.
> > libavformat version 58.13.101 (internal)
> > TS file format detected.
> > VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
> > FPS seems to be: 24.000000
> > =========================================================================
> >= Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> > libavcodec version 58.19.100 (internal)
> > Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> > =========================================================================
> >=
> > =========================================================================
> >= Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO:
> > 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000) Selected
> > audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
> > =========================================================================
> >= [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
> > directory
> > [AO_ALSA] alsa-lib: pcm_hw.c:1583:(snd_pcm_hw_open) open
> > '/dev/snd/pcmC0D0p'
> > failed (-16): Device or resource busy
> > [AO_ALSA] alsa-lib: pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open
> > slave
> > [AO_ALSA] Playback open error: Device or resource busy
> > mcop warning: user defined signal handler found for SIG_PIPE, overriding
> > [AO ARTS] can't connect to aRts soundserver
> > [AO ESD] esd_open_sound failed: Connection timed out
> > Cannot connect to server socket err = No such file or directory
> > Cannot connect to server request channel
> > jack server is not running or cannot be started
> > [JACK] cannot open server
> > [AO SDL] Samplerate: 48000Hz Channels: Stereo Format floatle
> > [AO SDL] Unsupported audio format: 0x1d.
> > [AO_ALSA] alsa-lib: pcm_hw.c:1583:(snd_pcm_hw_open) open
> > '/dev/snd/pcmC0D0p'
> > failed (-16): Device or resource busy
> > [AO_ALSA] alsa-lib: pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open
> > slave
> > [AO SDL] Unable to open audio: No available audio device
> > [AO_ALSA] alsa-lib: pcm_hw.c:1583:(snd_pcm_hw_open) open
> > '/dev/snd/pcmC0D0p'
> > failed (-16): Device or resource busy
> > [AO_ALSA] alsa-lib: pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open
> > slave
> > AL lib: (EE) alsa_open_playback: Could not open playback device
> > 'default': Device or resource busy
> > [OpenAL] could not open device
> > DVB card number must be between 1 and 4
> > AO: [null] 48000Hz 2ch floatle (4 bytes per sample)
> > Starting playback...
> > Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
> > VO: [xv] 1920x1080 => 1920x1080 Planar YV12
> > A:   3.7 V:   3.8 A-V: -0.010 ct: -0.047  88/ 88 47%  1%  1.2% 0 0
> > [h264 @ 0x576476a0]Missing reference picture, default is 2
> > [h264 @ 0x576476a0]mmco: unref short failure
> > [h264 @ 0x576476a0]Invalid NAL unit 1, skipping.
> > [h264 @ 0x576476a0]error while decoding MB 18 2, bytestream -10
> > [h264 @ 0x576476a0]concealing 7951 DC, 7951 AC, 7951 MV errors in P frame
> > [h264 @ 0x576476a0]top block unavailable for requested intra mode
> > [h264 @ 0x576476a0]error while decoding MB 1 0, bytestream 172522
> > [h264 @ 0x576476a0]concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
> > A:  13.2 V:  13.2 A-V:  0.027 ct: -0.091 104/104 54%  2%  1.8% 0 0
> > [h264 @ 0x576476a0]co located POCs unavailable
> > [h264 @ 0x576476a0]error while decoding MB 41 0, bytestream -22
> > [h264 @ 0x576476a0]concealing 8160 DC, 8160 AC, 8160 MV errors in P frame
> > A:  22.6 V:  22.7 A-V: -0.040 ct: -0.091 119/119 44%  2%  0.9% 0 0
> > [h264 @ 0x576476a0]error while decoding MB 42 2, bytestream -6
> > [h264 @ 0x576476a0]concealing 7927 DC, 7927 AC, 7927 MV errors in B frame
> > A:  32.1 V:  32.1 A-V:  0.027 ct: -0.090 128/128 ??% ??% ??,?% 0 0
> > [h264 @ 0x576476a0]co located POCs unavailable
> > A:  42.0 V:  42.0 A-V:  0.014 ct: -0.111 140/140 ??% ??% ??,?% 0 0
> > [h264 @ 0x576476a0]Invalid NAL unit 1, skipping.
> > [h264 @ 0x576476a0]error while decoding MB 69 4, bytestream -12
> > [h264 @ 0x576476a0]concealing 7660 DC, 7660 AC, 7660 MV errors in B frame
> > [h264 @ 0x576476a0]top block unavailable for requested intra mode -1
> > [h264 @ 0x576476a0]error while decoding MB 4 0, bytestream 58843
> > [h264 @ 0x576476a0]concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
> > A:  63.4 V:  73.0 A-V: -9.594 ct: -0.100 198/198 ??% ??% ??,?% 0 0
> > [ac3 @ 0x576476a0]invalid coupling range (15 >= 6)
> > [ac3 @ 0x576476a0]error decoding the audio block
> > libbluray/bluray.c:614: Read past EOF !6 198/198 ??% ??% ??,?% 0 0
> >
> > TS_PARSE: COULDN'T SYNC
> > A:  73.2 V:  73.2 A-V:  0.031 ct:  0.012 202/202 ??% ??% ??,?% 0 0
> >
> >
> > Exiting... (End of file)
> > -------------
> >
> > ignore audio errors, just wrong .asoundrc for root!
> > h264 errors probably just from my attempts at seeking!
> >
> > Now, there is github repo for udftools, but I haven't tried to update my
> > mkudffs
> > and friends from it yet!
> >
> > https://github.com/pali/udftools/commits/master?after=
> > 05b9f472b12f881d675fa0a01fab004dea4259aa+69
> >
> > note those:
> >
> > --------------------------
> > mkudffs: Add experimental support for Blu-Ray Disc Recordable with UD… …
> > @pali
> > pali committed Dec 16, 2017
> >  819e803
> >
> > mkudffs: Add minimal support for UDF revision 2.50 and 2.60 …
> > @pali
> > pali committed Dec 16, 2017
> >
> > --------------------------
> >
> > sounds interesting!!
> >
> > Attached three files from BD tmp folder. (including my modified sh file -
> > I
> > fixed it in Midnight Commander while Cin was busy with encoding)
> >
> >
> > _______________________________________________
> > Cinelerra mailing list
> > Cinelerra at lists.cinelerra-cv.org
> > http://lists.cinelerra-cv.org/cgi-bin/mailman/listinfo/cinelerra




More information about the Cinelerra mailing list