Created
October 22, 2014 22:11
-
-
Save alexandregz/7fa2b5f3b454369c829a to your computer and use it in GitHub Desktop.
convert mkv to mp4 (for example) with handbrakecli
This file contains 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/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Use: $0 inputfile" | |
exit | |
fi | |
INPUTFILE=$1 | |
OUTPUTFILE=$(echo $INPUTFILE | sed 's/\.[^\.]*$//')".mp4" | |
HandBrakeCLI -i "$INPUTFILE" -o "$OUTPUTFILE" --preset="High Profile" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this sharing, really helpful. I used to convert video with Acethinker Video Converter, free and works perfect. It is a cloud based software to convert videos without install any software in your device. Share it here as an alternative method.