Skip to content

Instantly share code, notes, and snippets.

@tuzz
Created March 18, 2012 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuzz/2067506 to your computer and use it in GitHub Desktop.
Save tuzz/2067506 to your computer and use it in GitHub Desktop.
mp4 conversion function
# Convert videos to mp4 for iTunes/iOS. Use cores * 1.5 as the number of threads.
# Works for most video formats out of the box. ffmpeg must be installed first.
mp4() {
ffmpeg -i "$1" -threads 6 -sameq -acodec libfaac -ar 48000 -ab 160k -ac 2 "$1".mp4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment