Den 21.12.2021 03:43, skrev Andrew Randrianasulu:


On Tuesday, December 21, 2021, Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org> wrote:


Den 20.12.2021 23:33, skrev Phyllis Smith via Cin:
*Terje*,
I have created at AppImage for early testing:
https://cinelerra-gg.org/download/testing/cin_bluray_lpcm_test.AppImage <https://cinelerra-gg.org/download/testing/cin_bluray_lpcm_test.AppImage>

What a surprise and service, and the Appimage installed nicely ):

*Andrew*,
I downloaded the latest GIT to start fresh and then ONLY added these 11 patches in numerical order.
When I did just a quick/simple test of the default "Profile" of bluray.m2ts, it seemed to work but I have not yet done thorough testing.
Using "Profile" of blurary_lpcm.m2ts, I still get the same error previously reported of no bluray_lpcm but I still have not looked at why.

=====================

Here follows my first test which looks well until I should burn the BD-RE disc:

    cd /data/Video-test/SD_Blu-ray
    du -sh dv28.dv
    470M    dv28.dv

I loaded the PAL SD "dv28.dv" into Cin-GG and then BD-render:
    Cin Warning: Must be root to mount UDFS Images [X]
    Create BD - Title /tmp/bd_20211221-012516

    Checked Audio and Video, then Video Wrench:
    Profile:   bluray-LPCM.m2ts
    Format:    720x576
    Media:     50 GB
    Scale:     None (default)
    <Start>

Cin-GG closed after rendering

