Last active
December 15, 2015 23:28
-
-
Save matth/5340161 to your computer and use it in GitHub Desktop.
Convert video to a format that xbox actaully plays, requires ffmpeg, bash, linux / mac
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 | |
set -e | |
if [ $# -ne 1 ] || [ ! -f $1 ]; then | |
echo "usage: `basename $0` file" | |
exit 1 | |
fi | |
input=$1 | |
filename=`basename $input` | |
output="${filename%.*}.xbox.mp4" | |
ffmpeg -i $input -c:v libx264 -profile:v high -crf 23 -c:a libfaac -q:a 100 $output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment