Skip to content

Instantly share code, notes, and snippets.

@matth
Last active December 15, 2015 23:28
Show Gist options
  • Save matth/5340161 to your computer and use it in GitHub Desktop.
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
#!/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