From: Carl Karsten <carl@personnelware.com>
Cc: video4linux-list@redhat.com
Subject: Re: newbie programming help: grabbing image(s) from /dev/video0, example code?
Date: Sat, 01 Mar 2008 16:21:51 -0600 [thread overview]
Message-ID: <47C9D6FF.10905@personnelware.com> (raw)
In-Reply-To: <BAY122-W46E61F0928F2E422B22355AA150@phx.gbl>
Elvis Chen wrote:
> 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?
http://lwn.net/Articles/203924/
I think the code you need may be in
http://www.video4linux.org/browser/v4l2-apps/test
btw - I am on a campaign to get better tests, so if you are in the mood, use one
or more of those apps to test your driver, and improve the tests (they are
currently not very extensive.)
Carl K
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-03-01 22:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47C9D6FF.10905@personnelware.com \
--to=carl@personnelware.com \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox