Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1893 closed defect (fixed)

ra_288: ffmpeg eats the whole available memory

Reported by: ami_stuff Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: OOM
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

ffmpeg eats the whole available memory with attached file (~10mb/s)

http://www.datafilehost.com/download-627c7d51.html

C:\>ffmpeg -i mem.rm -f null -
ffmpeg version N-46283-g1475815 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  2 2012 02:31:20 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  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-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52.  1.100 / 52.  1.100
  libavcodec     54. 70.100 / 54. 70.100
  libavformat    54. 35.100 / 54. 35.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, rm, from 'mem.rm':
  Metadata:
    title           : Dick Dale & His Del-Tones / Misirlou
    author          :
    copyright       :
    comment         : EAC secure - ripped by juans for www.enkeywebsite.net
  Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
    Stream #0:0: Audio: ra_288 (28[95]8 / 0x385F3832), 44100 Hz, stereo, flt
Output #0, null, to 'pipe:':
  Metadata:
    title           : Dick Dale & His Del-Tones / Misirlou
    author          :
    copyright       :
    comment         : EAC secure - ripped by juans for www.enkeywebsite.net
    encoder         : Lavf54.35.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (real_288 -> pcm_s16le)
Press [q] to stop, [?] for help
[output stream 0:0 @ 0x1fc1500] 100 buffers queued in output stream 0:0, somethi
ng may be wrong.
[output stream 0:0 @ 0x1fc1500] 1000 buffers queued in output stream 0:0, someth
ing may be wrong.
[output stream 0:0 @ 0x1fc1500] 10000 buffers queued in output stream 0:0, somet
hing may be wrong.
[output stream 0:0 @ 0x1fc1500] 100000 buffers queued in output stream 0:0, some
thing may be wrong.
Received signal 2: terminating.
^C

Change History (7)

comment:1 Changed 7 years ago by cehoyos

  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 7 years ago by ami_stuff

the same issue

http://samples.mplayerhq.hu/A-codecs/CreativeADPCM8bit/unkpacked/BBC_3BIT.VOC

C:\>ffmpeg -acodec atrac1 -i BBC_3BIT.VOC -f null -
ffmpeg version N-46283-g1475815 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  2 2012 02:31:20 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  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-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52.  1.100 / 52.  1.100
  libavcodec     54. 70.100 / 54. 70.100
  libavformat    54. 35.100 / 54. 35.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[atrac1 @ 0x1edcc00] Unsupported number of channels: 0
[voc @ 0x1edc420] Ignoring mid-stream change in audio codec
[voc @ 0x1edc420] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, voc, from 'BBC_3BIT.VOC':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: atrac1, 11111 Hz, mono, fltp
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.35.100
    Stream #0:0: Audio: pcm_s16le, 11111 Hz, mono, s16, 177 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (atrac1 -> pcm_s16le)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 2 times
[output stream 0:0 @ 0x1fb6d20] 100 buffers queued in output stream 0:0, somethi
ng may be wrong.
[output stream 0:0 @ 0x1fb6d20] 1000 buffers queued in output stream 0:0, someth
ing may be wrong.
[output stream 0:0 @ 0x1fb6d20] 10000 buffers queued in output stream 0:0, somet
hing may be wrong.
[output stream 0:0 @ 0x1fb6d20] 100000 buffers queued in output stream 0:0, some
thing may be wrong.
Received signal 2: terminating.

comment:3 Changed 7 years ago by cehoyos

  • Keywords OOM added

comment:4 Changed 7 years ago by michael

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

comment:5 follow-up: Changed 7 years ago by ami_stuff

thanks, the same problem happens with at least adpcm_sbpro_3 and libopencore_amrwb

comment:6 Changed 7 years ago by ami_stuff

C:\>ffmpeg -acodec libopencore_amrwb -i BBC_3BIT.VOC -f null -
ffmpeg version N-46755-ge70144c Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 15 2012 02:38:20 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  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-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.100 /  3. 23.100
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[voc @ 0x1edc420] Ignoring mid-stream change in audio codec
[voc @ 0x1edc420] Estimating duration from bitrate, this may be inaccurate
Input #0, voc, from 'BBC_3BIT.VOC':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: amr_wb, 16000 Hz, mono, flt
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.36.100
    Stream #0:0: Audio: pcm_s16le, 16000 Hz, mono, s16, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (libopencore_amrwb -> pcm_s16le)
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from rate:16000 fmt:flt ch:1 chl:mono to rate:16
000 fmt:s16 ch:1 chl:mono
Multiple frames in a packet from stream 0
[output stream 0:0 @ 0x1fc1ba0] 100 buffers queued in output stream 0:0, somethi
ng may be wrong.
[output stream 0:0 @ 0x1fc1ba0] 1000 buffers queued in output stream 0:0, someth
ing may be wrong.
[output stream 0:0 @ 0x1fc1ba0] 10000 buffers queued in output stream 0:0, somet
hing may be wrong.
Received signal 2: terminating.
^C

http://samples.mplayerhq.hu/A-codecs/musepack/01%20-%20Pumpkin%20and%20Honey%20Bunny%20(dialogue)%20-%20Dick%20Dale%20&%20His%20Del-Tones%20,%20Misirlou.mpc

C:\ffmpeg -acodec adpcm_sbpro_3 -i "01 - Pumpkin and Honey Bunny (dialogue) - Dick Dale & His Del-Tones , Misirlou.mpc" -f null -
ffmpeg version N-46755-ge70144c Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 15 2012 02:38:20 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  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-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.100 /  3. 23.100
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, mpc, from '01 - Pumpkin and Honey Bunny (dialogue) - Dick D
ale & His Del-Tones , Misirlou.mpc':
  Metadata:
    Track           : 1
    Year            : 1994
    Genre           : Soundtrack
    Artist          : Soundtrack
    Album           : Pulp Fiction
    Title           : Dick Dale & His Del-Tones / Misirlou
    Comment         : EAC secure - ripped by juans for www.enkeywebsite.net
  Duration: 00:02:30.18, start: 0.000000, bitrate: 129 kb/s
    Stream #0:0: Audio: adpcm_sbpro_3, 44100 Hz, stereo, s16, 264 kb/s
Output #0, null, to 'pipe:':
  Metadata:
    Track           : 1
    Year            : 1994
    Genre           : Soundtrack
    Artist          : Soundtrack
    Album           : Pulp Fiction
    Title           : Dick Dale & His Del-Tones / Misirlou
    Comment         : EAC secure - ripped by juans for www.enkeywebsite.net
    encoder         : Lavf54.36.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (adpcm_sbpro_3 -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
[output stream 0:0 @ 0x1fb74e0] 100 buffers queued in output stream 0:0, somethi
ng may be wrong.
[output stream 0:0 @ 0x1fb74e0] 1000 buffers queued in output stream 0:0, someth
ing may be wrong.
[output stream 0:0 @ 0x1fb74e0] 10000 buffers queued in output stream 0:0, somet
hing may be wrong.
Received signal 2: terminating.
^C

comment:7 in reply to: ↑ 5 Changed 7 years ago by cehoyos

Replying to ami_stuff:

thanks, the same problem happens with at least adpcm_sbpro_3 and libopencore_amrwb

Please open separate tickets, that allows following the issues (and the fixes).

Note: See TracTickets for help on using tickets.