#1796: Unable to extract PCM audio track from AVI file -------------------------------------+------------------------------------- Reporter: tom_bogle | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: I have an AVI-wrapped dvvideo file with a single pcm_s16le audio track. The video plays fine (although there is a funny noise at the start that might indicate some kind of corruption or encoding problem). I am able to extract the audio using MPlayer, and ffmpeg can successfully produce a lower-quality avi file and extract the audio as mp3. I am able to run ffmpeg a second time to get a WAV file from either of these. However, if I simply try to extract the audio track directly into a WAV file from the original AVI file, all I get is 0.03 seconds of noise. There is no error message, so the software I'm writing that is running ffmpeg and monitoring the output can't tell anything went wrong.
How to reproduce: {{{ % ffmpeg -i TruncatedPCMAudio.avi -vn -acodec copy temp.wav - OR - % ffmpeg -i TruncatedPCMAudio.avi -vn -acodec pcm_s16le temp.wav ffmpeg version N-40126-ga4b58fd built on Apr 26 2012 03:29:50 with gcc 4.6.3 }}} ffmpeg -v 9 -loglevel 99 -i TruncatedPCMAudio.avi ffmpeg version N-40126-ga4b58fd Copyright (c) 2000-2012 the FFmpeg developers built on Apr 26 2012 03:29:50 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable- libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable- libope njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable- libxvid --e nable-zlib libavutil 51. 47.100 / 51. 47.100 libavcodec 54. 15.100 / 54. 15.100 libavformat 54. 3.100 / 54. 3.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 72.100 / 2. 72.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 11.100 / 0. 11.100 libpostproc 52. 0.100 / 52. 0.100 [avi @ 01d3c020] Format avi probed with size=2048 and score=100 [AVI demuxer @ 01d3c680] use odml:1 [avi @ 01d3c020] File position before avformat_find_stream_info() is 32768 [avi @ 01d3c020] All info found [avi @ 01d3c020] File position after avformat_find_stream_info() is 185032 Input #0, avi, from 'TruncatedPCMAudio.avi': Duration: 00:03:52.46, start: 0.000000, bitrate: 28855 kb/s Stream #0:0, 1, 1001/30000: Video: dvvideo, yuv411p, 720x480, 1001/30000, 28 771 kb/s, SAR 8:9 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1, 1, 1/30000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 k b/s At least one output file must be specified -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1796> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac