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 ##################################### K3b/cdrecord log: ================= Devices ----------------------- HL-DT-ST BD-RE BH10LS30 1.02 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, BD-ROM, BD-R, BD-R, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, Sekvensiell DVD-R, Sekvensiell tolags DVD-R, Bytt lag på tolags DVD-R, DVD-RAM, DVD-RW Begrenset overskriving, DVD-RW Sekvensiell, DVD+RW, DVD+R, Tolags DVD+R, CD-ROM, CD-R, CD-RW, BD-ROM, Sekvensiell DVD-R (SRM), BD-R Tilfeldig(RRM), BD-R] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Begrenset overskriving, Bytt lag, Tilfeldig opptak, Sekvensielt opptak , Sekvensielt opptak + POW] [%7] System ----------------------- K3b Version: 21.12.3 KDE Version: 5.90.0 Qt Version: 5.15.2 Kernel: 5.14.21-150400.24.33-default Used versions ----------------------- cdrecord: 3.2a09 cdrecord ----------------------- cdrecord: Insufficient 'file read' privileges. You will not be able to open all needed devices. cdrecord: Insufficient 'file write' privileges. You will not be able to open all needed devices. cdrecord: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems. cdrecord: Insufficient 'network' privileges. You will not be able to do remote SCSI. scsidev: '/dev/sr0' devname: '/dev/sr0' scsibus: -2 target: -2 lun: -2 Warning: Open by 'devname' is unintentional and not supported. Linux sg driver version: 3.5.27 SCSI buffer size: 64512 cdrecord: Warning: DMA resid 0 for 'read buffer', actual data is too short. cdrecord: Warning: The DMA speed test has been skipped. Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling TOC Type: 1 = CD-ROM Using libscg version 'schily-0.9'. Driveropts: 'burnfree' atapi: 1 Device type : Removable CD-ROM Version : 5 Response Format: 2 Capabilities : Vendor_info : 'HL-DT-ST' Identifikation : 'BD-RE BH10LS30 ' Revision : '1.02' Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM. Current: BD-RE Profile: BD-ROM Profile: BD-R sequential recording Profile: BD-R random recording Profile: BD-RE (current) Profile: DVD-RAM Profile: DVD-R sequential recording Profile: DVD-R/DL sequential recording Profile: DVD-R/DL layer jump recording Profile: DVD-RW sequential recording Profile: DVD-RW restricted overwrite Profile: DVD+RW Profile: DVD+R Profile: DVD+R/DL Profile: DVD-ROM Profile: CD-R Profile: CD-RW Profile: CD-ROM Profile: Removable Disk (current) Using generic SCSI-3/mmc-3 BD-RE driver (mmc_bdre). Driver flags : NO-CD BD MMC-3 BURNFREE Supported modes: PACKET SAO LAYER_JUMP Drive buf size : 2031616 = 1984 KB Drive pbuf size: 3850240 = 3760 KB FIFO size : 4194304 = 4096 KB Track 01: data 2200 MB Total size: 2200 MB = 1126663 sectors Current Secsize: 2048 Trying to clear drive status. WARNING: Drive returns zero media size, correcting. Blocks total: 23652352 Blocks current: 23652352 Blocks remaining: 22525689 Reducing transfer size from 64512 to 32768 bytes. Starting to write CD/DVD/BD at speed 2 in real SAO mode for single session. Last chance to quit, starting real write in 3 seconds. 2 seconds. 1 seconds. 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. Starting new track at sector: 0 Track 02: 0 of 2200 MB written. Track 02: 1 of 2200 MB written (fifo 88%) 0,0x. Track 02: 2 of 2200 MB written (fifo 99%) [buf 50%] 0,1x. Track 02: 3 of 2200 MB written (fifo 96%) [buf 50%] 2,0x. Track 02: 4 of 2200 MB written (fifo 97%) [buf 50%] 0,6x. Track 02: 5 of 2200 MB written (fifo 99%) [buf 50%] 2,0x .......... snip ........ ........ Track 02: 6 of 2200 MB written (fifo 96%) [buf 50%] 0,6x. Track 02: 7 of 2200 MB written (fifo 98%) [buf 50%] 2,0x Track 02: 2199 of 2200 MB written (fifo 100%) [buf 50%] 2,0x. Track 02: 2200 of 2200 MB written (fifo 100%) [buf 50%] 0,6x. Track 02: Total bytes read/written: 2307405824/2307405824 (1126663 sectors). Writing time: 562.967s (00:09:22.967) Average write speed 0,9x. Min drive buffer fill was 50% Fixating... Fixating time: 2.046s (00:00:02.046) cdrecord: fifo had 70417 puts and 70417 gets. cdrecord: fifo was 0 times empty and 12961 times full, min fill was 77%. cdrecord command: ----------------------- /usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=2 -sao driveropts=burnfree -data -tsize=1126663s - =================================== terje@localhost:~> bd_info /dev/sr0 Using libbluray version 1.3.0 Volume Identifier : LinuxUDF BluRay detected : yes First Play supported: yes Top menu supported : yes HDMV titles : 1 BD-J titles : 0 UNSUPPORTED titles : 0 BD-J detected : no AACS detected : no BD+ detected : no Application info: initial mode preference : 2D 3D content exists : No video format : ignored (0x0) frame rate : ignored (0x0) initial dynamic range : SDR (0x0) provider data : ' ' No disc library metadata ======================== terje@localhost:~> bd_list_titles /dev/sr0 Main title: 1 index: 1 duration: 00:10:58 chapters: 4 angles: 1 clips: 1 (playlist: 00000.mpls) V:1 A:1 PG:0 IG:0 SV:0 SA:0 ========================= ffprobe -hide_banner bluray:/dev/sr0 [bluray @ 0x560bad897b80] 1 usable playlists: [bluray @ 0x560bad897b80] playlist 00000.mpls (0:10:58) [bluray @ 0x560bad897b80] selected 00000.mpls [mpegts @ 0x560bad898f80] probed stream 2 failed [mpegts @ 0x560bad898f80] stream 1 : no PTS found at end of file, duration not set bluray.c:300: 00000.m2ts: no timestamp for SPN 0 (got 0). clip 66600-29714400. [mpegts @ 0x560bad898f80] Could not find codec parameters for stream 2 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpegts, from 'bluray:/dev/sr0': Duration: 00:10:58.92, start: 1.440000, bitrate: 27912 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg 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 Side data: cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 7340032 vbv_delay: N/A Stream #0:1[0x1100]: Audio: pcm_bluray ([128][0][0][0] / 0x0080), 48000 Hz, stereo, s16, 1536 kb/s No Program Stream #0:2[0x1fff]: Unknown: none Unsupported codec with id 0 for input stream 2 =================== terje@localhost:~> udfinfo /dev/sr0 udfinfo: Warning: Device '/dev/sr0' is busy, udfinfo may report bogus information udfinfo: Warning: Second and third Anchor Volume Descriptor Pointer not found udfinfo: Warning: Logical Volume is in inconsistent state filename=/dev/sr0 label=LinuxUDF uuid=63890d51c6cae8fc lvid=LinuxUDF vid=LinuxUDF vsid=LinuxUDF fsid=LinuxUDF fullvsid=63890d51c6cae8fcLinuxUDF owner=Linux mkudffs 1.3 organization=Linux udftools 1.3 contact=https://github.com/pali/udftools/ appid=*Linux mkudffs impid=*Linux UDFFS winserialnum=0xd72b26b6 blocksize=2048 blocks=23652352 usedblocks=1122679 freeblocks=3453 behindblocks=22525690 numfiles=9 numdirs=24 udfrev=2.01 udfwriterev=2.01 integrity=opened accesstype=overwritable softwriteprotect=no hardwriteprotect=no start=16, blocks=3, type=VRS start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=MVDS start=273, blocks=1, type=LVID start=274, blocks=1126132, type=PSPACE start=1126646, blocks=16, type=RVDS ################################# .