[NCLUG] V4L Snapshot help

Rob Bayerl verigoth at gmail.com
Thu Oct 9 20:19:12 MDT 2008


What card is the v4l device?  If unknown what v4l driver does it use?
I would suspect it is RTJPEG, maybe image magick can convert it.
Sorry I forgot mplayer doesn't do snapshots..

On Thu, Oct 9, 2008 at 9:05 PM, Grant Johnson <grant at amadensor.com> wrote:
> 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.
>
>
>
> _______________________________________________
> NCLUG mailing list       NCLUG at nclug.org
>
> To unsubscribe, subscribe, or modify your settings, go to:
> http://www.nclug.org/mailman/listinfo/nclug
>



More information about the NCLUG mailing list