Created
January 17, 2012 17:26
-
-
Save sole/1627649 to your computer and use it in GitHub Desktop.
MOV to Android suitable MP4
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
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