Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
from the main zoneminder console, under the option 'source'
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
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.
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.
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
i would be interested in seeing your settings.. as i described mine above..
Error, username and password or auth string must be applied
Now for the settings, in the General tab I have:
Code:
Name: Monitor-1
Source Type: Local
Function: Modect
Enabled: Yes
Linked Monitors: Monitor-1
Max FPS: None
Alarm Max FPS: None
Reference Image Blend %ge: 7
Triggers: None Available
And then in the Source tab I have:
Code:
Device Path: /dev/video0
Capture Method: Video for Linux 2
Device Channel: 0
Device Format: PAL
Capture Palette: RGB24
Capture Width: 320
Capture Height: 240
Preserve Aspect Ratio: No
Orientation: Normal
I have tried a whole load of different device formats and capture palettes and it hasn't made any difference so I've left it at that one because it seems to be the most common from other Zoneminder users.
I am almost positive the camera is /dev/video0 because I did:
Code:
ls /dev/video*
That gave me /dev/video0 only, I only have the one camera plugged in.
Error, username and password or auth string must be applied
Now for the settings, in the General tab I have:
Code:
Name: Monitor-1
Source Type: Local
Function: Modect
Enabled: Yes
Linked Monitors: Monitor-1
Max FPS: None
Alarm Max FPS: None
Reference Image Blend %ge: 7
Triggers: None Available
And then in the Source tab I have:
Code:
Device Path: /dev/video0
Capture Method: Video for Linux 2
Device Channel: 0
Device Format: PAL
Capture Palette: RGB24
Capture Width: 320
Capture Height: 240
Preserve Aspect Ratio: No
Orientation: Normal
I have tried a whole load of different device formats and capture palettes and it hasn't made any difference so I've left it at that one because it seems to be the most common from other Zoneminder users.
I am almost positive the camera is /dev/video0 because I did:
Code:
ls /dev/video*
That gave me /dev/video0 only, I only have the one camera plugged in.
EDIT: Thanks for all your help by the way.
I also ran:
Code:
xawtv /dev/video0
and it worked, XawTV started up with the camera.
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 &
should always be running in the background for these purposes so you can see any new events logged
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.
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.
defaults are admin:admin
can be changed by clicking the options link.
also make sure the zone minder console is 'Running'
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.