view lightsim/caplight @ 929:c20c2eea6fce

another hack to stop graphfile from thinking its own new empty file means it should delete all the statements in that context Ignore-this: 94639afbbe8d3a0abd8a06e16922394f
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 11 Jun 2013 20:25:02 +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.*