Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpeg2] Re: still picture grabbing - Solution



On Friday 06 July 2001 07:22 am, you wrote:
> Hello,
>
> does anybody know how to grab still pictures with the kfir-board ?


I have a solution that will produce full-size color captures.

Here's what you do:
1) run mpeg2decode like this:
	mpeg2dec -s -o x11 filename.mpg
	Notes:	I needed "-s" to make mpeg2dec read the kfir
		produced stream, I don't know why.
		Output x11 apparently writes to X and can be
		read.
2) run xvidcap
	xvidcap --fps 1.0 --frames 0 --file "%04d.jpg" 
	Notes:	the frames per second is configurable,
		however it will really bog down your system
		if set too fast.
		the --file just specifies the string passed
		to the printf funciton, so format appropriately.
		my string will print the frames in incrementing
		order, 1, 2, 3,.... 
		You can change .jpg to .png or .xwd and it
		will capture in those formats.
		To setup, click the left crosshairs to remove the
		capture window from the toolbar.
		Then click the right crosshairs with the circle
		and click on the video window - it will now capture
		from that window.


Ciao,
Torsten




Home | Main Index | Thread Index