Skip to content

Instantly share code, notes, and snippets.

View ErwanGuillon's full-sized avatar

Erwan Guillon ErwanGuillon

View GitHub Profile
@ErwanGuillon
ErwanGuillon / html5video.sh
Created October 5, 2012 13:04 — forked from liamcurry/html5video.sh
automated conversion of a file to all three html5 compatible video formats - h.264, ogg, and webm
#!/bin/sh
# Output file for HTML5 video
# requirements: ffmpeg .6+
# usage: ./html5video.sh infile.mp4 640x360
target_directory='converted'
file=`basename $1`
filename=${file%.*}
filepath=`dirname $1`