Skip to content

Instantly share code, notes, and snippets.

@waymondo
Last active December 26, 2015 05:49
Show Gist options
  • Save waymondo/7103228 to your computer and use it in GitHub Desktop.
Save waymondo/7103228 to your computer and use it in GitHub Desktop.
html5vid.sh
#!/bin/bash
# html5 videos maker
# first: `brew install ffmpeg --with-libvorbis --with-libvpx --with-theora`
ffmpeg -i $1 -b 1500k -vcodec libx264 -g 30 -s 720x480 $1.mp4
ffmpeg -i $1 -b:v 1500k -vcodec libvpx -acodec libvorbis -ab 55000 -f webm -g 30 -s 720x480 $1.webm
ffmpeg -i $1 -b 1500k -vcodec libtheora -acodec libvorbis -ab 55000 -g 30 -s 720x480 $1.ogv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment