problems with vob to mkv
I'm running into errors with the following which is causing problems with playback. Is this indicative of corrupt input? cat VTS_11_*.VOB | ffmpeg -i - -codec:v libx264 -sn -profile:v high -b:v 1k -maxrate 500k -bufsize 10k -vf scale=-1:720 -s 1280x720 -codec:a ac3 -b:a 128k frozen.mkv ffmpeg version 2.1.5 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 8 2014 20:44:17 with gcc 4.8.3 (GCC) 20140624 (Red Hat 4.8.3-1) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpeg, from 'pipe:': Duration: N/A, start: 0.207756, bitrate: 1344 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 32:27 DAR 16:9], max. 9800 kb/s, 34.50 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x20]: Subtitle: dvd_subtitle Stream #0:3[0x21]: Subtitle: dvd_subtitle Stream #0:4[0x22]: Subtitle: dvd_subtitle Stream #0:5[0x23]: Subtitle: dvd_subtitle Stream #0:6[0x24]: Subtitle: dvd_subtitle Stream #0:7[0x25]: Subtitle: dvd_subtitle Stream #0:8[0x26]: Subtitle: dvd_subtitle Stream #0:9[0x27]: Subtitle: dvd_subtitle Stream #0:10[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:11[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:12[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:13[0x83]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s [libx264 @ 0x1254c20] using SAR=1/1 [libx264 @ 0x1254c20] using cpu capabilities: MMX2 SSE2Fast LZCNT [libx264 @ 0x1254c20] VBV buffer size cannot be smaller than one frame, using 16 kbit [libx264 @ 0x1254c20] profile High, level 3.1 [libx264 @ 0x1254c20] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=16 nal_hrd=none ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'frozen.mkv': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1 kb/s, 1k tbn, 29.97 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (mpeg2video -> libx264) Stream #0:10 -> #0:1 (ac3 -> ac3) [ac3 @ 0x12f6640] frame CRC mismatch1047kB time=00:00:57.97 bitrate= 148.0kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1092kB time=00:01:00.60 bitrate= 147.7kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1176kB time=00:01:05.49 bitrate= 147.1kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1197kB time=00:01:06.71 bitrate= 147.0kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1264kB time=00:01:10.65 bitrate= 146.6kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1289kB time=00:01:12.15 bitrate= 146.4kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1363kB time=00:01:16.60 bitrate= 145.8kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1424kB time=00:01:20.15 bitrate= 145.5kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1490kB time=00:01:24.09 bitrate= 145.1kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1531kB time=00:01:26.49 bitrate= 145.0kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1588kB time=00:01:29.88 bitrate= 144.7kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1633kB time=00:01:32.53 bitrate= 144.6kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1700kB time=00:01:36.41 bitrate= 144.4kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1743kB time=00:01:38.97 bitrate= 144.2kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1800kB time=00:01:42.42 bitrate= 144.0kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1844kB time=00:01:45.01 bitrate= 143.9kbits/s [ac3 @ 0x12f6640] frame CRC mismatch1921kB time=00:01:49.21 bitrate= 144.1kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch1967kB time=00:01:51.70 bitrate= 144.3kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2037kB time=00:01:55.64 bitrate= 144.3kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2083kB time=00:01:58.36 bitrate= 144.2kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2156kB time=00:02:02.13 bitrate= 144.6kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2199kB time=00:02:04.02 bitrate= 145.3kbits/s [ac3 @ 0x12f6640] frame sync error 2224kB time=00:02:05.14 bitrate= 145.6kbits/s Error while decoding stream #0:10: Invalid data found when processing input [matroska @ 0x1256280] Non-monotonous DTS in output stream 0:1; previous: 125115, current: 125109; changing to 125115. This may result in incorrect timestamps in the output file. [ac3 @ 0x12f6640] frame CRC mismatch2280kB time=00:02:06.96 bitrate= 147.1kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2337kB time=00:02:08.91 bitrate= 148.5kbits/s [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2386kB time=00:02:10.99 bitrate= 149.2kbits/s dup=0 drop=2 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2462kB time=00:02:14.45 bitrate= 150.0kbits/s dup=0 drop=2 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2490kB time=00:02:15.86 bitrate= 150.1kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2562kB time=00:02:19.66 bitrate= 150.3kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2611kB time=00:02:22.32 bitrate= 150.3kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2684kB time=00:02:26.58 bitrate= 150.0kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2734kB time=00:02:29.42 bitrate= 149.9kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2828kB time=00:02:34.51 bitrate= 149.9kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input [ac3 @ 0x12f6640] frame CRC mismatch2854kB time=00:02:35.98 bitrate= 149.9kbits/s dup=0 drop=3 [ac3 @ 0x12f6640] frame sync error Error while decoding stream #0:10: Invalid data found when processing input
Le duodi 22 thermidor, an CCXXII, Jason Pollard a écrit :
I'm running into errors with the following which is causing problems with playback. Is this indicative of corrupt input?
Yes, in a certain way.
cat VTS_11_*.VOB | ffmpeg -i - -codec:v libx264 -sn -profile:v high -b:v 1k -maxrate 500k -bufsize 10k -vf scale=-1:720 -s 1280x720 -codec:a ac3 -b:a 128k frozen.mkv
This is not the proper way of extracting a title from a DVD-Video structure. You get all the menus and strange DVD-specific thingies mixed with the actual content you want. That would certainly explain the decoding errors below. mplayer can dump a single VOB file from a DVD title. FFmpeg also has a dvd2concat tool to access the structure directly, but it is a bit tricky to use. Regards, -- Nicolas George
On Sunday, August 10, 2014 4:17 AM, Nicolas George <george@nsup.org> wrote:
Le duodi 22 thermidor, an CCXXII, Jason Pollard a écrit :
I'm running into errors with the following which is causing problems with playback. Is this indicative of corrupt input?
Yes, in a certain way.
cat VTS_11_*.VOB | ffmpeg -i - -codec:v libx264 -sn -profile:v high -b:v 1k -maxrate 500k -bufsize 10k -vf scale=-1:720 -s 1280x720 -codec:a ac3 -b:a 128k frozen.mkv
This is not theonl proper way of extracting a title from a DVD-Video structure. You get all the menus and strange DVD-specific thingies mixed with the actual content you want. That would certainly explain the decoding errors below.
mplayer can dump a single VOB file from a DVD title. FFmpeg also has a dvd2concat tool to access the structure directly, but it is a bit tricky to use.
Regards,
-- Nicolas George
You might also want to check out makemkv(con) it is only free like beer not like speech, but I found it works much better than all of the other FOSS solutions I tried. It can produce mkv's that have the original mpeg2 and original audio, which you can then transcode however you want. -Nicholas Robbins
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I found it works much better than all of the other FOSS solutions I tried. It can produce mkv's that have the original mpeg2 and original audio, which you can then transcode however you want.
Could you point me to your bug report? I have apparently missed it, sorry about that! Carl Eugen
On Sunday, August 10, 2014 9:18 AM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I found it works much better than all of the other FOSS solutions I tried. It can produce mkv's that have the original mpeg2 and original audio, which you can then transcode however you want.
Could you point me to your bug report? I have apparently missed it, sorry about that!
Carl Eugen
I don't have a specific bug, I'll look into the dvd2concat tool soon, I didn't know about it. As I said above, "that I tried." Also, makemkvcon deals with some of the intentionally broken dvd structures that are used as copy protection. -Nicholas Robbins
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I don't have a specific bug, I'll look into the dvd2concat tool soon
As explained, I strongly suggest to use mplayer -dumpstream to produce an input file for FFmpeg. Carl Eugen
On Sunday, August 10, 2014 9:40 AM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I don't have a specific bug, I'll look into the dvd2concat tool soon
As explained, I strongly suggest to use mplayer -dumpstream to produce an input file for FFmpeg.
Carl Eugen
I found that ffmpeg couldn't find the subtitles or chapters in the dumpstream properly. Maybe this has changed since I checked, but I found that I had to pull the subtitles and chapters out, and then put them back in. Plus using mplayer -dumpstream doesn't solve the problem of figuring out which stream to dump. Some dvd's have dozens of similar titles, all but one of which are the original title in scrambled order or somesuch. In my experience it was easier to just use makemkv than to try to sort through the bogus titles by hand. -Nicholas Robbins
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I found that ffmpeg couldn't find the subtitles or chapters in the dumpstream properly.
Command line and complete, uncut console output missing / please specify very large values for probesize and analyzeduration.
Plus using mplayer -dumpstream doesn't solve the problem of figuring out which stream to dump.
That is probably true. Although at least for some DVDs mplayer dvd:// chooses the right track iirc. Carl Eugen
On Sunday, August 10, 2014 10:55 AM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
Nicholas Robbins <nickrobbins-at-yahoo.com <at> ffmpeg.org> writes:
I found that ffmpeg couldn't find the subtitles or chapters in the dumpstream properly.
Command line and complete, uncut console output missing / please specify very large values for probesize and analyzeduration.
I would be happy to do so if I wanted help getting ffmpeg to do this, however, given the next quote, it isn't the tool for this task for me. Also, as I said, it may have been fixed by the larger probesize/analyzeduration fixes which I've seen go across the -devel list.
Plus using mplayer -dumpstream doesn't solve the problem of figuring out which stream to dump.
That is probably true. Although at least for some DVDs mplayer dvd:// chooses the right track iirc.
Carl Eugen
makemkvcon has worked for all of the dvd's I've thrown at it. So I'm sticking with it. Plus it doesn't have the problems of ticket 3308. -Nicholas Robbins -Nick
participants (4)
-
Carl Eugen Hoyos -
Jason Pollard -
Nicholas Robbins -
Nicolas George