commit f30cbce9984d5cd8d90ec7c6c6e17c72f17083f9 Author: Andrew Davidson Date: Tue Sep 6 18:30:22 2016 -0400 initial commit diff --git a/atvify.sh b/atvify.sh new file mode 100644 index 0000000..cb37467 --- /dev/null +++ b/atvify.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Set the video format +VCODEC="copy" + +# Set the video bitrate for the final file +VBITRATE="1200k" + +# Set framesize for the final file +VSIZE="hd720" + +# Set the audio format +ACODEC="ac3" + +# Set the audio bitrate for the final file +ABITRATE="384k" + +# How many threads should we fire off? +THREADS=4 + + + + +for i in "$@"; do + FILENAME=$i + BASENAME=${FILENAME%.*} + ffmpeg -i "$FILENAME" -vcodec $VCODEC -s $VSIZE -sameq -acodec $ACODEC -ac 2 -ab $ABITRATE -threads $THREADS "$BASENAME.mp4" +done