[FFmpeg-user] dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

桃源老師 xanadu6291 at dream.jp
Fri May 11 10:31:03 EEST 2018


Hello ffmpeg experts!!

I recently noticed the existence of dvd concat tool named "dvd2concat.pl".

I installed the following dependency to my macOS environment to use this tool.

libdvdcss-1.4.2
libdvdread-6.0.0
lsdvd-0.17

Then run the command like the below and get the answer:

$ $ ./dvd2concat.pl /Volumes/DVD_VIDEO/ > test.vob
libdvdread: Attempting to use device /dev/rdisk13 mounted on /Volumes/DVD_VIDEO for CSS authentication
Couldn't read enough bytes for title.
Using longest title 1

I tested several DVD, both CSS encrypted and not encrypted, the result are same.

I found Nicolas-san answered to similar issue on 2014.  He requested the out put of "lsdvd -Op -x /dev/loop0"? in that mail. So here's similar output.

$ lsdvd -Op -x /Volumes/DVD_VIDEO/
libdvdread: Attempting to use device /dev/rdisk13 mounted on /Volumes/DVD_VIDEO for CSS authentication
Couldn't read enough bytes for title.
our %lsdvd = (
  device => '/Volumes/DVD_VIDEO/',
  title => 'unknown',
  vmg_id => 'DVDVIDEO-VMG',
  provider_id => '',
  track => [
    {
      ix => 1,
      length => 6825.000,
      vts_id => 'DVDVIDEO-VTS',
      vts => 1,
      ttn => 1,
      fps => 29.97,
      format => 'NTSC',
      aspect => '16/9',
      width => 720,
      height => 480,
      df => 'Letterbox',
      palette => [
        '108080',
        '108080',
        '7d8080',
        'd58080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
        '808080',
      ],
      angles => 1,
      audio => [
        {
          ix => 1,
          langcode => 'en',
          language => 'English',
          format => 'ac3',
          frequency => 48000,
          quantization => 'drc',
          channels => 6,
          ap_mode => 0,
          content => 'Undefined',
          streamid => '0x80',
        },
        {
          ix => 2,
          langcode => 'ja',
          language => 'Japanese',
          format => 'ac3',
          frequency => 48000,
          quantization => 'drc',
          channels => 2,
          ap_mode => 0,
          content => 'Undefined',
          streamid => '0x81',
        },
      ],
      chapter => [
        {
          ix => 1,
          length => 428.767,
          startcell => 1,
        },
        {
          ix => 2,
          length => 284.333,
          startcell => 2,
        },
        {
          ix => 3,
          length => 448.600,
          startcell => 3,
        },
        {
          ix => 4,
          length => 153.166,
          startcell => 4,
        },
        {
          ix => 5,
          length => 402.467,
          startcell => 5,
        },
        {
          ix => 6,
          length => 160.667,
          startcell => 6,
        },
        {
          ix => 7,
          length => 148.700,
          startcell => 7,
        },
        {
          ix => 8,
          length => 201.967,
          startcell => 8,
        },
        {
          ix => 9,
          length => 343.967,
          startcell => 9,
        },
        {
          ix => 10,
          length => 352.367,
          startcell => 10,
        },
        {
          ix => 11,
          length => 277.834,
          startcell => 11,
        },
        {
          ix => 12,
          length => 339.600,
          startcell => 12,
        },
        {
          ix => 13,
          length => 171.900,
          startcell => 13,
        },
        {
          ix => 14,
          length => 537.300,
          startcell => 14,
        },
        {
          ix => 15,
          length => 190.200,
          startcell => 15,
        },
        {
          ix => 16,
          length => 423.867,
          startcell => 16,
        },
        {
          ix => 17,
          length => 277.800,
          startcell => 17,
        },
        {
          ix => 18,
          length => 199.967,
          startcell => 18,
        },
        {
          ix => 19,
          length => 372.066,
          startcell => 19,
        },
        {
          ix => 20,
          length => 264.333,
          startcell => 20,
        },
        {
          ix => 21,
          length => 352.066,
          startcell => 21,
        },
        {
          ix => 22,
          length => 493.066,
          startcell => 22,
        },
      ],
      cell => [
        {
          ix => 1,
          length => 428.767,
          first_sector => 0,
          last_sector => 208192,
        },
        {
          ix => 2,
          length => 284.333,
          first_sector => 208193,
          last_sector => 350874,
        },
        {
          ix => 3,
          length => 448.600,
          first_sector => 350875,
          last_sector => 580443,
        },
        {
          ix => 4,
          length => 153.166,
          first_sector => 580444,
          last_sector => 659519,
        },
        {
          ix => 5,
          length => 402.467,
          first_sector => 659520,
          last_sector => 856760,
        },
        {
          ix => 6,
          length => 160.667,
          first_sector => 856761,
          last_sector => 940767,
        },
        {
          ix => 7,
          length => 148.700,
          first_sector => 940768,
          last_sector => 1017429,
        },
        {
          ix => 8,
          length => 201.967,
          first_sector => 1017430,
          last_sector => 1122449,
        },
        {
          ix => 9,
          length => 343.967,
          first_sector => 1122450,
          last_sector => 1296673,
        },
        {
          ix => 10,
          length => 352.367,
          first_sector => 1296674,
          last_sector => 1473180,
        },
        {
          ix => 11,
          length => 277.834,
          first_sector => 1473181,
          last_sector => 1611449,
        },
        {
          ix => 12,
          length => 339.600,
          first_sector => 1611450,
          last_sector => 1780478,
        },
        {
          ix => 13,
          length => 171.900,
          first_sector => 1780479,
          last_sector => 1864297,
        },
        {
          ix => 14,
          length => 537.300,
          first_sector => 1864298,
          last_sector => 2134434,
        },
        {
          ix => 15,
          length => 190.200,
          first_sector => 2134435,
          last_sector => 2230838,
        },
        {
          ix => 16,
          length => 423.867,
          first_sector => 2230839,
          last_sector => 2441251,
        },
        {
          ix => 17,
          length => 277.800,
          first_sector => 2441252,
          last_sector => 2576165,
        },
        {
          ix => 18,
          length => 199.967,
          first_sector => 2576166,
          last_sector => 2679076,
        },
        {
          ix => 19,
          length => 372.066,
          first_sector => 2679077,
          last_sector => 2867449,
        },
        {
          ix => 20,
          length => 264.333,
          first_sector => 2867450,
          last_sector => 3002936,
        },
        {
          ix => 21,
          length => 352.066,
          first_sector => 3002937,
          last_sector => 3181073,
        },
        {
          ix => 22,
          length => 493.066,
          first_sector => 3181074,
          last_sector => 3406302,
        },
      ],
      subp => [
        {
          ix => 1,
          langcode => 'ja',
          language => 'Japanese',
          content => 'Undefined',
          streamid => '0x20',
        },
        {
          ix => 2,
          langcode => 'ja',
          language => 'Japanese',

          content => 'Undefined',
          streamid => '0x21',
        },
      ],
    },
  ],
  longest_track => 1,
);

Can someone help me to solve this issue?


Best Regards,


// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3860 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20180511/e3532899/attachment.bin>


More information about the ffmpeg-user mailing list