Skip to content

Instantly share code, notes, and snippets.

@sole
Created January 17, 2012 17:26
Show Gist options
  • Save sole/1627649 to your computer and use it in GitHub Desktop.
Save sole/1627649 to your computer and use it in GitHub Desktop.
MOV to Android suitable MP4
WIDTH="720"
HEIGHT="480"
BITRATE="1500k"
for i in $(ls *.mov); do
ffmpeg -i $i -r 30 -vcodec mpeg4 -acodec libfaac -ac 1 -ar 44100 -vf scale=$WIDTH:$HEIGHT -b $BITRATE -y $i.mp4
done
for i in *.mov.mp4; do j=`echo $i | sed 's/.mov.mp4/.mp4/'`; mv "$i" "$j"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment