Bug#608790: zoneminder failed to query crop /dev/video0:,Invalid, argument
tags 608790 patch tags 608790 pending thanks On Thu, Jan 13, 2011 at 11:10:53PM +0300, Laurent Lemoine wrote: It's better with your new amd64 deb - Now I get images from my two cameras. good to hear, i'll prepare an upload today or tomorrow. i touched up the patch a little, as the previous one i posted had some whitespace inconsistancies: Index: zoneminder/src/zm_local_camera.cpp === --- zoneminder.orig/src/zm_local_camera.cpp 2011-01-14 11:49:44.0 -0800 +++ zoneminder/src/zm_local_camera.cpp 2011-01-14 11:54:14.0 -0800 @@ -908,7 +908,8 @@ struct v4l2_crop crop; memset( crop, 0, sizeof(crop) ); crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; -if ( vidioctl( vid_fd, VIDIOC_G_CROP, crop ) 0 ) +int crop_rc = vidioctl( vid_fd, VIDIOC_G_CROP, crop ); +if ((crop_rc 0 ) (errno != EINVAL)) { Error( Failed to query crop: %s, strerror(errno) ); if ( verbose ) @@ -917,8 +918,14 @@ sprintf( output, error%d\n, errno ); return( false ); } -if ( verbose ) -sprintf( output+strlen(output), Current: %d x %d\n, crop.c.width, crop.c.height ); +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); +} +} struct v4l2_input input; int inputIndex = 0; But I still can't get informations with zmu -d /dev/video0 -q -v -U *** -P (failed to switch or failed to querry) since that's not absolutely needed for zoneminder to function, we'll have to address that later. And I still can't probe for cameras (like Piratebab) in the webgui. i think that's an upstream issue that will need more work, also later. Thanks for your work, and thanks for the working deb! :) thanks for testing. live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#608790: zoneminder failed to query crop /dev/video0:,Invalid, argument
Processing commands for cont...@bugs.debian.org: tags 608790 patch Bug #608790 [zoneminder] zoneminder failed to query crop /dev/video0: Invalid argument Ignoring request to alter tags of bug #608790 to the same tags previously set tags 608790 pending Bug #608790 [zoneminder] zoneminder failed to query crop /dev/video0: Invalid argument Added tag(s) pending. thanks Stopping processing here. Please contact me if you need assistance. -- 608790: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608790 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608790: zoneminder failed to query crop /dev/video0:,Invalid, argument
Hello, Sorry it took so long. It's better with your new amd64 deb - Now I get images from my two cameras. But I still can't get informations with zmu -d /dev/video0 -q -v -U *** -P (failed to switch or failed to querry) And I still can't probe for cameras (like Piratebab) in the webgui. Thanks for your work, and thanks for the working deb! :) Laurent -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608790: zoneminder failed to query crop /dev/video0: Invalid, argument
On Fri, Jan 07, 2011 at 12:29:39PM -0800, Vagrant Cascadian wrote: On Fri, Jan 07, 2011 at 04:55:35PM +0300, Laurent Lemoine wrote: Piratebab and I are quite willing to test your modified package! how to get it? i built both i386 and amd64 packages, and they can be installed by adding the following to /etc/apt/sources.list: deb http://people.debian.org/~vagrant/debian UNRELEASED/ please test and report back. i'll also try to do some testing with it. live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#608790: zoneminder failed to query crop /dev/video0: Invalid, argument
On Fri, Jan 07, 2011 at 04:55:35PM +0300, Laurent Lemoine wrote: Piratebab and I are quite willing to test your modified package! how to get it? i built packages for i386 with the previously mentioned patch and uploaded to a repository. add to /etc/apt/sources: deb http://llama.freegeek.org/~vagrant/debian UNRELEASED/ then run: apt-get update apt-get upgrade to build from source (if you need amd64), add to /etc/apt/sources.list: deb-src http://llama.freegeek.org/~vagrant/debian UNRELEASED/ then run: apt-get update apt-get install build-essential devscripts fakeroot apt-get build-dep zoneminder apt-get source zoneminder cd zoneminder-XXX debuild -us -uc -B dpkg -i ../zoneminder_XXX_ARCH.deb i'll try to upload an amd64 build as well, but don't immediately have an amd64 machine available. live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org