Skip to content

Instantly share code, notes, and snippets.

@metaColin
metaColin / html5_video_convert.sh
Created March 8, 2016 08:04 — forked from bionik/html5_video_convert.sh
Simple HTML5 video encoding bash script for OS X (Easily ported to Linux)
#!/bin/bash
set -e
# IMPORTANT! First install ffmpeg with encoders enabled, i.e. like this:
# brew install ffmpeg --with-libvpx --with-libvorbis --with-theora
# Will not re-encode files, if output file exists.
# Quality settings are configured in encoders' command line parameters below, sorry about that.
if [ -z "$1" ]; then