New submission from Jean Delvare <[email protected]>:

ffmpeg crashes when an input MPEG 2 file has error in its audio track, with an
assertion error:

kh...@endymion:~/recordings> ffmpeg -i sample2.mpg -vcodec libxvid -b 896k
-async 24000 -acodec libmp3lame -ab 128k sample2.avi
FFmpeg version SVN-r26281, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan  9 2011 10:23:50 with gcc 4.5.0 20100604 [gcc-4_5-branch revision
160292]
  configuration: --prefix=/opt/ffmpeg --enable-shared --enable-libmp3lame
--enable-libxvid --enable-postproc --enable-gpl --enable-x11grab
--enable-avfilter --enable-version3 --enable-libx264 --enable-libfaac
--enable-nonfree --enable-pthreads --enable-libvorbis
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate: 100.00
(100/1) -> 50.00 (100/2)
Input #0, mpeg, from 'sample2.mpg':
  Duration: 00:00:02.77, start: 0.245800, bitrate: 2327 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
16:9], 9500 kb/s, 25.37 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 256 kb/s
[buffer @ 0x62e550] w:720 h:576 pixfmt:yuv420p
Output #0, avi, to 'sample2.avi':
  Metadata:
    ISFT            : Lavf52.92.0
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31,
896 kb/s, 50 tbn, 50 tbc
    Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding

[mp2 @ 0x62dac0] Header missing
Error while decoding stream #0.1
[mpeg2video @ 0x627fa0] ac-tex damaged at 0 5
[mpeg2video @ 0x627fa0] Warning MVs not available
[mpeg2video @ 0x627fa0] concealing 270 DC, 270 AC, 270 MV errors

Assertion ost->audio_resample failed at ffmpeg.c:901
Abandon
kh...@endymion:~/recordings>

The problem goes away if I remove the "-async 24000" option, which I need to
keep the audio and video streams in sync when they contain errors.

I have a 788 kB video sample I can share, to reproduce the issue.

The problem is relatively recent, I'd say it started in December 2010. r25702
doesn't have the problem, r26281 does.

----------
messages: 13314
priority: normal
status: new
substatus: new
title: Assertion ost->audio_resample failed at ffmpeg.c:901
topic: ffmpeg, regression
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2516>
________________________________________________

Reply via email to