Skip to content

Instantly share code, notes, and snippets.

@morganestes
Created May 10, 2013 21:11
Show Gist options
  • Select an option

  • Save morganestes/5557450 to your computer and use it in GitHub Desktop.

Select an option

Save morganestes/5557450 to your computer and use it in GitHub Desktop.
Extract audio with ffmpeg
# Extract audio from a video file with ffmpeg
function extractaudio() {
video=$1
ffmpeg -i "$video" -vn -ac 2 -ar 44100 -ab 320k -f mp3 "${video%.*}.mp3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment