This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i frontpage.mp4 -qmax 25 -threads 2 myvideo.webm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install ffmpeg --with-libvorbis --with-libvpx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Call this with the shown parameters (make sure $time and $end are integers and in Unix timestamp format!) | |
//Get a link that will open a new event in Google Calendar with those details pre-filled | |
function make_google_calendar_link($name, $begin, $end, $location, $details) { | |
$params = array('&dates=', '/', '&details=', '&location=', '&sf=true&output=xml'); | |
$url = 'https://www.google.com/calendar/render?action=TEMPLATE&text='; | |
$arg_list = func_get_args(); | |
for ($i = 0; $i < count($arg_list); $i++) { | |
$current = $arg_list[$i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |