VS: OT : Save images from webcam

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



> Hi, all.
> 
> I want to save the images grab from webcam, but I fund that there 
> is no way 
> to get a unique name for less than 1 second. Since webcam use 
> strftime() to 
> format the output, the minimum unit is one second. Please advice 
> is one of 
> the following is possible :
> 
> 1. Save the jpeg images with a file name indicate 1/5 second, how ?
> 
> 2. Grab all images into one file, is it possible ?
> 
> 3. Redirect the output to another program to output an avi, mpeg 1/2 or 
> mjpeg file ???
> 

1. Use ftime() and get that millisecond part. sprintf() to pad w/zeros.

2. It may be more efficient because of fewer fopen()s but it sure
is gonna be a hell of a lot more trickier to maintain.

3. You may have to use temporary files any way it think.. but if that's
O K then use the "makempeg" script.

	jonk





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux