ffmpeg cannot open a simple microsoft wav file exported with Audacity -
i have exported sound file microsoft wav using audacity. trying open file ffmpeg :
ffmpeg -i steps-stereo-16b-44khz.wav /tmp/test.ogg
and here's ouput :
fmpeg version 1.2.1 copyright (c) 2000-2013 ffmpeg developers built on jun 12 2013 13:46:11 apple clang version 4.1 (tags/apple/clang-421.11.66) (based on llvm 3.1svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dca @ 0x7fd30c013600] not valid dca frame ... snip ... [dca @ 0x7fd5bc013600] invalid bit allocation index [dca @ 0x7fd5bc013600] error decoding block last message repeated 3 times [dca @ 0x7fd5bc013600] didn't subframe dsync [dca @ 0x7fd5bc013600] error decoding block [wav @ 0x7fd5bc013000] max_analyze_duration 5000000 reached @ 5009070 microseconds [wav @ 0x7fd5bc013000] decoding stream 0 failed [wav @ 0x7fd5bc013000] not find codec parameters stream 0 (audio: dts ([1][0][0][0] / 0x0001), 192000 hz, 2 channels, fltp, 0 kb/s): no decodable dts frames consider increasing value 'analyzeduration' , 'probesize' options steps-stereo-16b-44khz.wav: not find codec parameters
if export same file .ogg or .aiff, no problem, following works fine :
ffmpeg -i steps-stereo-16b-44khz.aiff /tmp/test.ogg
any idea wrong?
a link wav file can try reproduce.
nb final goal slice audio file. know can export file directly .ogg audacity. test case.
edit
getting file info program sox, works :
sox --info steps-stereo-16b-44khz.wav input file : 'steps-stereo-16b-44khz.wav' channels : 2 sample rate : 44100 precision : 16-bit duration : 00:00:02.10 = 92608 samples = 157.497 cdda sectors file size : 370k bit rate : 1.41m sample encoding: 16-bit signed integer pcm
you can ffmpeg
recognize additional input options:
ffmpeg -acodec pcm_s16le -i steps-stereo-16b-44khz.wav output.ogg
this bug in ffmpeg
, ticket #2810: unsupported wav, has been fixed while ago. can compile ffmpeg or recent build take advantage of fix.
note ogg output default encoder flac
, may want add -codec:a libvorbis
output option.
Comments
Post a Comment