问题描述
我使用的ffmpeg转换AMR到WAV和WAV amr.Its成功转换到AMR WAV但不是反之亦然。由于ffmpeg的是支撑AMR EN codeR德codeR,它给错误。
I am using ffmpeg to convert amr to wav and wav to amr.Its successfully converting amr to wav but not viceversa. As ffmpeg is supporting amr encoder decoder, its giving error.
的ffmpeg -i testwav.wav audio.amr
出错开放连接codeR输出流#0.0 - 也许不正确的参数,如BIT_RATE,速度,宽度或高度
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
推荐答案
您可以尝试设置采样率和比特率。
AMR只支持8000Hz的采样率和4.75k,5.15k,5.9k,6.7k,7.4k,7.95k,10.2k或12.2k比特率:
You can try setting the sample rate and bit rate. Amr supports only 8000Hz sample rate and 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k bit rates:
ffmpeg -i testwav.wav -ar 8000 -ab 12.2k audio.amr
这篇关于得到错误,而使用的ffmpeg转换WAV到AMR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!