How to convert .raw audio input to .m4a with ffmpeg?

I have a ffmpeg command:

ffmpeg -i testing.m4a -acodec pcm_s16le -f rawvideo tentative.raw 

I would like to know the command to convert tentative.raw back to test.m4a.

+4
source share
1 answer

I just found a way to do this.

 ffmpeg -f s16le -sample_rate 16000 -channels 2 -i tentative.raw -c:a aac testing.m4a 

If your ffmpeg out of date, you may need to add -strict experimental to encode using your own FFmpeg AAC encoder ( -c:a aac ).

+3
source

Source: https://habr.com/ru/post/1388345/


All Articles