Skip to content

Instantly share code, notes, and snippets.

View danpaluska's full-sized avatar

reco rdke epin danpaluska

View GitHub Profile
@danpaluska
danpaluska / simpleTimelapseCapture.pde
Created March 14, 2012 23:29
simple timelapse capture program for processing, writes images to sketch folder
/** simple Timelapse campture
* Public domain 2012
* a basic merge and slight alteration of a couple processing examples
*/
import processing.video.*;
Capture cam;
float numFrames = 1050;
int last=0;
@danpaluska
danpaluska / publictextbox.pde
Created October 6, 2011 14:42
public text box, twitter public information appliance
/* Public Text Box */
/*
contains portions of a simple Processing and Twitter thingy majiggy
RobotGrrl.com
Code licensed under:
CC-BY
update from dan, additional code, public domain.
@danpaluska
danpaluska / iirMovie.sh
Created August 3, 2011 16:23
perform an IIR blur filter on a stack of frames from a movie using imagemagick and ffmpeg
#!/bin/bash
# ffmpeg -i movie.mov -r 1 fooframes/frames%05d.jpg
# extract 1 frame for every second of the movie...
mkdir IIRframes;
let "frames=4243/2"
echo $frames
cp WSPC0001.JPG IIRframes/new.jpg
@danpaluska
danpaluska / AVcapture.sh
Created February 18, 2011 19:25
version of capture.sh that captures both audio and snapshots, requires sox, and imagemagick, ffmpeg
#! /bin/bash
# boranj!
# see instructions here:
# http://broadcasterproject.wordpress.com/2010/07/14/how-to-make-a-timelapse-shared-memory-server/
# see also screencast version here: http://plebiandesign.com/blog/?p=552
# ************* for capturing frames from a camera:
# ************* LINUX is STREAMER
# ************* MAC is WACAW
# *****************************
# lots of garbage in here you can filter out *********
@danpaluska
danpaluska / audiocombine.sh
Created February 18, 2011 19:22
combine a bunch of audio snippets into a single file, uses sox and crossfade_cat.sh
#! /bin/bash
# rename and then recombine the audio stuff
date=$1
counter=10000
deslength=1
for f in audio*.wav; do
let "counter+=1"
let "deslength+=1"
mv $f audio${counter:1}.wav
@danpaluska
danpaluska / movie_shortener.sh
Created July 17, 2010 03:38
shorten movies by timelapse and layering
# how to export to frames:
#ffmpeg -i day1-total.mov -sameq ./Outputdir/day1%5d.jpg
# length of a file
# sox --info -D file.wav | cut -d"." -f1
# or use -f image2 as export option.
# names the frames as frame0001.jpg, frame0002.jpg, etc.
@danpaluska
danpaluska / timelapse_audio.sh
Created July 15, 2010 15:17
script for making timelapse audio files
#!/bin/bash
#
# timelapse_audio.sh
#
#
# take an input file, $1
# find length on input file
# snip short pieces of length $2
# spacing between snippet starts $3
# put a crossfade between snippets $4
@danpaluska
danpaluska / capture.sh
Created July 14, 2010 17:35
Timelapse movie maker from webcam for mac/linux
#! /bin/sh
# boranj!
# see instructions here:
# http://broadcasterproject.wordpress.com/2010/07/14/how-to-make-a-timelapse-shared-memory-server/
# see also screencast version here: http://plebiandesign.com/blog/?p=552
# ************* for capturing frames from a camera:
# ************* LINUX is STREAMER
# ************* MAC is WACAW
# whatever you want to be your directory of files
cd ~/Pictures/OMPD
#! /bin/sh
# boranj!
# a shorter version of script described here: http://plebiandesign.com/blog/?p=552
# whatever you want to be your directory of files
cd ~/Pictures/OMPD
# make a subdirectory with today's date, then go to it.
mkdir `date +%Y-%m-%d`
cd `date +%Y-%m-%d`
streamer -c /dev/video0 -o camLAST.jpeg # if you want to do some low pass or averaging
@danpaluska
danpaluska / layer_audio.sh
Created June 7, 2010 02:17
abstract audio layering and panning with sox
#!/bin/bash
#
# layer_audio.sh
# http://gist.github.com/428136
#
# take an input file, $1
# find length on input file
# snip short pieces of length $2
# layer all those pieces on top of each other
#