From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Farkas Levente <lfarkas@lfarkas.org>
Cc: video4linux-list@redhat.com
Subject: Re: how to discover that a device is v4l or v4l2?
Date: Thu, 07 Aug 2008 19:55:49 +0200 [thread overview]
Message-ID: <489B3725.7040105@hhs.nl> (raw)
In-Reply-To: <489B342E.50506@lfarkas.org>
Farkas Levente wrote:
> hi,
> how can i discover whether a video device /dev/video0 is support v4l or
> v4l2? currently if i try to use the wrong type in gstreamer it's hang
> forever and only a hard kill can help.
> is there any way where can i find out the type?
Do an VIDIOC_QUERYCAP ioctl on it if it supports that its v4l2, if not it is v4l1
Regards,
Hans
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
prev parent reply other threads:[~2008-08-07 17:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 17:43 how to discover that a device is v4l or v4l2? Farkas Levente
2008-08-07 17:55 ` Hans de Goede [this message]
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=489B3725.7040105@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=lfarkas@lfarkas.org \
--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