getting error while converting wav to amr using ffmpeg

前端 未结 1 1714
攒了一身酷
攒了一身酷 2021-02-06 08:46

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.

相关标签:
1条回答
  • 2021-02-06 09:25

    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
    
    0 讨论(0)
提交回复
热议问题