From f30cbce9984d5cd8d90ec7c6c6e17c72f17083f9 Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Tue, 6 Sep 2016 18:30:22 -0400 Subject: [PATCH] initial commit --- atvify.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 atvify.sh 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