Andreas Trottmann <[email protected]> added the comment:
I have a different file that gets misdetected after r22111.
Reverting r22111 makes it work correctly until r22831.
Reverting both r22111 and r22831 makes it work again with latest SVN.
I uploaded the file on upload.ffmpeg.org into
/MPlayer/incoming/issue_1871/issue_1871_misdetected_as_mp3.ts
The file is a MPEG-2 TS with MP2 audio and MPEG-2 video. Current, unpatched SVN
misdetects the audio as MP3 and then fails to decode it:
> ./ffmpeg -v 9 -loglevel 99 -i ~/issue_1871_misdetected_as_mp3.ts out.mpg
FFmpeg version SVN-r23642, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 18 2010 18:20:55 with gcc 4.3.2
configuration:
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
[NULL @ 0x110e470]Probed with size=2048 and score=100
[mpegts @ 0x110e470]stream=0 stream_type=0 pid=14d prog_reg_desc=
[mpegts @ 0x110e470]probing stream 0
Last message repeated 2 times
[mpegts @ 0x110e470]Probe with size=131489, packets=3 detected mpegvideo with
score=51
[mpegts @ 0x110e470]probed stream 0
[mpeg2video @ 0x1111990]mpeg_decode_postinit() failure
Last message repeated 1 times
[mpegts @ 0x110e470]stream=1 stream_type=0 pid=1b1 prog_reg_desc=
[mpegts @ 0x110e470]probing stream 1
Last message repeated 11 times
[mpegts @ 0x110e470]Probe with size=5872, packets=12 detected mp3 with score=51
[mpegts @ 0x110e470]probed stream 1
[mp3 @ 0x11164f0]Header missing
Last message repeated 9 times
[mp3 @ 0x11164f0]incorrect frame size
Input #0, mpegts, from '/home/ftc/issue_1871_misdetected_as_mp3.ts':
Duration: 00:00:05.00, start: 15623.322889, bitrate: 8000 kb/s
Stream #0.0[0x14d], 123, 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR
16:15 DAR 4:3], 1/50, 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1b1], 20, 1/90000: Audio: mp3, 48000 Hz, 2 channels, s16, 192
kb/s
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf52.68.0
Stream #0.0, 0, 1/90000: Video: mpeg1video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1, 0, 1/90000: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
*** 4 dup!
[mp3 @ 0x11164f0]Header missing
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Error while decoding stream #0.1
Last message repeated 10 times
[mp3 @ 0x11164f0]incorrect frame size
Multiple frames in a packet from stream 1
Multiple frames in a packet from stream 1
Multiple frames in a packet from stream 1
(... etc ...)
Reverting both r22111 and r22831 gives the following, correct result:
> ./ffmpeg -v 9 -loglevel 99 -i ~/issue_1871_misdetected_as_mp3.ts out.mpg
FFmpeg version SVN-r23642, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 18 2010 18:20:55 with gcc 4.3.2
configuration:
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
[NULL @ 0x110e470]Probed with size=2048 and score=100
[mpegts @ 0x110e470]stream=0 stream_type=0 pid=14d prog_reg_desc=
[mpegts @ 0x110e470]probing stream 0
Last message repeated 2 times
[mpegts @ 0x110e470]Probe with size=131489, packets=3 detected mpegvideo with
score=51
[mpegts @ 0x110e470]probed stream 0
[mpeg2video @ 0x1111990]mpeg_decode_postinit() failure
Last message repeated 1 times
[mpegts @ 0x110e470]stream=1 stream_type=0 pid=1b1 prog_reg_desc=
[mpegts @ 0x110e470]probing stream 1
[mpegts @ 0x110e470]Probe with size=5872, packets=1 detected mp3 with score=25
[mpegts @ 0x110e470]probed stream 1
[mp2 @ 0x11164f0]Header missing
Input #0, mpegts, from '/home/ftc/issue_1871_misdetected_as_mp3.ts':
Duration: 00:00:05.00, start: 15623.322889, bitrate: 8000 kb/s
Stream #0.0[0x14d], 123, 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR
16:15 DAR 4:3], 1/50, 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1b1], 200, 1/90000: Audio: mp2, 48000 Hz, 2 channels, s16, 192
kb/s
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf52.68.0
Stream #0.0, 0, 1/90000: Video: mpeg1video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1, 0, 1/90000: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
*** 4 dup!
[mp2 @ 0x11164f0]Header missing
Error while decoding stream #0.1
[mpeg2video @ 0x1111990]ac-tex damaged at 26 26=3.07 bitrate=1157.3kbits/s dup=4
drop=0
[mpeg2video @ 0x1111990]Warning MVs not available
[mpeg2video @ 0x1111990]concealing 450 DC, 450 AC, 450 MV errors
[mp2 @ 0x11164f0]incomplete frame
Error while decoding stream #0.1
frame= 123 fps= 0 q=31.0 Lsize= 564kB time=4.75 bitrate= 972.3kbits/s
dup=4 drop=0
video:521kB audio:37kB global headers:0kB muxing overhead 1.099155%
Video is treated correctly in any case.
----------
status: closed -> open
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue1871>
________________________________________________