Created
May 17, 2012 20:53
-
-
Save dawnerd/2721529 to your computer and use it in GitHub Desktop.
Converts an mkv to mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Converts a file from mkv to mp4. | |
# Shortcut for the following | |
# HandBrakeCLI --preset="Normal" -i Zombieland-720P.mkv -o Zombieland-720P.mp4 -O | |
# | |
# Usage: mkv2mp4 sourcefile.mkv | |
output=`echo $1|sed -e "s/.mkv/.mp4/gi"` | |
echo "Encoding $output" | |
HandBrakeCLI --preset="Normal" -i "$1" -o "$output" -4 | |
#Uncomment this to delete source | |
# rm $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment