New submission from Herman Kuiper <[email protected]>:

When trying to convert some (generated/captured by a system of a client of ours)
WAV files into MP3 files, ffmpeg hangs at (near) the end of the input file. For
these offending files, when using the -t flag to transcode 1 second less than
the actual duration, ffmpeg usually ends ok.

FFMPEG needs to be killed using one or ^C's. As this process is actually running
on a webserver to convert those WAV for replay in Flash, these hanging FFMPEGs
will clog the server until a couple of them are using 100% CPU. 

Shortest command line to reproduce: ffmpeg -v 9 -loglevel 99 -i IRS8C00.wav 
1.mp3

Sample offending file uploaded to upload.ffmpeg.org in the folder
/MPlayer/incoming/hermanfrontiernl_ffmpeg_hang_on_convert/hermanfrontiernl_ffmpeg_hang_on_convert.wav

Relevant output logs from FFMPEG attached. Please note that the last line just
keeps repeating until FFMPEG is killed.

FWIW, Windows Media Player correctly plays these files. More offending files can
be supplied on request.


============================================

T:\irisaudio>bin\ffmpeg -v 9 -loglevel 99 -i IRS8C00.wav 1.mp3
FFmpeg version SVN-r24135, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul  9 2010 04:16:59 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign
-hack
  libavutil     50.21. 0 / 50.21. 0
  libavcodec    52.80. 0 / 52.80. 0
  libavformat   52.73. 0 / 52.73. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.22. 0 /  1.22. 0
  libswscale     0.11. 0 /  0.11. 0
[NULL @ 01ebbe90] Probed with size=2048 and score=99
[wav @ 01ebbe90] max_analyze_duration reached
[wav @ 01ebbe90] Estimating duration from bitrate, this may be inaccurate
Input #0, wav, from 'IRS8C00.wav':
  Duration: 00:00:35.77, bitrate: 8 kb/s
    Stream #0.0, 4, 1/8000: Audio: truespeech, 8000 Hz, 1 channels, s16, 8 kb/s
Output #0, mp3, to '1.mp3':
  Metadata:
    TSSE            : Lavf52.73.0
    Stream #0.0, 0, 1/90000: Audio: libmp3lame, 8000 Hz, 1 channels, s16, 64 kb/
s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
Multiple frames in a packet from stream 0kbits/s
Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0

----------
files: README.txt
messages: 11171
priority: normal
status: new
substatus: new
title: ffmpeg hangs on converting some WAV files
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2085>
________________________________________________
T:\irisaudio>bin\ffmpeg -v 9 -loglevel 99 -i IRS8C00.wav 1.mp3
FFmpeg version SVN-r24135, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul  9 2010 04:16:59 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign
-hack
  libavutil     50.21. 0 / 50.21. 0
  libavcodec    52.80. 0 / 52.80. 0
  libavformat   52.73. 0 / 52.73. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.22. 0 /  1.22. 0
  libswscale     0.11. 0 /  0.11. 0
[NULL @ 01ebbe90] Probed with size=2048 and score=99
[wav @ 01ebbe90] max_analyze_duration reached
[wav @ 01ebbe90] Estimating duration from bitrate, this may be inaccurate
Input #0, wav, from 'IRS8C00.wav':
  Duration: 00:00:35.77, bitrate: 8 kb/s
    Stream #0.0, 4, 1/8000: Audio: truespeech, 8000 Hz, 1 channels, s16, 8 kb/s
Output #0, mp3, to '1.mp3':
  Metadata:
    TSSE            : Lavf52.73.0
    Stream #0.0, 0, 1/90000: Audio: libmp3lame, 8000 Hz, 1 channels, s16, 64 kb/
s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
Multiple frames in a packet from stream 0kbits/s
Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0

Reply via email to