Skip to content

Instantly share code, notes, and snippets.

@alexargo
Created March 25, 2015 07:16
Show Gist options
  • Save alexargo/1fe88147267fea76e200 to your computer and use it in GitHub Desktop.
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
#!/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