No picture, synch errors, mysqld errors...

Support and queries relating to all previous versions of ZoneMinder
User avatar
nugget
Posts: 42
Joined: Mon Dec 08, 2003 7:52 pm
Location: Sydney, Australia
Contact:

Post by nugget »

Have a look at the following link http://www.zoneminder.com/forums/viewto ... d+argument

tech_fixer suggests you turn off the ZM_STRICT_VIDEO_CONFIG option.

You did mention before it was a laptop, and therfore a USB webcam - I'd conveniently ignored this comment...

I attempted to install ZM on a P2 300 mHz laptop, 128 mb memory and eventually gave in. I got xawtv working, but never managed to get ZM capturing video. Apart from this config running like a dog, it showed promise but unfortunately I believe the drivers for the webcam became a problem.

Here's an extract from my installation notes:
USB Webcam, Method 1:
Seriously think about not doing this, unless you have no choice (eg laptop which only has video input via USB).

Firstly make sure you’ve got a supported USB camera. It MUST support video4linux, which apparently is pretty finicky about what chipsets it supports. I managed to get a Logitech Quickcam Express working, and had to download the Quickcam drivers from http://sourceforge.net/project/showfile ... p_id=12924 – I used the qc-usb-0.5.1 download.
“make all”, then
modprobe videodev
modprobe usb-uhci
insmod ./quickcam.o compatible=3

Add these last 3 lines to a startup script in /etc/init.d. Use “xawtv –hwscan” to see if the driver has picked up the USB camera OK (should be the /dev/video* device), then gather the camera attributes with “zmu -d <device_no> -q –v”, and configure the camera within zm.

Xawtv –device /dev/videon –fb –remote
USB Webcam, Method 2:
Obtain qce-ga from sourceforge: http://sourceforge.net/projects/qce-ga/

Follow the advice in the general forums to fix the code http://sourceforge.net/forum/forum.php? ... m_id=40677:

Okay, I followed the link mentioned above, poked around in the quickcam.c code and was able to compile the module finally. Feeling great about myself at the moment - me as a newbie just changing for the first time open source programming code :).

I think the following solution is the right one:
Search for the function "static int quickcam_mmap(...)".
This function has 3 arguments. Now add before these 3 arguments a 4th argument struct:
vm_area_struct *vma
The function should now look like this:
static int quickcam_mmap(struct vm_area_struct *vma, struct video_device *dev, const char *adr, unsigned long size)

Now scroll down to:
if (remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED)
And change it to:
if (remap_page_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)

Try running make again and it should work....

In a nutshell, this is what I think what was wrong: RedHat 9 uses a customized 2.4.20-8 kernel. In this customized kernel they used in stead of the old remap_page_range() function which uses 4 args, the newer remap_page_range() function which is at the moment only used in the 2.5 kernels (and will thus be used in the future 2.6 kernel). This new version of the function uses a fifth argument (struct vm_area_struct *vma). The above change just added this argument to the quickcam.c code.

Hope it works for all of you. Good luck!

jisse

Now compile
I had the most success with method 1 - this is what I eventually did to get xawtv working. Method 2 above indicates a problem with RedHat, so this mightn't be applicable for you. After rereading my notes above, specifically "Seriously think about not doing this, unless you have no choice ... " I remember the bitterness I went through to get this working, eventually giving in! You've renewed my interest in this particular project.
AngryButler
Posts: 9
Joined: Mon Jul 26, 2004 2:34 pm
Location: Grand Haven, Mi, USA

Ah crap.

Post by AngryButler »

Thanks for your help ya'll. I truly do appreciate the help, I'm not giving up, but am tabling this problem. I simply don't know what else to try. If anyone comes up with any ideas, let me know and I'll give 'em a try.

Thanks again.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi,

I've been away on holiday but am back now and able to help. I've read the thread but am not quite sure where you are with everything, can you quickly summerise the current state of play?

Phil,
AngryButler
Posts: 9
Joined: Mon Jul 26, 2004 2:34 pm
Location: Grand Haven, Mi, USA

Hello

Post by AngryButler »

Thanks for asking Phil, hope your holiday was a good one,

I've gotten things to somewhat work (as of yesterday). I read in the apache logs (which I didn't previously know to check) that zms could not be found in /usr/lib/cgi-bin (I think that's where it was looking.) The zms file was actually in /var/www/zm/cgi-bin. I copied zms to /usr/lib/cgi-bin and was able to get a picture.

I also had a problem specifying the wrong color palette for a Philips QuickCam 4000, causing the "invalid parameter" problem.

I'm not sure why it was looking in /usr/lib/cgi-bin, I think I had my paths correct in zmconfig.txt, and in the web "options" parameters - I wonder if it was a throwback from a previous compile.

Now my only problem is the streaming part, it's a bit slow and choppy - I'm current not able to fully articulate the problem, nor have I really searched the forums. I'll probably start a new thread if I can't figure it out.

Thanks again for asking and your contribution to open source software!
Locked