This file contains 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
// iPhone controlled / Arduino Powered Christmas rgb LED Strip | |
/* https://github.com/adafruit/LPD8806 */ | |
/* https://github.com/sirleech/Webduino */ | |
/* Web_AjaxRGB_mobile.pde - example sketch for Webduino library */ | |
/* - offers web-based slider controllers for RGB led - */ | |
#include "SPI.h" | |
#include "Ethernet.h" |
This file contains 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
#!/bin/bash | |
# Splits a media file (such as mkv) into flac files, one file per chapter | |
if [[ $# -ne 2 ]] ; then | |
echo 'Syntax: media-to-flac-split.sh input-file.mkv stream-number' | |
exit 1 | |
fi | |
DIRECTORY="${1//[\. \"\']/-}-stream-$2" | |
mkdir -p $DIRECTORY | |
ffprobe -i $1 2>&1 | grep "Chapter #" | sed -E "s/ *Chapter #[0-9]+.([0-9]+): start ([0-9]+.[0-9]+), end ([0-9]+.[0-9]+)/-map 0:$2 -ss \2 -to \3 -metadata track=\"\1\" $DIRECTORY\/track-\1.flac/" | xargs ffmpeg -y -i $1 |