Skip to content

Instantly share code, notes, and snippets.

Last active August 21, 2017 20:30
What would you like to do?
Convert videos for web
# Based on
for f in src/*.mov
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment