You are not logged in.

#1 2013-02-08 16:08:37

ForeverAgo
Member
Registered: 2013-02-07
Posts: 13

[SOLVED] Checking if a USB webcam is V4L1 or V4L2 from CLI without GUI

Hi,

I'm trying to setup zoneminder.
I have the whole thing running, only I can't get my webcams to work with zoneminder.

I tried this

lgp300 ~ $ zmu -d /dev/video1 -q -v
Error, failed to enumerate standard 0: Success
lgp300 ~ :( $ zmu -d /dev/video2 -q -v
Error, failed to enumerate standard 0: Success

So I wanted to check if the webcams were compatible with V4L2 as it seems to be needed by zoneminder.

I saw suggested on forums to use gstreamer-properties
However, this requires a GUI.

I tried for the past 2 hours to install and run LXDE to no avail and I don't feel like trying anymore. Especially considering I am doing that ONLY to run gstreamer-properties and will remove it just after because I want to keep the system lean.

Can anyone suggest an easier method to find out whether these webcams use V4L1 or V4L2?

Thanks,

Last edited by ForeverAgo (2013-02-10 14:50:48)

Offline

#2 2013-02-08 16:52:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Checking if a USB webcam is V4L1 or V4L2 from CLI without GUI

You might look through the output of mplayer tv:// to see if it tells you.

For real fun, try mplayer tv:// -vo aa -monitorpixelaspect 0.5 -quiet


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2013-02-08 18:58:26

ForeverAgo
Member
Registered: 2013-02-07
Posts: 13

Re: [SOLVED] Checking if a USB webcam is V4L1 or V4L2 from CLI without GUI

Thanks, but this uses /dev/video0 which is the built in cam (that works with zoneminder but that I can't use with zoneminder)

How can I try /dev/video1 and /dev/video2?

Offline

#4 2013-02-09 15:55:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Checking if a USB webcam is V4L1 or V4L2 from CLI without GUI

How about v4l2-ctl --list-devices  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2013-02-09 16:33:55

ForeverAgo
Member
Registered: 2013-02-07
Posts: 13

Re: [SOLVED] Checking if a USB webcam is V4L1 or V4L2 from CLI without GUI

ewaller wrote:

How about v4l2-ctl --list-devices  ??

Exactly what I needed, thanks

Offline

Board footer

Powered by FluxBB