Skip to main content

Audio from Videos

NOTE: For Transcribing use: 48 kHz (48000 Hz)

ffmpeg -i video.mp4 -f mp3 -ar 48000 -vn music.mp3

The -i option in the above command is simple: it is the path to the input file. The second option -f mp3 tells ffmpeg that the ouput is in mp3 format. The third option i.e -ar 48000 tells ffmpeg that we want the output audio rate to be 48 kHz and -vn tells ffmpeg that we don't want video. The last param is the name of the output file.

ffmpeg -i video.mpg video.mp4

Reference

https://gist.github.com/protrolium/e0dbd4bb0f1a396fcb55