dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

桃源老師-2
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


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

Nicolas George
Hi.

桃源老師 (2018-05-11):

> 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.
The output you are seeing are harmless diagnosis. You neglected to say
what problem you are experiencing. It seems dvd2concat is doing its job.

Regards,

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

桃源老師-2
Hello Nicolas-san,

Thanks for your prompt reply...

> 2018/05/11 午後6:30、Nicolas George <[hidden email]>のメール:
>
> Hi.
>
> 桃源老師 (2018-05-11):
>> 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.
>
> The output you are seeing are harmless diagnosis. You neglected to say
> what problem you are experiencing. It seems dvd2concat is doing its job.
My problem is that even though lsdvd itself is seems to working, dvd2concat immediately exits after "Couldn't read enough bytes for title." message.  The resulting file test.vob is just 2944 bytes in size.  
In my thought, the size of test.vob should be close to DVD_VIDEO size.  Also it may take much more time to get resulting file.  Am I doing any wrong?


Best Regards,



// Miya aka. TougenRoushi


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

桃源老師-2
This is self response to correct my misunderstanding...

> 2018/05/11 午後7:47、桃源老師 <[hidden email]>のメール:
>
> My problem is that even though lsdvd itself is seems to working, dvd2concat immediately exits after "Couldn't read enough bytes for title." message.  The resulting file test.vob is just 2944 bytes in size.  
> In my thought, the size of test.vob should be close to DVD_VIDEO size.  Also it may take much more time to get resulting file.  Am I doing any wrong?

dvd2concat never outputs VOB file.  It outputs a text file which contains VOB relationship.

The resulting text file can be used with ffmpeg or ffplay like the following:

$ ffplay -f concat -safe 0 -protocol_whitelist "file,subfile,concat" \
-i dvd_video.concat

$ ffmpeg -f concat \
-safe 0 -protocol_whitelist "file,subfile,concat" \
-i dvd_video.concat \
-c:v libx265 -preset medium -tag:v hvc1 -crf 23 \
-c:a libfdk_aac dvd_video.mp4

I have written a guide to use dvd2concat in Japanese.  Here's the link:

https://xanadu6291.stars.ne.jp/?p=572


Best Regards,


// Miya aka. TougenRoushi


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: dvd2concat.pl fails with lsdvd's "Couldn't read enough bytes for title." message

Nicolas George
桃源老師 (2018-05-12):
> dvd2concat never outputs VOB file.  It outputs a text file which contains VOB relationship.
>
> The resulting text file can be used with ffmpeg or ffplay like the following:

This information is accurate, it is what I would have answered if you
had not beat me to it.

Regards,

--
  Nicolas George

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

signature.asc (849 bytes) Download Attachment