[NCLUG] V4L Snapshot help

Grant Johnson grant at amadensor.com
Thu Oct 9 20:05:13 MDT 2008


Brian Wood wrote:
> Grant Johnson wrote:
>   
>> I have a working V4L device.   It displays nicely on xawtv and kdetv.
>>     
>
> I haven't tried this with a still camera, but couldn't you just cat the
> device file into a file?
>
> cat /dev/video0 > snapshotfile
>
> It works with video sources.
>
> beww
> _______________________________________________
>   
I tried that, but the resulting file is not useful.   I do not know what 
format it actually is.

I am pretty close with this:

mencoder -tv driver=v4l2:input=1 tv:// -frames 3  -nosound -ovc raw -o 
test.avi
ffmpeg -i test.avi -f image2 test.png

It is fairly resource intensive, but it seems to work.






More information about the NCLUG mailing list