Page 1 of 2
Posted: Thu Feb 09, 2006 8:22 pm
by r0y
Nice that did the trick, but then i got antother error.
Feb 9 22:20:37 surveilance zmc_dvideo0[5590]: ERR [Failed to set picture attributes: Invalid argument]
Feb 9 22:20:37 surveilance pwc: Could not find suitable size.
Feb 9 22:20:37 surveilance zmc_dvideo0[5590]: ERR [Failed to set window attributes: Numerical result out of range]
Where do i config this?
Posted: Fri Feb 10, 2006 1:05 am
by cordel
In where you configured your device and camera settings.
The values you entered are not accepted by your card.
Try some basic settings and work your way from there like 320x240 rgb or b/w.
Regards,
Corey
Posted: Fri Feb 10, 2006 1:53 am
by r0y
Ok did that. came a little further to here:
Feb 10 03:55:58 surveilance zmc_dvideo0[22468]: ERR [Failed to set picture attributes: Invalid argument]
Feb 10 03:55:58 surveilance zmc_dvideo0[22468]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Posted: Fri Feb 10, 2006 3:39 am
by cordel
Both answers are in the FAQ and in the Manual.
Regards,
Corey
Posted: Fri Feb 10, 2006 11:15 am
by r0y
I've checked the FAQ, heres what i've done, tried the pix size in FAQ and 640x800 as it says on the webcam Philips ToUcam FUN II PCVC 830K
Error:
Feb 10 13:11:20 surveilance zmc_dvideo0[7451]: ERR [Failed to set picture attributes: Invalid argument]
I also did the shared memory "upgrade" in FAQ and rebooted i still get:
Feb 10 13:11:20 surveilance zmc_dvideo0[7451]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
I went throug the logs here are some more:
Feb 10 13:11:08 surveilance zmwatch[7428]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
When i look at ipcs after run of zmpkg the apache2 is removed there, and apache is dead. Restart of apache and ipcs gives still none, i think i have to reboot to make it work again. But i've set the same shared memory address in zm config.
Feb 10 13:10:16 surveilance zmfix[7378]: ERR [Can't chmod /dev/v4l/video0 to 20666: Operation not permitted]
Posted: Fri Feb 10, 2006 7:23 pm
by cordel
r0y wrote:I've checked the FAQ, heres what i've done, tried the pix size in FAQ and 640x800 as it says on the webcam Philips ToUcam FUN II PCVC 830K
Error:
Feb 10 13:11:20 surveilance zmc_dvideo0[7451]: ERR [Failed to set picture attributes: Invalid argument]
I think this error contributes to the next error you are getting. If the image is not able to be captured, then there will be nothing in the shared mem.
r0y wrote:
I also did the shared memory "upgrade" in FAQ and rebooted i still get:
Feb 10 13:11:20 surveilance zmc_dvideo0[7451]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
I went throug the logs here are some more:
Feb 10 13:11:08 surveilance zmwatch[7428]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
When i look at ipcs after run of zmpkg the apache2 is removed there, and apache is dead. Restart of apache and ipcs gives still none, i think i have to reboot to make it work again. But i've set the same shared memory address in zm config.
Feb 10 13:10:16 surveilance zmfix[7378]: ERR [Can't chmod /dev/v4l/video0 to 20666: Operation not permitted]
I'm not familuar with the flavor of linux you are useing but is /dev/v4l/video0 correct?
All other versions of Linux that I have used have always been /dev/videoN.
Regards,
Corey
Posted: Fri Feb 10, 2006 9:37 pm
by lazyleopard
I think it'll depends a bit which flavour of device system's being used. On my Gentoo system /dev/video0 is a link to /dev/v4l/video0.
Posted: Fri Feb 10, 2006 10:31 pm
by cordel
Must be, I just check Fedora and the /dev only has a link from video -> video0 and no v4l anywhere.
At least now I know or at least have an idea
Thanks Lazy
Posted: Fri Feb 10, 2006 10:45 pm
by jameswilson
i have one of the philips things but as yet have failed to get it running with linux but
", tried the pix size in FAQ and 640x800 as it says on the webcam Philips ToUcam FUN II PCVC 830K"
thats some high res toucam,
Posted: Fri Feb 10, 2006 11:06 pm
by r0y
jameswilson wrote:i have one of the philips things but as yet have failed to get it running with linux but
", tried the pix size in FAQ and 640x800 as it says on the webcam Philips ToUcam FUN II PCVC 830K"
thats some high res toucam,
Yes it is, but i've read about it and is philips bogus 640x800... But thats what is says on the box... and also 800x600 snapshot... But anyone know what pic attrib i should set it to?
Posted: Fri Feb 10, 2006 11:33 pm
by r0y
i think i have come a little further with errors:
Feb 11 00:30:18 surveilance zmdc[11103]: INF ['zmc -d /dev/video0' started at 06/02/11 00:30:18]
Feb 11 00:30:18 surveilance zmdc[11029]: INF ['zmc -d /dev/video0' starting at 06/02/11 00:30:18, pid = 11103]
Feb 11 00:30:18 surveilance zmc_dvideo0[11103]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 00:30:18 surveilance zmdc[11029]: INF ['zmc -d /dev/video0' died, signal 10]
Feb 11 00:30:58 surveilance zmdc[11029]: INF [Starting pending process, zmc -d /dev/video0]
Feb 11 00:30:58 surveilance zmc_dvideo0[11152]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 00:30:58 surveilance zmdc[11152]: INF ['zmc -d /dev/video0' started at 06/02/11 00:30:58]
Feb 11 00:30:58 surveilance zmdc[11029]: INF ['zmc -d /dev/video0' starting at 06/02/11 00:30:58, pid = 11152]
Feb 11 00:30:58 surveilance zmdc[11029]: INF ['zmc -d /dev/video0' died, signal 10]
it looks like this now. And funny think.. it doesn't open the video0 device cause then a red light on the cam indicates it, cat /dev/video0 opens the device..
Posted: Sat Feb 11, 2006 7:30 pm
by r0y
No body knows?
Posted: Sat Feb 11, 2006 10:54 pm
by jameswilson
im in unsure teritory now but does cat grab a stll from the webcam and save it as a jpeg, if so can you see the res of the image from that pic and use those settings, also i beleive webcams use a different pallate one of the yuv ones but i as i have failed to get mine working im probably not best placed to help
Sorry
James
Posted: Sat Feb 11, 2006 10:57 pm
by lazyleopard
Your best bet would probably be to try getting the camera working with xawtv first. It's much easier to try different settings and so on with xawtv, and options like -hwscan make figuring out what's where a whole heap easier...
Posted: Sun Feb 12, 2006 3:51 am
by r0y
xawtv -c /dev/video0 works flawlessly on the camera...