Cameras Don't Show Up In Zoneminder
Hi all.
Trying to set up a video surveillance system with Zoneminder on Ubuntu Jaunty. I am using a Logitech Quickcam for this. The camera works with Ubuntu, when I run XawTV I can see everything clear as day. When I try to get the camera to show up in Zoneminder I get no picture. I have tried a bunch of different device format and color combinations and still cannot get it to show up. If anyone has any experience with Zoneminder or has had this problem please help! Thanks in advance. |
If a moderator feels that this belongs in the hardware section or somewhere else please feel free to move it wherever I am likely to get the best answers. Thanks a lot.
|
bump
|
Quote:
select the link. then check settings on general and source tab. mine are like so: general - name -> cameraname sourcetype ->remote (yours would be local if the cam is locally attached) function -> modetect linkedmonitors -> cameraname ref image blend %ge -> 7 source - protocol -> http method -> simple remote hostname -> user: password@remote.hostname port -> port width -> 640 height -> 480 orientation -> normal bear in mind im using an ip camera, but your settings should look similar. also please find where you logs are zoneminder console -> options -> paths tail -f these logs whilst restarting zm let me knw how it goes NB - the section where i entered remote hostname, i had to put a space after user: - only in the post so i didnt get that smiley icon. if your cam uses login details, you would enter no space between user: password |
Thanks for the reply, I've been rather busy today I hope to try this and get back to you by the end of today though.
|
OK, my setup is local, I do have the camera plugged directly into the computer at the moment.
The log file that caught my attention the most was zmdc.log which revealed this: 10/05/2009 16:22:32.055844 zmdc[22302].INF [Starting pending process, zmc -d /dev/video0] 10/05/2009 16:22:32.057722 zmdc[22302].INF ['zmc -d /dev/video0' starting at 09/10/05 16:22:32, pid = 19336] 10/05/2009 16:22:32.099510 zmdc[22302].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6] To me, at least, it looks like it tried to start the camera and failed but I couldn't find much on what exit status 6 is yet. I shall continue hunting. Thanks for whatever information you can give and have given. EDIT: After googling exit status 6, every forum topic I could find on it was inconclusive as to the problem. I tried changing the device format and color multiple times, even tried gray as was recommended somewhere else and that did not work either. |
Quote:
have you specified the capture width and height in the camera source settings? looks like your camera isnt being detected. can you confirm that the camera is actually on /dev/video0? dmesg should tell this. what is your output from Code:
zmu -q -d /dev/video0 -v |
OK when I try that command I get:
Code:
Error, username and password or auth string must be applied Code:
Name: Monitor-1 Code:
Device Path: /dev/video0 I am almost positive the camera is /dev/video0 because I did: Code:
ls /dev/video* EDIT: Thanks for all your help by the way. I also ran: Code:
xawtv /dev/video0 |
Quote:
must be some settings then run Code:
zmu -q -d /dev/video0 -U user --password password also whilst doing any restarts, be sure to be tailing the logs in the background. something like Code:
tail -f /path/to/zmlogs & |
Perhaps this is a stupid question, not sure. There was a never a time to create a user and password during installation so is there a default administrator user and password for Zoneminder? If not how can I create a user and password after installation? Just for the sake of it I tried using the Apache username and password which did not work.
|
Quote:
can be changed by clicking the options link. also make sure the zone minder console is 'Running' |
OK, admin/admin worked thanks for that, I ran
Code:
zmu -q -d /dev/video0 -U username -P password |
Maybe this will help also. I ran "v4l-info" and this is what I got:
Code:
### v4l2 device info [/dev/video0] ### |
Maybe this helps a little bit too. This is the debug log.
Code:
10/08/09 09:24:16.040690 zmc_dvideo0[10255].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.10255] |
Device permissions?
Did you check the permissions on /dev/video0? I had to run 'sudo chmod 666 /dev/video0' to get my cameras to show up.
I'm new to Linux and Zoneminder and basically just followed the tutorial I found here: "Ubuntu 9.04 (Jaunty) desktop with graphical interface". Sorry, I can't post the link since I'm a new member. I have a brand new Jaunty install (and update) and Zoneminder install using the Synaptic Package Manager. It won't surprise me if I run into more problems. |
Quote:
|
1 Attachment(s)
the line that stands out the most in the logs is this one
Code:
10/08/09 09:24:16.060996 zmc_dvideo0[10255].FAT-zm_local_camera.cpp/386 [Failed to set video format: Invalid argument] |
Quote:
|
Im at a loss then.
My only differences are an IP cam and centos.. Zoneminder can be a pain to get going. I first attempted a couple of years ago...and failed...but then tried again recently and once it gets going, it is very good at what it does. All i can say is do not give up and keep searching for answers... |
Quote:
|
Quote:
|
Quote:
|
Do you know anything about ffmpeg? This is what happens when I try to run it from the command line:
Code:
someone@somewhere:# ffmpeg -f video4linux2 -s 640x480 -r 30000/1001 -i /dev/video0 -y webcam.avi |
OK, I reformatted the box and followed a different tutorial. After doing the whole installation from scratch, I got the source showing up green instead of red in the Zoneminder WUI. There is still no picture when I open up the monitor but I go to settings and there is nothing set for brightness, hue, etc. If I try to set them I get this error:
Code:
Notice: Undefined offset: 1 in /var/www/includes/actions.php on line 217 |
Quote:
i'm afraid not. bit off topic, but have you tried running zm from a livecd installation? at least this way you can decide if the problems are actually from hardware or software..... |
Quote:
|
This is going to sound really dumb, maybe, but can these webcams record and save video without a capture card? They are locally attached via USB.
|
Quote:
There's only one problem now, I have to re-enter this every time I restart my computer. This is probably a total noob question - Does anyone know how I can make this permanent so that it automatically assigns the permissions? I don't want to have to do it every time I restart the computer. |
Quote:
Another solution (probably easier) is to add 'www-data' (or whatever username the apache daemon is running as) to the 'video' group (or whatever the group name is for /dev/video0), assuming your current udev settings are giving permissions to the group as well as the owner. |
i seen you had the cam set to mpeg
? you try avi file type yet |
Zone minder : Blank image screen, broken image screen
Thanks pickled. I am also experienced the same err and your text " Ubuntu 9.04 (Jaunty) desktop with graphical interface" helps me to get rid off from the errors.
Major issue: The painful major issues are blank screen ( dark screen ), broken image screen. To resolve these errors you need to change the source settings upto both the " Function " and " source " become orange colour text. This is my configuration and its works for me Device path : /dev/video0 Capture method : video for linux version 2 Device Channel : 0 Device Format : PAL Capture Palette : YUYV Thanks Sathish |
All times are GMT -5. The time now is 12:42 PM. |