Skip to content

Instantly share code, notes, and snippets.

View andykirk's full-sized avatar

Andy Kirk andykirk

View GitHub Profile
#!/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`