view lightsim/caplight @ 938:c2faa69099e6

asco: display update frequency and dim when updates stop. run slower updates on tablets and phones Ignore-this: 2439d0f540c9eae00c4f18e26411c100
author drewp@bigasterisk.com
date Wed, 12 Jun 2013 23:47:12 +0000
parents 45b12307c695
children
line wrap: on
line source

#!/bin/zsh

# grabs a DV frame and converts to ppm file named $1

dvgrab --format dv2 --frames 1 oneframe
dv2jpg oneframe001.avi oneframe.mjpeg
rm oneframe001.avi
lavtrans -f i -o oneframe.jpg oneframe.mjpeg
djpeg oneframe.jpg > $1
rm oneframe.*