Skip to content

Instantly share code, notes, and snippets.

@lgrz
Created August 27, 2010 06:51
Show Gist options
  • Save lgrz/552943 to your computer and use it in GitHub Desktop.
Save lgrz/552943 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Shortcut for converting videos to avi format
if [[ $# -ne 1 ]]
then
echo "Usage: $0 <file>"
exit 1
fi
OUTFILE=${1/.*/}
ffmpeg -sameq -i $1 -vcodec msmpeg4v2 "$OUTFILE.avi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment