Opened 5 years ago

Closed 4 years ago

#1376 closed defect (fixed)

avfilter crash

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

http://samples.mplayerhq.hu/V-codecs/PGVV-RadiusStudio/airfone.mov

(gdb) r -acodec real_144 -i airfone.mov -vn -acodec mp2 -f null -
Starting program: d:\mingw\msys\1.0\ffmpeg-head-ab7d6cb\ffmpeg_g.exe -acodec rea
l_144 -i airfone.mov -vn -acodec mp2 -f null -
[New Thread 2972.0xe94]
ffmpeg version 0.10.2.git-ab7d6cb Copyright (c) 2000-2012 the FFmpeg developers
  built on May 27 2012 11:57:57 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03bc2340] max_analyze_duration 5000000 reached at 500
0000
[mov,mp4,m4a,3gp,3g2,mj2 @ 03bc2340] Could not find codec parameters (Video: non
e (PGVV / 0x56564750), 160x120, 467 kb/s)
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'airfone.mov':
  Metadata:
    creation_time   : 1994-12-29 22:24:20
  Duration: 00:00:32.03, start: 0.000000, bitrate: 824 kb/s
    Stream #0:0(eng): Video: none (PGVV / 0x56564750), 160x120, 467 kb/s, 14.20
fps, 15 tbr, 30 tbn, 30 tbc
    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: real_144 (raw  / 0x20776172), 22254 Hz, stereo, s16

    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
[aformat @ 03bd8da0] auto-inserting filter 'auto-inserted resampler 0' between t
he filter 'src' and the filter 'aformat'
[aresample @ 03bd85a0] chl:stereo fmt:s16 r:22254Hz -> chl:stereo fmt:s16 r:2205
0Hz
Output #0, null, to 'pipe:':
  Metadata:
    creation_time   : 1994-12-29 22:24:20
    encoder         : Lavf54.6.101
    Stream #0:0(eng): Audio: mp2, 22050 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:1 -> #0:0 (real_144 -> mp2)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[real_144 @ 03bccbc0] Frame too small (8 bytes). Truncated file?

Program received signal SIGSEGV, Segmentation fault.
0x0041c8d9 in avfilter_copy_buffer_ref_props (dst=0x0, src=0x3be4ec0)
    at libavfilter/buffer.c:240
240         dst->pts             = src->pts;
(gdb) bt
#0  0x0041c8d9 in avfilter_copy_buffer_ref_props (dst=0x0, src=0x3be4ec0)
    at libavfilter/buffer.c:240
#1  0x0042299a in filter_samples (inlink=0x3bd8820, insamplesref=0x3be4ec0)
    at libavfilter/af_aresample.c:178
#2  0x0042089c in ff_filter_samples (link=0x3bd8820, samplesref=0x3be4ec0)
    at libavfilter/audio.c:217
#3  0x0041cad0 in request_frame (link=0x3bd8820)
    at libavfilter/buffersrc.c:392
#4  0x00419d93 in avfilter_request_frame (link=0x3bd8820)
    at libavfilter/avfilter.c:275
#5  0x00422811 in request_frame (outlink=0x3bd9120)
    at libavfilter/af_aresample.c:214
#6  0x00419d93 in avfilter_request_frame (link=0x3bd8760)
    at libavfilter/avfilter.c:275
#7  0x0041be80 in av_buffersink_read (ctx=0x3bd8a20, buf=0x22e47c)
    at libavfilter/buffersink.c:108
#8  0x0041bfb4 in av_buffersink_read_samples (ctx=0x3bd8a20, pbuf=0x22e8b4,
    nb_samples=1152) at libavfilter/buffersink.c:159
#9  0x00407bab in poll_filters () at ffmpeg.c:2125
#10 0x0040e730 in transcode () at ffmpeg.c:3662
#11 0x00b14ee2 in main (argc=11, argv=0x3bd0e20) at ffmpeg.c:5926
(gdb)

Change History (19)

comment:1 Changed 5 years ago by cehoyos

I get no invalid memory accesses with valgrind, could you test current git head?

comment:2 Changed 5 years ago by ami_stuff

Still crashes here, please try to reproduce with another file - looks like the same issue:

http://samples.mplayerhq.hu/V-codecs/MPG3/mpg3.avi

C:\>ffmpeg -acodec pcm_s32le -i mpg3.avi -vn -f null -
ffmpeg version N-41116-g8619362 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 30 2012 02:20:05 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'mpg3.avi':
  Duration: 02:02:54.36, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Video: msmpeg4 (MPG3 / 0x3347504D), yuv420p, 704x512, 25 tbr, 2
5 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s32le (U[0][0][0] / 0x0055), 44100 Hz, stereo, s32,
2822 kb/s
[aformat @ 0x1de2ba0] auto-inserting filter 'auto-inserted resampler 0' between
the filter 'src' and the filter 'aformat'
[aresample @ 0x1de24a0] chl:stereo fmt:s32 r:44100Hz -> chl:stereo fmt:s16 r:441
00Hz
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.6.101
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s32le -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[pcm_s32le @ 0x23463e0] invalid PCM packet
Error while decoding stream #0:1

C:\>
(gdb) r -acodec pcm_s32le -i mpg3.avi -vn out.mp2
Starting program: d:\mingw\msys\1.0\ffmpeg-head-ab7d6cb\ffmpeg_g.exe -acodec pcm
_s32le -i mpg3.avi -vn out.mp2
[New Thread 3292.0x32c]
ffmpeg version 0.10.2.git-ab7d6cb Copyright (c) 2000-2012 the FFmpeg developers
  built on May 27 2012 11:57:57 with gcc 4.6.1
  configuration: --disable-ffprobe --enable-gpl
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'mpg3.avi':
  Duration: 02:02:54.36, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Video: msmpeg4 (MPG3 / 0x3347504D), yuv420p, 704x512, 25 tbr, 2
5 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s32le (U[0][0][0] / 0x0055), 44100 Hz, stereo, s32,
2822 kb/s
auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and t
he filter 'aformat'
[aresample @ 03bd2540] chl:stereo fmt:s32 r:44100Hz -> chl:stereo fmt:s16 r:4410
0Hz
Output #0, mp2, to 'out.mp2':
  Metadata:
    encoder         : Lavf54.6.101
    Stream #0:0: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s32le -> mp2)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[pcm_s32le @ 03bccbc0] invalid PCM packet
Error while decoding stream #0:1

Program received signal SIGSEGV, Segmentation fault.
0x0041c8d9 in avfilter_copy_buffer_ref_props (dst=0x0, src=0x3bd45c0)
    at libavfilter/buffer.c:240
240         dst->pts             = src->pts;
(gdb) bt
#0  0x0041c8d9 in avfilter_copy_buffer_ref_props (dst=0x0, src=0x3bd45c0)
    at libavfilter/buffer.c:240
#1  0x0042299a in filter_samples (inlink=0x3bd2920, insamplesref=0x3bd45c0)
    at libavfilter/af_aresample.c:178
#2  0x0042089c in ff_filter_samples (link=0x3bd2920, samplesref=0x3bd45c0)
    at libavfilter/audio.c:217
#3  0x0041cad0 in request_frame (link=0x3bd2920)
    at libavfilter/buffersrc.c:392
#4  0x00419d93 in avfilter_request_frame (link=0x3bd2920)
    at libavfilter/avfilter.c:275
#5  0x00422811 in request_frame (outlink=0x3bd3120)
    at libavfilter/af_aresample.c:214
#6  0x00419d93 in avfilter_request_frame (link=0x3bd2880)
    at libavfilter/avfilter.c:275
#7  0x0041be80 in av_buffersink_read (ctx=0x3bd2aa0, buf=0x22e47c)
    at libavfilter/buffersink.c:108
#8  0x0041bfb4 in av_buffersink_read_samples (ctx=0x3bd2aa0, pbuf=0x22e8b4,
    nb_samples=1152) at libavfilter/buffersink.c:159
#9  0x00407bab in poll_filters () at ffmpeg.c:2125
#10 0x0040e730 in transcode () at ffmpeg.c:3662
#11 0x00b14ee2 in main (argc=7, argv=0x3bd0dc0) at ffmpeg.c:5926
(gdb)
Last edited 5 years ago by ami_stuff (previous) (diff)

comment:3 Changed 5 years ago by cehoyos

valgrind still reports no errors (and I get no crash).

comment:4 Changed 5 years ago by ami_stuff

crashes here with (not my build):

C:\>ffmpeg
ffmpeg version N-41228-g0bae666 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun  2 2012 02:39:18 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc

and

http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120601-git-8a0efa9-win32-static.7z
(maybe can be reproduced with wine?)

comment:5 Changed 4 years ago by saste

Please try again with latest git, I did some relevant changes to the code so it may be fixed (or should fail with more grace at least). I can't reproduce the crash here with both samples.

comment:6 Changed 4 years ago by ami_stuff

tested, but unfortunately nothing changed:

