Skip to content

Instantly share code, notes, and snippets.

@amboxer21
Created November 2, 2012 07:06
Show Gist options
  • Save amboxer21/3999177 to your computer and use it in GitHub Desktop.
Save amboxer21/3999177 to your computer and use it in GitHub Desktop.
Extract audio from a video file
#!/bin/bash
if (( $# != 3 )) ; then echo -e "USAGE: infile.avi outfile title"; exit; fi
ffmpeg -i $1 -acodec libmp3lame -metadata TITLE="$3" ${2}.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment