How to convert wav file to mp4 using ffmpeg in and

2019-06-05 20:51发布

问题:

I am having a wav file.How to convert wav file into mp4 file container format with AAC as audio stream using FFmpeg in android.I know how compile and port ffmpeg for android.Can anybody give me right direction

thanks,

回答1:

you'll need to compile libfaac if you want to have a decent quality encoder. Then, something like ffmpeg -i foo.wav -vn -acodec libfaac -ab BITRATE output.mp4 should do the trick.