Convert videos for web
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 | |
# Based on http://asisolve.com/ffmpeg-encoding-settings-for-web-video/ | |
for f in src/*.mov | |
do | |
name=$(basename $f .mov) | |
# Convert to mp4 | |
ffmpeg -i $f -vcodec libx264 -preset slow -profile main -crf 25 -acodec libfdk_aac -ab 64k dist/$name.mp4 | |
# Convert to OGV | |
ffmpeg -i $f -vcodec libtheora -qscale 5 -acodec libvorbis -ab 128k dist/$name.ogv | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment