[ffmpeg] ffmpeg encode raw audio (pcm) into other formats (mp3, aac, wav, etc)

input raw audio info:

sample rate: 44.1k

sample format: 16bit signed integer, little endian

channel numbers: 2


encoding the raw pcm audio into .wav using ffmpeg, command line:

ffmpeg -f s16le -ar 44.1k -ac 2 -i input_file.pcm output_file.wav


thanks to http://stackoverflow.com/questions/11986279/can-ffmpeg-convert-audio-from-raw-pcm-to-wav

發佈了81 篇原創文章 · 獲贊 1 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章