This file contains hidden or 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/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 |
This file contains hidden or 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
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 |
This file contains hidden or 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 | |
### | |
## 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/,//` |
This file contains hidden or 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
#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"; |
This file contains hidden or 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
#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 |
This file contains hidden or 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 | |
# | |
# 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 | |
# |
This file contains hidden or 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/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 |
This file contains hidden or 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/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 |
This file contains hidden or 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 | |
# | |
# 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 |
This file contains hidden or 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
# 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. |
OlderNewer