[ELECTRON] bash CLI USB/FireWire webcam frame graber ~ VideoScript?

Christopher Orr chris at orr.me.uk
Mon May 4 01:31:42 UTC 2009


On 3 May 2009, at 16:10, Ben Rush wrote:
> Hello all -
>
> Looking for some advice or insight. I know the electron club is a  
> diverse group so fire away if any of you have any thoughts but  
> perhaps someone may know of an appropriate *nix forum for this as  
> well? Google hasn't given me a whole lot to play with.
>
> I'm trying to capture frame grabs from usb/fire wire web cams via a  
> bash script. So far I've run across this CLI app called VideoScript  
> which looks promising. I know I could use PD to do such a thing, but  
> the rest of my work flow is shaping up to be neatly wrapped up in  
> one shell script.

I don't know if this is appropriate for the kind of camera you have,  
but you could try dvgrab from kinodv.org.

The command line I've used (from a webcam-grabbing script that Simon  
wrote) is:
sudo dvgrab --format jpeg --jpeg-overwrite --jpeg-width 360 --jpeg- 
height 288 --jpeg-deinterlace --every 75 <filename-prefix>

That happily worked for me (in both OS X and Linux) to capture frames  
directly -- over Firewire -- from a DV video camera.

Chris



More information about the members mailing list