I'm trying to set up zoneminder on Ubuntu 10.04LTS
I used this instruction http://www.zoneminder.com/wiki/index.ph ... g,_etc.%29
The installation went trough with little hassle, but some.
now i'm stuck @ "Set up video sources" part.
when I try
Code: Select all
root@fjolsmidjan:/var/log/zm# grep bttv /var/log/syslog
root@fjolsmidjan:/var/log/zm#
now, if I do
Code: Select all
zmu -d /dev/video1 -q -v
Code: Select all
Root@fjolsmidjan:/var/log/zm# zmu -d /dev/video0 -q -v
Error, failed to query crop capabilities /dev/video0: Invalid argument
Root@fjolsmidjan:/var/log/zm#
Code: Select all
ZoneMinder Console - Running - v1.24.2
http://www.zoneminder.com/forums/viewto ... 9472#59472
I cant find zm_local_camera.cpp file so i'm stuck here to.dclarke wrote:A USB camera that doesn't support cropping will produce an error message "Error, failed to query crop: /dev/video0: Invalid argument" from zmu -q -v.
Failures are exhibited in zmu, and other places that rely on LocalCamera::GetCurrentSettings.
The fault is in LocalCamera::GetCurrentSettings.
The error arises from the fact that ioctl VIDIOC_G_CROP returns -1 and errno = EINVAL to indicate that cropping is not supported. (Forum does not allow me to paste the link). LocalCamera::GetCurrentSettings treats any negative rc from ioctl VIDIOC_G_CROP as grounds for abnormal termination.
The fix is straightforward and short. All changes are in zm_local_camera.cpp as follows:
Code: Select all
911,912c911 < int crop_rc = vidioctl( vid_fd, VIDIOC_G_CROP, &crop ); < if ((crop_rc < 0 ) && (errno != EINVAL)) --- > if ( vidioctl( vid_fd, VIDIOC_G_CROP, &crop ) < 0 ) 921,928c920,921 < if ( verbose ) { < if (crop_rc >= 0) { < sprintf( output+strlen(output), " Current: %d x %d\n", crop.c.width, crop.c.height ); < } < else { < sprintf( output+strlen(output), " Current: Cropping is not supported\n"); < } < } --- > if ( verbose ) > sprintf( output+strlen(output), " Current: %d x %d\n", crop.c.width, crop.c.height );
then I tried the fixx that willberg mentioned (about 13 post's down in the link above)
The config file I made did not work so I changed it according to aruzsi suggestion, then I was able to run the config
Code: Select all
root@fjolsmidjan:/home/playman# ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0 //192.168.111.191:8090/feed1.ffm
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
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 Mar 31 2011 18:53:20, gcc: 4.4.3
[video4linux2 @ 0x8f732c0][3] Capabilities: 5000001
-
Same as if I run
Code: Select all
playman@fjolsmidjan:~$ sudo ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0 //192.168.111.191:8090/feed1.ffm
Code: Select all
[video4linux2 @ 0x93f82c0][3] Capabilities: 5000001
Code: Select all
[video4linux2 @ 0x8f732c0][3] Capabilities: 5000001
please bear in mind that i'm very new to ubuntu and linux
Any ideas?
EDIT
I forgot to mention that I have logitech QuickCam Pro 3000 (V-UF6)