Extract Audio From A Video With ffmpeg

The creates an mp3 file with a variable bit rate:

Code
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3
Notes
  • A starting point can be set with: `-ss 31.3``

  • The length can be set with: `-t 10.0``

  • The `-q:a 0`` can be dropped and the extension changed from `.mp3`` to `.wav`` to make a WAV file

  • Making a specific frequency wav file is done with something like this `-map a -ar 16000 output.wav`` for a 16,000 Hz file