Den 06.12.2022 16:39, skrev Andrew Randrianasulu:


вт, 6 дек. 2022 г., 03:33 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:
I had to troubleshoot and replace a bad SATA power connector to my internal LG Blu-ray burner that caused confusing disc mount issues and delay, before the burner device worked properly again.

lsscsi | grep BD
[5:0:0:0]    cd/dvd  HL-DT-ST BD-RE  BH10LS30  1.02  /dev/sr0


So far I have tested successful burning on BD50-RE DL discs with K3b/cdrecord using a single 2GB HDV clip with PCM transcoded audio written to Blu-ray video UDF image. For HDV this time I've tested BD-RE discs from two manufacturers, Verbatim and unlabeled (dealer Slowmoose). Last year I tested also SD-Bluray video successful burned on TDK BD-RE discs.


And most important, the discs starts as autoplay after loading in my Samsung UBD-K8500 Blu-ray hardware player. The quality of interlaced video and PCM audio seems for me equivalent via VLC and Samsung BD player. Testing is executed on VLC/Leap 15.4 workstation and Samsung BD-player, both connected to the same Asus 27" LCD monitor (PB2780Q), easy switchable via DP and HDMI ports respectively.


To summarize and repeat procedure for this test case:

> ffmpeg -i  hdv01_m2t -c:v copy -c:a pcm_bluray -mpegts_m2ts_mode 1 hdv01_m2t_pcm_bluray.mts
# mkudffs -b 2048 /tmp/hdv01_m2t_pcm_bluray.udfs 1126663
# mount -o loop /tmp/hdv01_m2t_pcm_bluray.udfs /mnt/test
# /home/terje/mountpoint/usr/bin/bdwrite /mnt/test hdv01_m2t_pcm_bluray.mts
# umount /mnt/test

K3b: Burn CD-image, 2x speed (BD50-RE DL)
image to burn; /tmp/hdv01_m2t_pcm_bluray.udfs
(not recognizeable, but selece burn it anyway, 2-4x times)
image type: Auto
Burning program: cdrecord
(warning to add the actual user to cdrom group)
Start


A question before leaving some error/warning details from various tools output/log below:

Is it possible to get bdwrite to keep the original, multiple video clip names? In this case single clip: hdv01.mts

I think only way I saw in manual (but not tested) is to add chain of clips as arguments to bdwrite, so you will have titles to select via remote control

https://cinelerra-gg.org/download/CinelerraGG_Manual/Blu_ray_from_Multiple_CINEL.html


not sure what will happen if you add like 20 titles this way - screen area will overflown by title names?

Yes, there is something to explore. The manual sample screen seems to be selectable human info titles that points to the clips.

To be sure we talk about the same thing, I will detail this sample case a bit.

The Blu-ray video disc's root directory contains the following tree structure:


terje@localhost:/run/media/terje/LinuxUDF> ls
BDMV  CERTIFICATE

terje@localhost:/run/media/terje/LinuxUDF> tree -h BDMV
BDMV
├── [  40]  AUXDATA
├── [ 332]  BACKUP
│   ├── [  40]  BDJO
│   ├── [  92]  CLIPINF
│   │   └── [7.3K]  00000.clpi
│   ├── [ 124]  index.bdmv
│   ├── [  40]  JAR
│   ├── [ 110]  MovieObject.bdmv
│   └── [  92]  PLAYLIST
│       └── [ 212]  00000.mpls
├── [  40]  BDJO
├── [  92]  CLIPINF
│   └── [7.3K]  00000.clpi
├── [ 124]  index.bdmv
├── [  40]  JAR
├── [  40]  META
├── [ 110]  MovieObject.bdmv
├── [  92]  PLAYLIST
│   └── [ 212]  00000.mpls
└── [  92]  STREAM
    └── [2.1G]  00000.m2ts

12 directories, 9 files


The last line contains the video itself with file name '00000.m2ts'
This corresponds to my single video clip 'hdv01_m2t_pcm_bluray.mts' from
bdwrite /mnt/test hdv01_m2t_pcm_bluray.mts

HDV and also DV (SD) requires ca 13 GB disc space pr hour (from a recorded 60 minutes tape). That is a 46 GB BD50-DL optical disc have space for about 3.5 hours HDV or DV video.
 
When HDV.m2t or DV (digitized from Hi8 analog tapes) are transfered to the Datavideo DN-300 disk recorder, the video is auto splitted in 2,0 GB named clips. A sample of DV clips and naming from two Hi8 tapes archived on optical BD data discs:

/video/DV> du -h dv01* dv02*
2,0G    dv01.dv
2,0G    dv01_01.dv
2,0G    dv01_02.dv
2,0G    dv01_03.dv
2,0G    dv01_04.dv
2,0G    dv01_05.dv
2,0G    dv01_06.dv
389M    dv01_07.dv

2,0G    dv02.dv
2,0G    dv02_01.dv
2,0G    dv02_02.dv
2,0G    dv02_03.dv
2,0G    dv02_04.dv
2,0G    dv02_05.dv
505M    dv02_06.dv

It is these clip names it would be practical (due to archive register) to keep also on the playbackable, source Blu-ray video discs?
Beside additional clip info/titles could be useful.




Thanks for your experiments, hopefully Phyllis will update manual section before new year with new line about transcoding audio, while leaving video intact.


The very first procedure line above had a minor syntax typo in the input file:
> ffmpeg -i  hdv01.m2t -c:v copy -c:a pcm_bluray -mpegts_m2ts_mode 1 hdv01_m2t_pcm_bluray.mts

It should be noted that ffmpeg-5 with pcm_bluray encoder is required here (therefore I used Tumbleweed just for this)


Else I suggest that the # comments in the manual should be kept to explain what happends.
And also how the mkudffs size was calculated.





#####################################