public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* newbie programming help:  grabbing image(s) from /dev/video0, example code?
@ 2008-03-01 21:33 Elvis Chen
  2008-03-01 22:21 ` Carl Karsten
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Elvis Chen @ 2008-03-01 21:33 UTC (permalink / raw)
  To: video4linux-list


Greetings,

I'm a researcher in computer-science.  I'm very new to V4L2 but am reasonably proficient in  C++ programming.  I seek your help in getting something simple done, in the meanwhile I'm trying to learn V4L2 programming API (http://v4l2spec.bytesex.org/)

We have 2 Hauppauge WInTV PVR-150 installed on a ubuntu 7.10 x86_64 machine.  They appear to the linux as /dev/video0 and /dev/video1, respectively.  What we like to do is to capture still images (or video) via s-video inputs on each card, and perform image-processing algorithms on them (in C++) and display the resultant images on the screen (C++/OpenGL).  Basically what I want to do is very simple:  open a linux/video device, capture an image, store it as a C array/buffer, display it, and refresh the C array/buffer.

Both cards work with kdetv and mplayer, so hardware-wise they work fine.

My first attempt was to find a small/simple API to access the linux/video device.  I came across videodog  (http://linux.softpedia.com/get/Multimedia/Video/VideoDog-9261.shtml) but it looks like it isn't been developed anymore (no source either).  Currently I'm trying to learn V4L2 (and trying to utilize the sample capture.c).


Can anyone please give me a pointer on where I should start learning the V4L2 API?  Are there more example codes available?


any help is very much appreciated,

_________________________________________________________________

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-09-30 12:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01 21:33 newbie programming help: grabbing image(s) from /dev/video0, example code? Elvis Chen
2008-03-01 22:21 ` Carl Karsten
2008-03-01 22:49 ` question Michael Williamson
2008-03-02  0:24   ` question Daniel Glöckner
2008-03-01 23:48 ` newbie programming help: grabbing image(s) from /dev/video0, example code? Daniel Glöckner
2008-03-03 20:09   ` Elvis Chen
2008-09-29 20:58   ` Elvis Chen
2008-09-30 12:45     ` Daniel Glöckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox