4

I am making backups of my DVDs. For this I use dvdbackup to rip the DVD, and cat and ffmpeg to convert it to a single .mp4 file.

Here is the problem: some films have text on the screen in the movie (for exampel "5 years ago"). Some of those films translate those parts in different languages. When I watch the movie using the dvd the text is just shown in English (I am not even sure how to change it in mpv). When I rip the film, every language is shown for about a second, switching between the languages untill everything has been shown in its entirety. The audio also repeats in the same way. This is a problem with the original ripped .VOB files. Converting to .mp4 does not change anything.

mpv does give the following warning:

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto` as they may help.

Invalid video timestamp: 1.090111 -> -0.069889
[ffmpeg/audio] ac3: expacc 125 is out-of-range
[ffmpeg/audio] ac3: error decoding the audio block
Error decoding audio.
Invalid audio PTS: 0.986111 -> -0.229889
Invalid video timestamp: 1.090111 -> -0.069889
[ffmpeg/audio] ac3: exponent -2 is out-of-range
[ffmpeg/audio] ac3: error decoding the audio block
Error decoding audio.
Invalid audio PTS: 2.170111 -> 1.018111
Invalid video timestamp: 2.290111 -> 1.130111
[ffmpeg/audio] ac3: exponent -2 is out-of-range
[ffmpeg/audio] ac3: error decoding the audio block
Error decoding audio.
Invalid audio PTS: 2.170111 -> 1.018111
Invalid video timestamp: 2.290111 -> 1.130111
Error decoding audio.
Invalid audio PTS: 3.386111 -> 2.202111
Invalid video timestamp: 3.490111 -> 2.330111
Error decoding audio.

This repeats some more times, only different timestamps.

--profile=fast and --hwdex=auto don't seem to change anything.

When playing the film of of the dvd, mpv just says:

[disc] PTS discontinuity: 25.207267->0.217378
[disc] PTS discontinuity: 0.217378->25.055267
[disc] PTS discontinuity: 25.055267->0.057378
Invalid audio PTS: 24.960000 -> 25.184000
[disc] PTS discontinuity: 9.497378->0.087767

I cannot find any real differences between the streams or anything when I use ffprobe to compare a .VOB file where this goes wrong with one where it doesn't.

Input #0, mpeg, from 'VIDEO_TS/VTS_02_1.VOB':
  Duration: 00:19:01.56, start: 0.287267, bitrate: 7521 kb/s
  Stream #0:0[0x1bf]: Data: dvd_nav_packet, start 0.287267
  Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m, progressive), 720x576 [SAR 64:45 DAR 16:9], 5000 kb/s, 25 fps, 25 tbr, 90k tbn, start 0.287267
    Side data:
      cpb: bitrate max/min/avg: 7400000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:2[0x20]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:3[0x21]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:4[0x22]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:5[0x23]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:6[0x24]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:7[0x25]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:8[0x26]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:9[0x27]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:10[0x28]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:11[0x29]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:12[0x2a]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:13[0x2b]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:14[0x2c]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:15[0x2d]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:16[0x2e]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:17[0x2f]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:18[0x30]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:19[0x31]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:20[0x32]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:21[0x33]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:22[0x34]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:23[0x35]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:24[0x36]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:25[0x37]: Subtitle: dvd_subtitle (dvdsub), start 0.287267
  Stream #0:26[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s, start 0.287267
  Stream #0:27[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s, start 0.287267
  Stream #0:28[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s, start 0.287267
  Stream #0:29[0x83]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s, start 0.287267
  Stream #0:30[0x84]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s, start 0.287267e

The only difference I can find is that the .VOB files that have different languages have a few subtitle streams more (4 more streams and the text is displayed in 3 languages).

I have no idea what this could be and no idea what information could be important.

Does anyone know what this is and how I can make it so that only the English text is shown and the film runs more smoothly?

1 Answer 1

4

Those are multi-angle movies, where the same video part for different languages is present multiple times. Those multi-angle DVDs are pretty rare, only the Star Wars movies and the movie 'Closer' in my collection of about 2,000 DVDs have these. There was a time in the early 2000’s where some porn DVDs made heavy use of this feature.

You will have to rip the movie a different way than only playing the VOB files.

Using mpv’s predecessor mplayer, I always do it the following way, I’m sure mpv will probably do it the same way:

This dumps angle 1 of title 1 from the ISO file DVD.ISO into the file 1.vob

mplayer -dvd-device DVD.ISO -dvdangle 1 dvd://1 -dumpstream -dumpfile 1.vob

If you don’t have the ISO, but only the ripped VOB files, you need the VIDEO_TS.IFO file as well, because the chapter information is stored in there, and there is (to my knowledge) no way of fixing the issue without it.

If you have all files together, but not the ISO anymore, mplayer can handle that as well, this time simply put all files into the directory 'dir', and run the command as follows:

mplayer -dvd-device dir -dvdangle 1 dvd://1 -dumpstream -dumpfile 1.vob

I’m sure mpv has a similar dumpstream feature as mplayer had.

1
  • 3
    I don't think it is that rare. I only have ~150 films and at least 3 of them have this problem/feature. I am going to test it a bit better but this seems to work (mpv dvd:// --stream-dump=1.vob) I will mark it as solved once I have tested Commented 17 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.