<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 06.12.2022 01:08, skrev Terje J.
      Hanssen:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7babde43-ad58-01f2-125d-f357df6a5c6d@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <font face="Courier New, Courier, monospace">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.<br>
        <br>
        lsscsi | grep BD<br>
        [5:0:0:0]    cd/dvd  HL-DT-ST BD-RE  BH10LS30  1.02  /dev/sr0<br>
        <br>
        <br>
        So far I have tested successful burning </font><font
        face="Courier New, Courier, monospace"><font face="Courier New,
          Courier, monospace">on BD50-RE DL discs with K</font>3b/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.<br>
        <br>
        <br>
        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.<br>
        <br>
        <br>
        To summarize and repeat procedure for this test case:<br>
        <br>
        > ffmpeg -i  hdv01_m2t -c:v copy -c:a pcm_bluray
        -mpegts_m2ts_mode 1 hdv01_m2t_pcm_bluray.mts<br>
        # mkudffs -b 2048 /tmp/hdv01_m2t_pcm_bluray.udfs 1126663<br>
        # mount -o loop /tmp/hdv01_m2t_pcm_bluray.udfs /mnt/test<br>
        # /home/terje/mountpoint/usr/bin/bdwrite /mnt/test
        hdv01_m2t_pcm_bluray.mts<br>
        # umount /mnt/test<br>
        <br>
        K3b: Burn CD-image, 2x speed (BD50-RE DL)<br>
        image to burn; /tmp/hdv01_m2t_pcm_bluray.udfs<br>
        (not recognizeable, but selece burn it anyway, 2-4x times)<br>
        image type: Auto<br>
        Burning program: cdrecord<br>
        (warning to add the actual user to cdrom group)<br>
        Start<br>
        <br>
        <br>
        A question before leaving some error/warning details from
        various tools output/log below:<br>
        <br>
        Is it possible to get bdwrite to keep the original, multiple
        video clip names? In this case single clip: hdv01.mts<br>
        <br>
        <br>
        #####################################<br>
        <br>
        <br>
        K3b/cdrecord log:<br>
        =================<br>
        <br>
        Devices<br>
        -----------------------<br>
        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]<br>
        <br>
        System<br>
        -----------------------<br>
        K3b Version: 21.12.3<br>
        KDE Version: 5.90.0<br>
        Qt Version:  5.15.2<br>
        Kernel:      5.14.21-150400.24.33-default<br>
        <br>
        Used versions<br>
        -----------------------<br>
        cdrecord: 3.2a09<br>
        <br>
        cdrecord<br>
        -----------------------<br>
        cdrecord: Insufficient 'file read' privileges. You will not be
        able to open all needed devices.<br>
        cdrecord: Insufficient 'file write' privileges. You will not be
        able to open all needed devices.<br>
        cdrecord: Insufficient 'device' privileges. You may not be able
        to send all needed SCSI commands, this my cause various
        unexplainable problems.<br>
        cdrecord: Insufficient 'network' privileges. You will not be
        able to do remote SCSI.<br>
        scsidev: '/dev/sr0'<br>
        devname: '/dev/sr0'<br>
        scsibus: -2 target: -2 lun: -2<br>
        Warning: Open by 'devname' is unintentional and not supported.<br>
        Linux sg driver version: 3.5.27<br>
        SCSI buffer size: 64512<br>
        cdrecord: Warning: DMA resid 0 for 'read buffer', actual data is
        too short.<br>
        cdrecord: Warning: The DMA speed test has been skipped.<br>
        Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-unknown-linux-gnu)
        Copyright (C) 1995-2016 Joerg Schilling<br>
        TOC Type: 1 = CD-ROM<br>
        Using libscg version 'schily-0.9'.<br>
        Driveropts: 'burnfree'<br>
        atapi: 1<br>
        Device type    : Removable CD-ROM<br>
        Version        : 5<br>
        Response Format: 2<br>
        Capabilities   : <br>
        Vendor_info    : 'HL-DT-ST'<br>
        Identifikation : 'BD-RE  BH10LS30 '<br>
        Revision       : '1.02'<br>
        Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.<br>
        Current: BD-RE<br>
        Profile: BD-ROM <br>
        Profile: BD-R sequential recording <br>
        Profile: BD-R random recording <br>
        Profile: BD-RE (current)<br>
        Profile: DVD-RAM <br>
        Profile: DVD-R sequential recording <br>
        Profile: DVD-R/DL sequential recording <br>
        Profile: DVD-R/DL layer jump recording <br>
        Profile: DVD-RW sequential recording <br>
        Profile: DVD-RW restricted overwrite <br>
        Profile: DVD+RW <br>
        Profile: DVD+R <br>
        Profile: DVD+R/DL <br>
        Profile: DVD-ROM <br>
        Profile: CD-R <br>
        Profile: CD-RW <br>
        Profile: CD-ROM <br>
        Profile: Removable Disk (current)<br>
        Using generic SCSI-3/mmc-3 BD-RE driver (mmc_bdre).<br>
        Driver flags   : NO-CD BD MMC-3 BURNFREE <br>
        Supported modes: PACKET SAO LAYER_JUMP<br>
        Drive buf size : 2031616 = 1984 KB<br>
        Drive pbuf size: 3850240 = 3760 KB<br>
        FIFO size      : 4194304 = 4096 KB<br>
        Track 01: data  2200 MB        <br>
        Total size:     2200 MB = 1126663 sectors<br>
        Current Secsize: 2048<br>
        Trying to clear drive status.<br>
        WARNING: Drive returns zero media size, correcting.<br>
        Blocks total: 23652352 Blocks current: 23652352 Blocks
        remaining: 22525689<br>
        Reducing transfer size from 64512 to 32768 bytes.<br>
        Starting to write CD/DVD/BD at speed 2 in real SAO mode for
        single session.<br>
        Last chance to quit, starting real write in 3 seconds.<br>
           2 seconds.<br>
           1 seconds.<br>
           0 seconds. Operation starts.<br>
        Waiting for reader process to fill input buffer ... input buffer
        ready.<br>
        Starting new track at sector: 0<br>
        Track 02:    0 of 2200 MB written.<br>
        Track 02:    1 of 2200 MB written (fifo  88%)   0,0x.<br>
        Track 02:    2 of 2200 MB written (fifo  99%) [buf  50%]   0,1x.<br>
        Track 02:    3 of 2200 MB written (fifo  96%) [buf  50%]   2,0x.<br>
        Track 02:    4 of 2200 MB written (fifo  97%) [buf  50%]   0,6x.<br>
        Track 02:    5 of 2200 MB written (fifo  99%) [buf  50%]   2,0x<br>
        .......... snip ........<br>
        ........<br>
        Track 02:    6 of 2200 MB written (fifo  96%) [buf  50%]   0,6x.<br>
        Track 02:    7 of 2200 MB written (fifo  98%) [buf  50%]   2,0x<br>
        Track 02: 2199 of 2200 MB written (fifo 100%) [buf  50%]   2,0x.<br>
        Track 02: 2200 of 2200 MB written (fifo 100%) [buf  50%]   0,6x.<br>
        Track 02: Total bytes read/written: 2307405824/2307405824
        (1126663 sectors).<br>
        Writing  time:  562.967s (00:09:22.967)<br>
        Average write speed   0,9x.<br>
        Min drive buffer fill was 50%<br>
        Fixating...<br>
        Fixating time:    2.046s (00:00:02.046)<br>
        cdrecord: fifo had 70417 puts and 70417 gets.<br>
        cdrecord: fifo was 0 times empty and 12961 times full, min fill
        was 77%.<br>
        <br>
        cdrecord command:<br>
        -----------------------<br>
        /usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=2 -sao
        driveropts=burnfree -data -tsize=1126663s -<br>
        <br>
        <br>
        ===================================<br>
        <br>
        terje@localhost:~> bd_info /dev/sr0<br>
        Using libbluray version 1.3.0<br>
        Volume Identifier   : LinuxUDF<br>
        BluRay detected     : yes<br>
        First Play supported: yes<br>
        Top menu supported  : yes<br>
        HDMV titles         : 1<br>
        BD-J titles         : 0<br>
        UNSUPPORTED titles  : 0<br>
        <br>
        BD-J detected       : no<br>
        <br>
        AACS detected       : no<br>
        <br>
        BD+ detected        : no<br>
        <br>
        Application info:<br>
          initial mode preference : 2D<br>
          3D content exists       : No<br>
          video format            : ignored (0x0)<br>
          frame rate              : ignored (0x0)<br>
          initial dynamic range   : SDR (0x0)<br>
          provider data           : '                                '<br>
        <br>
        No disc library metadata<br>
        <br>
        ========================<br>
        <br>
        terje@localhost:~> bd_list_titles /dev/sr0<br>
        Main title: 1<br>
        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<br>
        <br>
        <br>
        =========================<br>
        <br>
        <br>
        ffprobe -hide_banner bluray:/dev/sr0 <br>
        [bluray @ 0x560bad897b80] 1 usable playlists:<br>
        [bluray @ 0x560bad897b80] playlist 00000.mpls (0:10:58)<br>
        [bluray @ 0x560bad897b80] selected 00000.mpls<br>
        [mpegts @ 0x560bad898f80] probed stream 2 failed<br>
        [mpegts @ 0x560bad898f80] stream 1 : no PTS found at end of
        file, duration not set<br>
        bluray.c:300: 00000.m2ts: no timestamp for SPN 0 (got 0). clip
        66600-29714400.<br>
        [mpegts @ 0x560bad898f80] Could not find codec parameters for
        stream 2 (Unknown: none): unknown codec<br>
        Consider increasing the value for the 'analyzeduration' (0) and
        'probesize' (5000000) options<br>
        Input #0, mpegts, from 'bluray:/dev/sr0':<br>
          Duration: 00:10:58.92, start: 1.440000, bitrate: 27912 kb/s<br>
          Program 1 <br>
            Metadata:<br>
              service_name    : Service01<br>
              service_provider: FFmpeg<br>
          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<br>
            Side data:<br>
              cpb: bitrate max/min/avg: 25000000/0/0 buffer size:
        7340032 vbv_delay: N/A<br>
          Stream #0:1[0x1100]: Audio: pcm_bluray ([128][0][0][0] /
        0x0080), 48000 Hz, stereo, s16, 1536 kb/s<br>
          No Program<br>
          Stream #0:2[0x1fff]: Unknown: none<br>
        Unsupported codec with id 0 for input stream 2<br>
        <br>
        ===================<br>
        <br>
        terje@localhost:~> udfinfo /dev/sr0<br>
        udfinfo: Warning: Device '/dev/sr0' is busy, udfinfo may report
        bogus information<br>
        udfinfo: Warning: Second and third Anchor Volume Descriptor
        Pointer not found<br>
        udfinfo: Warning: Logical Volume is in inconsistent state<br>
        filename=/dev/sr0<br>
        label=LinuxUDF<br>
        uuid=63890d51c6cae8fc<br>
        lvid=LinuxUDF<br>
        vid=LinuxUDF<br>
        vsid=LinuxUDF<br>
        fsid=LinuxUDF<br>
        fullvsid=63890d51c6cae8fcLinuxUDF<br>
        owner=Linux mkudffs 1.3<br>
        organization=Linux udftools 1.3<br>
        contact=<a class="moz-txt-link-freetext"
          href="https://github.com/pali/udftools/"
          moz-do-not-send="true">https://github.com/pali/udftools/</a><br>
        appid=*Linux mkudffs<br>
        impid=*Linux UDFFS<br>
        winserialnum=0xd72b26b6<br>
        blocksize=2048<br>
        blocks=23652352<br>
        usedblocks=1122679<br>
        freeblocks=3453<br>
        behindblocks=22525690<br>
        numfiles=9<br>
        numdirs=24<br>
        udfrev=2.01<br>
        udfwriterev=2.01<br>
        integrity=opened<br>
        accesstype=overwritable<br>
        softwriteprotect=no<br>
        hardwriteprotect=no<br>
        start=16, blocks=3, type=VRS<br>
        start=256, blocks=1, type=ANCHOR<br>
        start=257, blocks=16, type=MVDS<br>
        start=273, blocks=1, type=LVID<br>
        start=274, blocks=1126132, type=PSPACE<br>
        start=1126646, blocks=16, type=RVDS<br>
        <br>
        #################################<br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        .<br>
        <br>
         <br>
        <br>
        <br>
        <br>
        <br>
      </font> </blockquote>
    <br>
  </body>
</html>