Skip to content

Instantly share code, notes, and snippets.

View davgreenegmti's full-sized avatar

David Greene davgreenegmti

  • Chesapeake, VA
View GitHub Profile
@dajoho
dajoho / html5.sh
Created March 7, 2013 13:52
Shellscript to create HTML5 <video> MP4/OGV/WEBM/FLV/JPG versions of any video. The size, bitrate, cropping and sharpening can all be defined at the top of the script. Requirements: ffmpeg with libx264/libvpx/libtheora codecs (can be installed via homebrew). And flvtool2 (sudo gem install flvtool2).
#!/bin/bash
FILTERS="-filter:v crop=504:374:6:4,unsharp=5:5:1.0:5:5:0.0";
RESIZE="512x384";
VIDEO_BITRATE="1024k";
AUDIO_BITRATE="64k";
############################################################
for f in "$@"
do