order of the day
1. Convert MP3 to WAV
ffmpeg -i input.mp3 -acodec pcm_ s16le -ac 1 -ar 8000 output.wav
2. Convert m4a to wav
ffmpeg -i input.m4a -acodec pcm_ s16le -ac 1 -ar 8000 output.wav
3. Conversion between wav and PCM
ffmpeg – iinput.wav -f s16le -ar 8000 -acodec pcm_ s16le output.raw
4. PCM to WAV
ffmpeg -f s16le -ar 8000-ac 1 -acodec pcm_ s16le -i input.raw output.wav
Note:
– acodec PCM_ s16le pcm_ S16le 16bits encoder
– F s16le is saved in 16bits PCM format
– AC 1 mono
– AR 8000 sampling rate
Ffmpeg installation configuration see blog:
https://blog.csdn.net/qq_ 39516859/article/details/81843419
Read More:
- Extract audio from ffmpeg video to mp3 format or m4a format command
- How to Use ffmpeg to convert MP4 and other formats to MP3 format
- Converting H264 bit stream to. MP4 format by ffmpeg
- Conversion to dalvik format failed with error 1 solution
- Resolve Audio: failed to create voice ` goldfish_ Audio ‘error
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- An error is reported when starting the Android emulator: Emulator: audio: Failed to create voice `goldfish_audio_in’
- invalid connection string format, a valid format is host:ip:port
- Causes and solutions of nm test o file format not recognized
- Visual Studio 2010 compilation error fatal error lnk1123: failed during conversion to coff: solution to invalid or corrupt file
- Link: fatal error lnk1123: failure during conversion to coff: file in
- Video player plays flv with error flv: Unsupported audio codec IDX: 7
- An error is displayed when virtualbox uses modifyhd command to expand capacity: Resize medium operation for this format is not implemented yet
- Convert Tencent video QLV format to MP4 format
- Library file error: adding symbols file in wrong format
- LinkIssue: Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or cor
- VIM setting file encoding format
- VS2010 error: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
- Ffmpeg (libx264) compiling for IOS
- Vs2015 compiling ffmpeg source code