Created
March 25, 2015 07:16
-
-
Save alexargo/1fe88147267fea76e200 to your computer and use it in GitHub Desktop.
bash script to resize a 5.5" iPhone video to 4.7" iPhone that iTunes Connect is happy with
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/bash | |
NAME=`echo "$@" | cut -d'.' -f1` | |
EXTENSION=`echo "$@" | cut -d'.' -f2` | |
SUFFIX="_47" | |
echo "Converting '$NAME.$EXTENSION' to '$NAME$SUFFIX.$EXTENSION':"; | |
ffmpeg -i "$NAME.$EXTENSION" -strict -2 -vf scale=1334x750 -aspect 1.779 "$NAME$SUFFIX.$EXTENSION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment