Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はffmpegを使用して、amrをwavに、wavをamrに変換しています。amrをwavに正常に変換しますが、その逆はできません。ffmpeg は amr エンコーダー デコーダーをサポートしているため、エラーが発生します。
ffmpeg -i testwav.wav audio.amr
出力ストリーム #0.0 のエンコーダを開く際のエラー - bit_rate、rate、width、height などのパラメータが正しくない可能性があります
サンプルレートとビットレートを設定してみてください。Amr は 8000Hz のサンプル レートと 4.75k、5.15k、5.9k、6.7k、7.4k、7.95k、10.2k または 12.2k のビット レートのみをサポートします。
ffmpeg -i testwav.wav -ar 8000 -ab 12.2k audio.amr