Skip to content

Instantly share code, notes, and snippets.

View elhenro's full-sized avatar

Henry Schober elhenro

View GitHub Profile
@elhenro
elhenro / convertVideoToWebVideoFormats.sh
Created March 13, 2018 13:24
convert a video to the web video formats: mp4, webm, ogg
#!/bin/bash
# how to use: sh convertVideoToWebVideoFormats.sh fileToConvert.mp4
# how to use for batch conversion: find "$VIDEOS" -name '*.mp4' -exec sh -c 'ffmpeg ... or sh convertV..
input=$1
output=$(echo $1 | sed 's/^\(.*\)\.[a-zA-Z0-9]*$/\1/')
# mp4
ffmpeg -i $input -vcodec h264 -acodec aac -strict -2 -s 1280x720 $output.mp4
# webm
#ffmpeg -i $input -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 1280x720 $output.webm
@elhenro
elhenro / gist:89e4288beb34a7b62bea72bd79e3697e
Last active April 12, 2018 22:37
Debugging Processwire Installation on Ubuntu/Osx
Processwire 500 Internal Server Error
check site/config.php mysql logins
check .htaccess
- check if it is read (paste shit in the top)
- check if it works with apache2
Processwire 403 Permission Denied