Skip to content

Instantly share code, notes, and snippets.

@dedman
dedman / gist:3161847
Created July 23, 2012 03:10
Convert all HD mov files in iPhoto directory to SD so can sync to iPad
### BACKUP IPHOTO LIBRARY FIRST BEFORE RUNNING ANYTHING
#Place this file in ~/Pictures/iPhoto Library and run.
#brew install ffmpeg if you don't have ffmpeg installed
rm -rf converted
for x in $(find . -iname \*.mov) ; do
ffmpeg -i $x 2>&1 | grep -q '1920x1080'
if [ $? == 1 ]
then