LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cameras Don't Show Up In Zoneminder (https://www.linuxquestions.org/questions/linux-software-2/cameras-dont-show-up-in-zoneminder-759802/)

zdunham 10-09-2009 12:53 PM

Quote:

Originally Posted by pickled (Post 3713695)
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.

Thanks very much for the idea but I tried it an it didn't change anything. I think I followed that same tutorial and have not had success yet. Thanks for the reply though.

centosboy 10-12-2009 07:25 AM

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]
i have included my images tab.compare to see if might have misconfigured something.

zdunham 10-12-2009 07:44 AM

Quote:

Originally Posted by centosboy (Post 3716338)
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]
i have included my images tab.compare to see if might have misconfigured something.

Mine looks exactly like yours and it did not make a difference. I tried to run ffmpeg from the command line and I got the error "cannot find a suitable output format for /dev/video0", I'm not sure why that would be if XawTV runs the camera perfectly fine?

centosboy 10-13-2009 02:41 AM

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...

zdunham 10-13-2009 07:37 AM

Quote:

Originally Posted by centosboy (Post 3717338)
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...

Thanks for all of your help anyways!

centosboy 10-13-2009 07:56 AM

Quote:

Originally Posted by zdunham (Post 3717547)
Thanks for all of your help anyways!

Still - keep asking in the Zoneminder forum. You may get the help of the Zoneminder creater.

zdunham 10-13-2009 08:04 AM

Quote:

Originally Posted by centosboy (Post 3717564)
Still - keep asking in the Zoneminder forum. You may get the help of the Zoneminder creater.

Thanks. I have a thread open on that forum and getting some replies but still no solutions.

zdunham 10-13-2009 08:07 AM

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
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
  libavutil    49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat  52.31. 0 / 52.31. 0
  libavdevice  52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale    0. 7. 1 /  0. 7. 1
  libpostproc  51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:18:41, gcc: 4.3.3
[video4linux2 @ 0x8bb9ac0][3]Capabilities: 4000001
[video4linux2 @ 0x8bb9ac0]Cannot find a proper format.
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.
someone@something:#


zdunham 10-14-2009 11:12 AM

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
There were three of these and the offset went 1, 2, then 3. Any ideas?

centosboy 10-15-2009 03:49 AM

Quote:

Originally Posted by zdunham (Post 3719067)
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
There were three of these and the offset went 1, 2, then 3. Any ideas?


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.....

zdunham 10-15-2009 07:37 AM

Quote:

Originally Posted by centosboy (Post 3719997)
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.....

I have not tried that but I will if I have time to today, thanks for that idea.

zdunham 10-15-2009 08:16 AM

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.

relyt05 10-10-2010 05:31 PM

Quote:

Originally Posted by pickled (Post 3713695)
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.

After working on getting my webcam to work with ZM the above command, "sudo chmod 666 /dev/video0", FINALLY got it to work.

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.

ejtttje 11-17-2010 02:09 PM

Quote:

Originally Posted by relyt05 (Post 4123176)
After working on getting my webcam to work with ZM the above command, "sudo chmod 666 /dev/video0", FINALLY got it to work. There's only one problem now, I have to re-enter this every time I restart my computer.

One solution is to edit udev settings to change the permissions it assigns to the device.

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.

no2498 11-19-2010 10:40 AM

i seen you had the cam set to mpeg
? you try avi file type yet


All times are GMT -5. The time now is 01:56 PM.