can you re-try and capture exact output? it seems bdwrite step is failing.. probably alongside with mkudffs step... (

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

I tried again as normal user:

Render::render_single: Session finished.
** rendered 3415 frames in 37.995 secs, 89.880 fps
++ dirname /tmp/bd_20211221-042618/bd.sh
+ sdir=/tmp/bd_20211221-042618
++ cd /tmp/bd_20211221-042618
++ pwd
+ dir=/tmp/bd_20211221-042618
+ PATH=/home/terje/bin:/usr/local/bin:/usr/bin:/bin:/tmp/.mount_cin_blv0sji3/usr/bin
+ mkdir -p /tmp/bd_20211221-042618/udfs
++ du -cb /tmp/bd_20211221-042618/bd.m2ts
++ tail -1
++ sed -e 's/[     ].*//'
+ sz=211077120
+ blks=107161
+ rm -f /tmp/bd_20211221-042618/bd.udfs
+ mkudffs -b 2048 /tmp/bd_20211221-042618/bd.udfs 107161
/tmp/bd_20211221-042618/bd.sh: linje 9: mkudffs: didn't find the command

From the last line I thought the reason was that mkudffs required root access (sbin):

    rpm -ql udftools
    /usr/bin/cdrwtool
    /usr/sbin/mkfs.udf
    /usr/sbin/mkudffs
    /usr/sbin/pktsetup
    /usr/sbin/wrudf

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

So I restarted Cin-GG as root:

./cin_bluray_lpcm_test_9e730376d01dcf86b3420de8f3625cec.AppImage
/usr/bin/AppImageLauncher: /usr/lib64/libcurl.so.4: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so)
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt5ct: using qt5ct plugin
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)
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)
Extracting usr/share/icons/hicolor/scalable/apps/cin.svg to "/root/.local/share/icons/hicolor/scalable/apps/appimagekit_eecb18ea43dbe03c9d57e8b68eb298b3_cin.svg"
gtk-update-icon-cache: Cache file created successfully.
which: no update-icon-caches in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin)
Directory '/root/.local/share/mime/packages' does not exist!
Cinelerra Infinity - built: Dec 20 2021 14:52:15
git://git.cinelerra-gg.org/goodguy/cinelerra.git
(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
2007-2020 mods for Cinelerra-GG 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.

lang changed from '' to 'POSIX'
build plugin index for: /tmp/.mount_cin_blNEnM2Y/usr/bin/plugins
build lv2 index for: $CIN_PATH/lv2
build ladspa plugin index for: /tmp/.mount_cin_blNEnM2Y/usr/bin/ladspa
audio0 pad 32 0 (32)
Render::render_single: Session finished.
** rendered 3415 frames in 38.006 secs, 89.854 fps
++ dirname /tmp/bd_20211221-044633/bd.sh
+ sdir=/tmp/bd_20211221-044633
++ cd /tmp/bd_20211221-044633
++ pwd
+ dir=/tmp/bd_20211221-044633
+ PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/tmp/.mount_cin_blNEnM2Y/usr/bin
+ mkdir -p /tmp/bd_20211221-044633/udfs
++ du -cb /tmp/bd_20211221-044633/bd.m2ts
++ tail -1
++ sed -e 's/[     ].*//'
+ sz=211070976
+ blks=107158
+ rm -f /tmp/bd_20211221-044633/bd.udfs
+ mkudffs -b 2048 /tmp/bd_20211221-044633/bd.udfs 107158
filename=/tmp/bd_20211221-044633/bd.udfs
label=LinuxUDF
uuid=61c14e74005dbca6
blocksize=2048
blocks=107158
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=106627, type=PSPACE
start=106901, blocks=1, type=ANCHOR
start=106902, blocks=239, type=USPACE
start=107141, blocks=16, type=RVDS
start=107157, blocks=1, type=ANCHOR
+ mount -t udf -o loop /tmp/bd_20211221-044633/bd.udfs /tmp/bd_20211221-044633/udfs
+ bdwrite /tmp/bd_20211221-044633/udfs /tmp/bd_20211221-044633/bd.m2ts
/tmp/bd_20211221-044633/bd.sh: line 11: 12601 Segmentation fault      (core dumped) bdwrite $dir/udfs $dir/bd.m2ts*

localhost:/home/terje/Applications # cd /tmp
localhost:/tmp # du -sh bd_2021*

202M    bd_20211221-044633

localhost:/tmp # tree -sh bd_20211221-044633
bd_20211221-044633
├── [2.0K]  bd.jobs
├── [201M]  bd.m2ts
├── [ 525]  bd.sh
├── [209M]  bd.udfs
├── [5.9K]  bd.xml
└── [ 136]  udfs
    ├── [ 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

24 directories, 5 files

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

Tried to write it to BD-RE disc:

localhost:~ # cd /tmp

localhost:/tmp # dd if=./bd.udfs of=/dev/sr0 bs=2048000
dd: failed to open './bd.udfs': No such file or directory

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

look and may be try to execute bd.sh manually from this temp folder? ? 

I think we had several such attempts testing BD rendering and burning som years ago.
In case, give me the bd.sh commands

=========================================
 

    cd /tmp
    du -sh bd_2021*
    16K    bd_20211221-011423
    202M    bd_20211221-012516

    tree -h bd_2021*

    bd_20211221-011423
    ├── [2.0K]  bd.jobs
    └── [5.9K]  bd.xml

    bd_20211221-012516
    ├── [2.0K]  bd.jobs
    ├── [201M]  bd.m2ts
    ├── [ 525]  bd.sh
    ├── [5.9K]  bd.xml
    └── [4.0K]  udfs

What surprised me a bit, the first tree?

Tested the bd.m2ts with VLC and the video and LPCM audio worked fine.

avprobe bd_20211221-012516/bd.m2ts
avprobe version 12.3, Copyright (c) 2007-2018 the Libav developers
  built on Mar 26 2018 12:39 with gcc 7 (SUSE Linux)
[AVBSFContext @ 0x5633b8ea1c40] Invalid NAL unit 0, skipping.
Input #0, mpegts, from 'bd_20211221-012516/bd.m2ts':
  Duration: 00:02:16.64, start: 0.080000, bitrate: 12357 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, bottom first), 720x576 [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1100](und): Audio: pcm_bluray ([128][0][0][0] / 0x0080), 48000 Hz, stereo, s16, 1536 kb/s

===========

mediainfo bd_2021*
General
Complete name                          
  : bd_20211221-011423/bd.jobs
File size                          
      : 1.95 KiB
--------

General
Complete name                          
  : bd_20211221-011423/bd.xml
File size                          
      : 5.89 KiB

General
Complete name                          
  : bd_20211221-012516/bd.jobs
File size                          
      : 1.95 KiB

General
ID                            
           : 1 (0x1)
Complete name                          
  : bd_20211221-012516/bd.m2ts
Format                        
           : BDAV
Format/Info                   
           : Blu-ray Video
File size                          
      : 201 MiB
Duration                      
           : 2 min 15 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 12.4 Mb/s

Video
ID                            
           : 4113 (0x1011)
Menu ID                            
      : 1 (0x1)
Format                        
           : AVC
Format/Info                   
           : Advanced Video Codec
Format profile                       
    : High@L4.1
Format settings                      
    : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                            
     : 27
Duration                      
           : 2 min 16 s
Bit rate mode                          
  : Variable
Bit rate                          
       : 10 000 kb/s
Maximum bit rate                         : 40.0 Mb/s
Width                         
           : 720 pixels
Height                        
           : 576 pixels
Display aspect ratio                     : 5:4
Frame rate                          
     : 25.000 FPS
Standard                      
           : PAL
Color space                         
     : YUV
Chroma subsampling                   
    : 4:2:0
Bit depth                         
       : 8 bits
Scan type                          
      : MBAFF
Scan type, store method                  : Interleaved fields
Scan order                         
      : Bottom Field First
Bits/(Pixel*Frame)            
           : 0.965
Stream size                          
    : 168 MiB (84%)
Writing library                       
   : x264 core 164
Encoding settings                      
  : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=bff / bluray_compat=1 / constrained_intra=0 / bframes=2 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=25 / rc=abr / mbtree=1 / bitrate=10000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=33 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
Color range                         
     : Limited
Color primaries                     
     : BT.709
Transfer characteristics               
  : BT.709
Matrix coefficients                  
    : BT.709

Audio
ID                            
           : 4352 (0x1100)
Menu ID                            
      : 1 (0x1)
Format                        
           : PCM
Format settings                      
    : Big / Signed
Muxing mode                          
    : Blu-ray
Codec ID                            
     : 128
Duration                      
           : 2 min 16 s
Bit rate mode                          
  : Constant
Bit rate                          
       : 1 536 kb/s
Channel(s)                    
           : 2 channels
Channel layout                        
   : L R
Sampling rate                          
  : 48.0 kHz
Bit depth                         
       : 16 bits
Stream size                          
    : 25.0 MiB (12%)

General
Complete name                          
  : bd_20211221-012516/bd.sh
File size                          
      : 525 Bytes

General
Complete name                          
  : bd_20211221-012516/bd.xml
File size                          
      : 5.89 KiB

=======================


The latest times I've burned BD_image.iso tp discs with K3b after creating iso's with tsMuxer.

As this time it was BD structures I tried to follow the manual section
https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html

9.Load your media, format if needed, note device name to substitute for <bd> or <dvd>
    If rewritable blu-ray, use
    dd if=./bd.udfs of=/dev/<bd> bs=2048000

Entered the new BD50-RE disc into the blu-ray burner and entered

    dd if=./bd.udfs of=/dev/sr0 bs=2048000
    dd: failed to open './bd.udfs': No such file or directory

Tried this also with root access with the same failure.
Looks for me as './bd.udfs' is missing and not created yet.

Searched the manual and did't remember how and where (mounting/unmounting?) this step was executed??

==============


On Mon, Dec 20, 2021 at 12:26 PM Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org <mailto:cin@lists.cinelerra-gg.org>> wrote:



    Den 17.12.2021 04:51, skrev Andrew Randrianasulu via Cin:
    > well, me and gui not quite get along... (see new layout of
    'create bd'
    > window..)
    >
    > but... it seems to work?
    >
    > you can choose profile (out of two) and it will appear in rendering
    > window..
    >

    If and when the new features come with the next(?) Cin-GG appimage, I
    can do more testing as I've got my new BD-RE discs.

    Will also the internal ffmpeg with pcm be included?

    Terje J. H


    --     Cin mailing list
    Cin@lists.cinelerra-gg.org <mailto:Cin@lists.cinelerra-gg.org>
    https://lists.cinelerra-gg.org/mailman/listinfo/cin
    <https://lists.cinelerra-gg.org/mailman/listinfo/cin>



--
Cin mailing list
Cin@lists.cinelerra-gg.org
https://lists.cinelerra-gg.org/mailman/listinfo/cin