Skip to content

Instantly share code, notes, and snippets.

View danpaluska's full-sized avatar

reco rdke epin danpaluska

View GitHub Profile
@danpaluska
danpaluska / blurmachine.sh
Created May 18, 2010 01:54
movie layerinr with imagemagick, shell script
#Script to make blurred or multi frame movies.
# EXPORT MOVIES TO SEQUENCE OF INDIVIDUAL FRAMES
# ffmpeg -i yourmovie.avi -sameq ../Outputdir/frame%4d.jpg
# names the frames as frame0001.jpg, frame0002.jpg, etc.
# for long movies use %5d.jpg
# AUDIO EXTRACTION
# ffmpeg -i movieA.mp4 movieAsound.wav
# ffmpeg -i movieB.mp4 movieBsound.wav
@danpaluska
danpaluska / 4panelmaker.sh
Created May 18, 2010 01:53
4panel movie maker script
#Script to make multi frame movies.
# how to export to frames:
# ffmpeg -i yourmovie.avi -sameq ../Outputdir/frame%4d.jpg
# or use -f image2 as export option.
# names the frames as frame0001.jpg, frame0002.jpg, etc.
# for long movies use %5d.jpg
#choose four prefixes
DA="gow";
@danpaluska
danpaluska / add_audio.sh
Created March 24, 2010 02:49
Add audio to a movie file. uses sox and ffmpeg. mac/linux
#!/bin/bash
###
## USAGE ./add_audio.sh moviefile.mp4 audiofile.mp3
## this will take snippet from audio file and add it to moviefile.
## it will then trim that snippet from audiofile.mp3
DURATION=`ffmpeg -i $1 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//`
@danpaluska
danpaluska / uploader2.py
Created March 2, 2010 18:06
youtube uploading python script.
from gdata.youtube import YouTubeVideoEntry
from gdata.youtube.service import YouTubeService
import gdata
from gdata.service import BadAuthentication, CaptchaRequired
from optparse import OptionParser
import sys
import time
import os
@danpaluska
danpaluska / capture.sh
Created February 22, 2010 15:53
shell script for making timelapse screencast movies
#! /bin/sh
# THIS VERSION TAKES A WEBCAM PIC AND BLENDS IT WITH SCREENSHOT
###
### THIS IS MACOS VERSION, linux commands commented out below.
###
# ***************************************
# ******OMPD - One Minute Per Day - Voluntary Anthropology
# ******public timelapse wall
# need to install ffmpeg and imagemagick for this to work