Re: [FFmpeg-user] Distorted output when encoding DVD as MP4, error message "ignoring pic cod ext after 0"

2020-06-20 Thread Hans Carlson

On Sat, 20 Jun 2020, M v D wrote:


I'm trying to convert a number of DVDs to MP4. Some of them work, others
result in lots of error messages and distorted output. All of them play
correctly in VLC if I open the IFO file, but the ones that give distorted
output fail to play in DVD if I open the VOB file. I'm using the following
command:

ffmpeg -i 'concat:VTS_02_1.VOB|VTS_02_2.VOB|VTS_02_3.VOB|VTS_02_4.VOB'
out.mp4

What stands out to me is that this message is only present for the DVDs
that fail:

[mpeg2video @ 0x7fffcfcfc0c0] ignoring pic cod ext after 0

More output, including lots of error messages for each frame, is included
below.

Does anyone know what this means and how I can fix it? Thanks in advance
for any help!


The short answer is -- don't do this.  Use mplayer -dumpstream to create a 
single .vob file, then use ffmpeg to convert that .vob to .mp4.


The longer answer is -- unfortunately, there are many links on the web 
that suggest the approach you tried, but as you discovered it doesn't 
always work.  And that's because vob files on a dvd are not as simple as 
they might appear.


There are multiple threads on this subject in the ffmpeg archives, I 
suggest you do a little searching and read through some of them if you 
want to understand why your original approach doesn't always work.


Try searching the ffmpeg mailing list with the following search 
parameters:


  site:lists.ffmpeg.org/pipermail/ffmpeg-user/ vob
  site:lists.ffmpeg.org/pipermail/ffmpeg-user/ dvd

Not everything in those results will be relevant to your question, but you 
should find several threads that are related.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Distorted output when encoding DVD as MP4, error message "ignoring pic cod ext after 0"

2020-06-20 Thread M v D
I'm trying to convert a number of DVDs to MP4. Some of them work, others
result in lots of error messages and distorted output. All of them play
correctly in VLC if I open the IFO file, but the ones that give distorted
output fail to play in DVD if I open the VOB file. I'm using the following
command:

ffmpeg -i 'concat:VTS_02_1.VOB|VTS_02_2.VOB|VTS_02_3.VOB|VTS_02_4.VOB'
out.mp4

What stands out to me is that this message is only present for the DVDs
that fail:

[mpeg2video @ 0x7fffcfcfc0c0] ignoring pic cod ext after 0

More output, including lots of error messages for each frame, is included
below.

Does anyone know what this means and how I can fix it? Thanks in advance
for any help!


--


ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/home/erik/packages
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
[mpeg2video @ 0x7fffcfcfc0c0] ignoring pic cod ext after 0
Input #0, mpeg, from
'concat:VTS_02_1.VOB|VTS_02_2.VOB|VTS_02_3.VOB|VTS_02_4.VOB':
  Duration: 00:00:05.98, start: 0.287267, bitrate: 4707454 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first),
720x576 [SAR 64:45 DAR 16:9], 8500 kb/s, 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:3[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:4[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:5[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:6[0x84]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:7[0x85]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:8[0x86]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg4 (native))
  Stream #0:2 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[ac3 @ 0x7fffcfd24f40] exponent 25 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred
[ac3 @ 0x7fffcfd24f40] expacc 127 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred
[aac @ 0x7fffcfd19240] Using a PCE to encode channel layout "5.1(side)"
[mpeg2video @ 0x7fffcfcff180] ignoring pic cod ext after 0
Error while decoding stream #0:2: Error number -16976906 occurred
[ac3 @ 0x7fffcfd24f40] expacc 125 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred
[ac3 @ 0x7fffcfd24f40] exponent -1 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred
Last message repeated 1 times
[mpeg2video @ 0x7fffcfcff180] warning: first frame is no keyframe
[mpeg2video @ 0x7fffcfcff180] ac-tex damaged at 7 0
[mpeg2video @ 0x7fffcfcff180] ac-tex damaged at 11 20
[mpeg2video @ 0x7fffcfcff180] 00 motion_type at 12 13
[mpeg2video @ 0x7fffcfcff180] 00 motion_type at 5 35
[mpeg2video @ 0x7fffcfcff180] ac-tex damaged at 2 34
[mpeg2video @ 0x7fffcfcff180] Warning MVs not available
[mpeg2video @ 0x7fffcfcff180] concealing 1620 DC, 1620 AC, 1620 MV errors
in P frame
Output #0, mp4, to 'out.mp4':
  Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 720x576 [SAR
64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
  encoder : Lavc58.54.100 mpeg4
Side data:
  cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1(side),
fltp, 394 kb/s
Metadata:
  encoder : Lavc58.54.100 aac
[mpeg2video @ 0x7fffcfcff180] ac-tex damaged at 3 0
[mpeg2video @ 0x7fffcfcff180] Invalid mb type in P-frame at 10 10
[mpeg2video @ 0x7fffcfcff180] 00 motion_type at 18 20
[mpeg2video @ 0x7fffcfcff180] Invalid mb type in P-frame at 13 35
[mpeg2video @ 0x7fffcfcff180] 00 motion_type at 33 31
[mpeg2video @ 0x7fffcfcff180] Warning MVs not available
[mpeg2video @ 0x7fffcfcff180] concealing 945 DC, 945 AC, 945 MV errors in P
frame
concat:VTS_02_1.VOB|VTS_02_2.VOB|VTS_02_3.VOB|VTS_02_4.VOB: corrupt decoded
frame in stream 1
[ac3 @ 0x7fffcfd24f40] exponent -1 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred
[ac3 @ 0x7fffcfd24f40] expacc 127 is out-of-range
[ac3 @ 0x7fffcfd24f40] error decoding the audio block
Error while decoding stream #0:2: Error number -16976906 occurred