(gdb) r -acodec real_144 -i airfone.mov -vn -acodec mp2 -f null -
Starting program: d:\mingw\msys\1.0\ffmpeg-head-ab7d6cb\ffmpegx.exe -acodec real
_144 -i airfone.mov -vn -acodec mp2 -f null -
[New Thread 2224.0x89c]
ffmpeg version N-41820-g13ba872 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 22 2012 10:52:39 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bz  libavutil      51. 60.100 / 51. 60.100
  libavcodec     54. 29.100 / 54. 29.100
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 82.100 /  2. 82.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e02340] max_analyze_duration 5000000 reached at 50
00000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e02340] Could not find codec parameters (Video: no
ne (PGVV / 0x56564750), 160x120, 467 kb/s)
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'airfone.mov':
  Metadata:
    creation_time   : 1994-12-29 22:24:20
  Duration: 00:00:32.03, start: 0.000000, bitrate: 824 kb/s
    Stream #0:0(eng): Video: none (PGVV / 0x56564750), 160x120, 467 kb/s, 14.20
fps, 15 tbr, 30 tbn, 30 tbc
    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: real_144 (raw  / 0x20776172), 22254 Hz, stereo, s16

    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
[aformat @ 0x1e188a0] auto-inserting filter 'auto-inserted resampler 0' between
the filter 'Parsed_anull_0' and the filter 'aformat'
[auto-inserted resampler 0 @ 0x1e199a0] chl:stereo fmt:s16 r:22254Hz -> chl:ster
eo fmt:s16 r:22050Hz
Output #0, null, to 'pipe:':
  Metadata:
    creation_time   : 1994-12-29 22:24:20
    encoder         : Lavf54.11.100
    Stream #0:0(eng): Audio: mp2, 22050 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 1994-12-29 22:24:20
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:1 -> #0:0 (real_144 -> mp2)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[real_144 @ 0x1e0cbc0] Frame too small (8 bytes). Truncated file?

Program received signal SIGSEGV, Segmentation fault.
0x0041fa9f in ?? ()
(gdb)

comment:7 Changed 4 years ago by michael

no crash on linux 32 & 64 bit, nothing to see with valgrind on 64bit linux here

comment:8 Changed 4 years ago by ami_stuff

does not crash with "--disable-asm"

comment:9 Changed 4 years ago by cehoyos

Which CPU are you using? Is this with a 32-bit executable?

comment:10 Changed 4 years ago by ami_stuff

Athlon XP

comment:11 Changed 4 years ago by ami_stuff

also does not crash with "-cpuflags -sse"

comment:12 follow-up: Changed 4 years ago by tadawson

As per request by cehoyos in #1464, I tested this:

AMD Phenom 940, Quad core at 3GHz, 3GB RAM . . .

ffmpeg version N-42235-g039e9fe Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  4 2012 17:20:56 with gcc 4.2.4
  configuration: --disable-asm --enable-libmp3lame --enable-libx264 --enable-gpl
 --enable-libfaac --enable-nonfree --prefix=/usr/local/ffmpeg-GIT
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 32.100 / 54. 32.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'mpg3.avi':
  Duration: 02:02:54.36, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Video: msmpeg4 (MPG3 / 0x3347504D), yuv420p, 704x512, 25 tbr, 2
5 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s32le (U[0][0][0] / 0x0055), 44100 Hz, stereo, s32,
2822 kb/s
[graph 0 input from stream 0:1 @ 0x8e0a660] tb:1/15963 samplefmt:s32 samplerate:
44100 chlayout:0x3
[auto-inserted resampler 0 @ 0x8dffbc0] chl:stereo fmt:s32 r:44100Hz -> chl:ster
eo fmt:s16 r:44100Hz
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.14.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s32le -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 7 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 3 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 3 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 4 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 7 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 4 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 6 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 2 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
.
.
.
Error while decoding stream #0:1: Invalid data found when processing input
size=       0kB time=00:00:13.60 bitrate=   0.0kbits/s    ^M
video:0kB audio:106kB subtitle:0 global headers:0kB muxing overhead -100.000000%

Without --disable-asm, it's pretty much the same thing, so no, I cannot duplicate the crash.

  • Tim
Last edited 4 years ago by cehoyos (previous) (diff)

comment:13 follow-up: Changed 4 years ago by tadawson

Noting that the original ticket is on 10.2, I retested on 10.3 (the closest I have at the moment). Built as per the submitters options, and no crash, but still not that happy:

ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers

built on Jul 5 2012 01:49:08 with gcc 4.2.4
configuration: --enable-gpl --disable-ffprobe --prefix=/usr/local/ffmpeg-10.3
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

Input #0, avi, from 'mpg3.avi':

Duration: 02:02:54.36, start: 0.000000, bitrate: 0 kb/s

Stream #0:0: Video: msmpeg4 (MPG3 / 0x3347504D), yuv420p, 704x512, 25 tbr, 2

5 tbn, 25 tbc

Stream #0:1: Audio: pcm_s32le (U[0][0][0] / 0x0055), 44100 Hz, 2 channels, s

