Cant get any video

Forum for questions and support relating to the 1.24.x releases only.
mooninite

Post by mooninite »

I grabbed the Oct. 16th tarball of ZoneMinder 1.24.0 but I cannot get my Logitech Quickcam 9000 Pro working with it.

Code: Select all

$ sudo /usr/local/bin/zmu -d /dev/video -q -v
Error, failed to get channel 0 attributes: Invalid argument
I also get the same error from "zmc" in the syslog messages when I set it up as a monitor.

Is there a special switch for V4L2 support?

The camera works. I can use Skype, mjpg-streamer, or any other video program with the camera just fine.

Fedora 9 x86_64
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Use /dev/video0
/dev/video s just a symlink
mooninite

Post by mooninite »

cordel wrote:Use /dev/video0
/dev/video s just a symlink
Yes... I know it is a symlink. A symlink will function one-for-one the same as the real hard file.

Besides, using /dev/video0 in the command line makes no difference. Same error message.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

mooninite wrote:
cordel wrote:Use /dev/video0
/dev/video s just a symlink
Yes... I know it is a symlink. A symlink will function one-for-one the same as the real hard file.

Besides, using /dev/video0 in the command line makes no difference. Same error message.
Okay if you say so.
Last time I checked, zmfix needed direct access to the actual device to change permissions as you can't change permissions on the device through a symlink, but what do I know?

Also please next time create a new thread under the appropriate topic and don't hijack a thread and take it off subject.

Thx
mooninite

Post by mooninite »

That's because a symlink DOESN'T USE permissions itself. Permissions of the hard file take precedent. You, in fact, know nothing about symlinks.

/dev/video0 had 666, rw-rw-rw-, Read write for all users, whatever method you can understand.

I didn't hi-jack ANY thread. It was about V4L2 support. My webcam *REQUIRES* V4L2 support. It won't work with V4L1. Zone Minder only has V4L1 support.

If you're going to be a jack ass, I'm going to erase Zone Minder from my machine. Good luck.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

mooninite wrote: If you're going to be a jack ass, I'm going to erase Zone Minder from my machine. Good luck.
Wow. What a threat.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Take it how you wish, if you want to resort to name calling and never return that's fine too, your prerogative.
But I have found that the symlink as far as ZM is concerned does not translate correctly for what ever reason. I tried to research several years ago to no avail.
And yes the discussion was about implementing V4L2, Not troubleshooting your card, so it was digressing the topic of which was old, and my suggestion and splitting the topic was for you benefit to make it more visible under the topic of the version your using.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Gee... I am sure Cordel really wants to help you now. I am not much interested either. I guess that Leaves Phil, or James Willson, and then you are just out of luck. Too bad you insulted the most helpful guy on the board first.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

He did offer good luck, and he's leaving. I'd say that ended fairly positively. :)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

lol
id rather go with cordels theorys on it thanks.

Anyway
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I wish I had good theory on it :lol:
Here is what I do know:
The only difference from using a symlink is that a symlink has it's own inode and points to the full path to the file unlike a hardlink that has the inode of the file as it points to the inode.

What we have seen under no certain circumstances, The symlink does not work for the video device, which leaves us to wonder if something is trying to use the inode which gets lost using the symlink inode.
blindvic
Posts: 11
Joined: Thu Nov 13, 2008 3:56 pm

Post by blindvic »

Hi!
Can you help me?
I think i have the same problem. Symptoms:

Code: Select all

zmu -d /dev/video0 -q -v 
Error, failed to get channel 0 attributes: Invalid argument
ID 046d:08ce Logitech, Inc. QuickCam Pro 5000
xawtv shows the video from the camera
Ubuntu 8.10
blindvic
Posts: 11
Joined: Thu Nov 13, 2008 3:56 pm

Post by blindvic »

linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

blindvic wrote:Here is the screenshot
http://www.flickr.com/photos/32409114@N ... /?edited=1

Anyone?
ZM wont be able to access the device while it is being used by another process.
blindvic
Posts: 11
Joined: Thu Nov 13, 2008 3:56 pm

Post by blindvic »

Well, i just wanted to show that xawtv works.
But ZM doesn't, even there's no other program working with the device.

Code: Select all

#zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument
Locked