Extract Audio From A Video With ffmpeg
May 2021
The creates an mp3 file with a variable bit rate:
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3Notes
-
A starting point can be set with:
-ss 31.3 -
The length can be set with:
-t 10.0 -
The
-q:a 0can be dropped and the extension changed from.mp3to.wavto make a WAV file -
Making a specific frequency wav file is done with something like this
-map a -ar 16000 output.wavfor a 16,000 Hz file
end of line