32, 2822 kb/s
Incompatible sample format 's32' for codec 'pcm_s16le', auto-selecting format 's
16'
Output #0, null, to 'pipe:':

Metadata:

encoder : Lavf53.32.100
Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s

Stream mapping:

Stream #0:1 -> #0:0 (pcm_s32le -> pcm_s16le)

Press [q] to stop, ? for help
Multiple frames in a packet from stream 1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1
[pcm_s32le @ 0x8e48880] invalid PCM packet
Error while decoding stream #0:1

Version 0, edited 4 years ago by tadawson (next)

comment:14 in reply to: ↑ 13 Changed 4 years ago by cehoyos

Replying to tadawson:

Noting that the original ticket is on 10.2, I retested on 10.3 (the closest I have at the moment). Built as per the submitters options, and no crash, but still not that happy:

The command is not supposed to do something useful, it just shouldn't crash...

Thank you for testing!

comment:15 in reply to: ↑ 12 Changed 4 years ago by ami_stuff

Replying to tadawson:

As per request by cehoyos in #1464, I tested this:

AMD Phenom 940, Quad core at 3GHz, 3GB RAM . . .

ffmpeg version N-42235-g039e9fe Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  4 2012 17:20:56 with gcc 4.2.4
  configuration: --disable-asm --enable-libmp3lame --enable-libx264 --enable-gpl
 --enable-libfaac --enable-nonfree --prefix=/usr/local/ffmpeg-GIT
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 32.100 / 54. 32.100
  libavformat    54. 14.100 / 54. 14.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'mpg3.avi':
  Duration: 02:02:54.36, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0: Video: msmpeg4 (MPG3 / 0x3347504D), yuv420p, 704x512, 25 tbr, 2
5 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s32le (U[0][0][0] / 0x0055), 44100 Hz, stereo, s32,
2822 kb/s
[graph 0 input from stream 0:1 @ 0x8e0a660] tb:1/15963 samplefmt:s32 samplerate:
44100 chlayout:0x3
[auto-inserted resampler 0 @ 0x8dffbc0] chl:stereo fmt:s32 r:44100Hz -> chl:ster
eo fmt:s16 r:44100Hz
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.14.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s32le -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 7 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 3 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 3 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 4 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 1 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 5 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 7 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 4 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 6 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
[pcm_s32le @ 0x8e0b130] Invalid PCM packet, data has size 2 but at least a size
of 8 was expected
Error while decoding stream #0:1: Invalid data found when processing input
.
.
.
Error while decoding stream #0:1: Invalid data found when processing input
size=       0kB time=00:00:13.60 bitrate=   0.0kbits/s    ^M
video:0kB audio:106kB subtitle:0 global headers:0kB muxing overhead -100.000000%

Without --disable-asm, it's pretty much the same thing, so no, I cannot duplicate the crash.

  • Tim

Maybe you could test with "-cpuflags -sse2"?

ffmpeg -cpuflags -sse2 -threads 1 -acodec real_144 -i airfone.mov -vn -acodec mp2 -f null -

be sure to use normal build for test, not "--disable-asm".

comment:16 follow-up: Changed 4 years ago by tadawson

Understood. I have been working a different problem with ffmpeg on 1464 which had required that to get a stable build at all, and hence my commentary to that effect here. That has been resolved, so it won't be used moving forward. Note that my last test with the 10.2 tree was with the exact compile options used by the submitter of this ticket. I believe that the command used in test was the exact one in the ticket, with the "-cpuflags -sse2", although when testing with ffmpeg 0.10.3 (the closest I have to the ticket), I was getting an error that that was not a valid flag, hence it was omitted in that test case. Note my comment in the test output of the GIT head - with or without the --disable-asm, I get the same result, so I did not post the test output for the test without --disable-asm.

I do have an older system here with an actual Athlon-XP in it . . . If I find some time, I'll spin it up and test on the exact same architecture.

comment:17 in reply to: ↑ 16 Changed 4 years ago by ami_stuff

I do have an older system here with an actual Athlon-XP in it . . . If I find some time, I'll spin it up and test on the exact same architecture.

Please test

ffmpeg -acodec pcm_s32le -i mpg3.avi -vn -f null -

because "airfone.mov" sample doesn't crash here anymore since two days (snapshots).

comment:18 Changed 4 years ago by ami_stuff

mpg3.avi still crashes here (it doesn't with "-cpuflags -mmx")

Last edited 4 years ago by ami_stuff (previous) (diff)

comment:19 Changed 4 years ago by ami_stuff

  • Resolution set to fixed
  • Status changed from new to closed

hm, "fixed"

Note: See TracTickets for help on using tickets.