Skip to content

Instantly share code, notes, and snippets.

View chrisknepper's full-sized avatar

Chris Knepper chrisknepper

View GitHub Profile
@chrisknepper
chrisknepper / convertmp4towebm.sh
Created May 6, 2015 20:34
Convert MP4 to WebM with FFMPEG
ffmpeg -i frontpage.mp4 -qmax 25 -threads 2 myvideo.webm
@chrisknepper
chrisknepper / installffmpeg.sh
Last active August 29, 2015 14:20
Install FFMPEG on OSX with Brew with WebM Output support
brew install ffmpeg --with-libvorbis --with-libvpx
#Based on http://askubuntu.com/questions/396883/how-to-simply-convert-video-files-i-e-mkv-to-mp4
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
@chrisknepper
chrisknepper / gcal_link.php
Created July 18, 2014 03:51
PHP Google Calendar Link Generator
@chrisknepper
chrisknepper / convert_to_webm.sh
Created June 12, 2014 02:03
Simple WebM Conversion with FFmpeg
#Converts a file named "input.mkv" to a webm file named "output.webm"
#The file will be a 20-second clip of "input.mkv," beginning at 201 seconds (3 minutes and 21 seconds)
#ffmpeg must be in your $PATH or you must be in the same directory as it
#On Windows, add ".exe" to "ffmpeg"
ffmpeg -ss 201 -t 20 -i input.mkv -qmin 10 -qmax 42 -f webm -threads 4 -vcodec libvpx -acodec libvorbis output.webm