Skip to content

Instantly share code, notes, and snippets.

View matthiassturm's full-sized avatar

Matthias Sturm matthiassturm

View GitHub Profile
@matthiassturm
matthiassturm / wc2014countdown.bash
Created May 13, 2014 16:16
Countdown to World Cup 2014 in Brasil
#!/bin/bash
e=1405195200;while [[ $(date +%Y) -ne $e ]];do figlet $(($e-$(date +%s)));sleep 1;clear;done;figlet $e
@matthiassturm
matthiassturm / flv2x264.bash
Last active August 29, 2015 14:01
flv 2 x264/AAC (all files in directory)
#!/bin/bash
for f in *.flv; do
avconv -i "$f" -c:a aac -strict -2 -b:a 128k -c:v libx264 -profile:v baseline ${f%%.flv}.mp4;
done
@matthiassturm
matthiassturm / cropToPal.bash
Created May 9, 2014 09:05
Crop all 16:9 MP4 videos in folder to PAL 4:3
#!/bin/bash
for f in *.mp4; do
mv "$f" "$f".old;
avconv -i "$f".old -vf crop=490:576:115:0 -vcodec libx264 "$f";
done