Posted: Mon Nov 17, 2008 7:34 am
Anyone?
I would really appreciate your help.
I would really appreciate your help.
Code: Select all
vic@vic-desktop:~$ lsusb
...
Bus 001 Device 003: ID 046d:08ce Logitech, Inc. QuickCam Pro 5000
...
Code: Select all
/temp/zmdc.log
...
07/05/09 16:43:33.088819 zmdc[3248].INF [Command 'zmc -d /dev/video0' removed from pending list at 09/07/05 16:43:33]
07/05/09 16:43:33.260833 zmdc[3248].INF ['zmc -d /dev/video0' starting at 09/07/05 16:43:33, pid = 6398]
07/05/09 16:43:33.294068 zmdc[3248].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
07/05/09 16:43:33.294410 zmdc[3248].INF [Starting pending process, zmc -d /dev/video0]
07/05/09 16:43:33.314147 zmdc[3248].INF [Can't find child with pid of '6400']
07/05/09 16:43:33.314663 zmdc[3248].INF ['zmc -d /dev/video0' starting at 09/07/05 16:43:33, pid = 6400]
07/05/09 16:43:33.460676 zmdc[3248].WAR [Can't find process with command of 'zma -m 1']
Code: Select all
vic@vic-desktop:~$ export ZM_DBG_PRINT=1
vic@vic-desktop:~$ export ZM_DBG_LEVEL=9
vic@vic-desktop:~$ zmu -d /dev/video0 -q -v
07/05/09 17:02:03.378474 zmu[-1].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
07/05/09 17:02:03.446908 zmu[-1].ERR-zm_local_camera.cpp/866 [Failed to get channel 0 attributes: Invalid argument]
Error, failed to get channel 0 attributes: Invalid argument
README.Debian:All documentation for ZoneMinder is now online at
http://www.zoneminder.com/wiki/index.php/Documentation
zoneminder for Debian
---------------------
There is one manual step to get the web interface working.
You need to link /etc/zm/apache.conf to /etc/apache2/conf.d/zoneminder.conf,
then reload the apache config (i.e. /etc/init.d/apache2 reload)
-- Peter Howard <pjh>, Wed, 10 Jan 2007 16:35:51 +1100
Already did this before. Anyway XawTV is working under regular user.What happens if you chmod 777 /dev/video0
Code: Select all
vic@vic-desktop:~$ export ZM_DBG_PRINT=1
vic@vic-desktop:~$ export ZM_DBG_LEVEL=9
vic@vic-desktop:~$ zmu -d /dev/video0 -q -v
07/07/09 20:58:45.489794 zmu[-1].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
Video Capabilities
Name: Camera
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 352
Height: 288
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 8
Brightness: 0
Hue: 32768
Colour :0
Contrast: 0
Whiteness: 0
Channel 0 Attributes
Name: spca561
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
vic@vic-desktop:~$ zmc --device /dev/video0
07/07/09 21:00:03.543811 zmc_dvideo0[-1].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
07/07/09 21:00:03.553406 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1708 [Got 1 monitors]
07/07/09 21:00:03.553592 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/287 [V4L2 support enabled, using V4L2 api]
07/07/09 21:00:03.555487 zmc_dvideo0[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
07/07/09 21:00:03.555590 zmc_dvideo0[-1].DB1-zm_monitor.cpp/345 [mem.size=12166644]
07/07/09 21:00:03.555669 zmc_dvideo0[-1].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Invalid argument]
Code: Select all
mu -d /dev/video0 -q -v
07/07/09 20:47:08.461281 zmu[-1].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
Video Capabilities
Name: USB Camera (041e:4051)
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 640
Height: 480
Picture Attributes
Palette: 0 - Unknown
Colour Depth: 8
Brightness: 32896
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 26214
Channel 0 Attributes
Name: zc3xx
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
vic@vic-desktop:~$ zmc --device /dev/video0
07/07/09 20:56:39.401197 zmc_dvideo0[-1].INF-zm_debug.c/224 [Debug Level = 9, Debug Log = <none>]
07/07/09 20:56:39.412000 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1708 [Got 1 monitors]
07/07/09 20:56:39.412180 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/287 [V4L2 support enabled, using V4L1 api]
07/07/09 20:56:39.412854 zmc_dvideo0[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
07/07/09 20:56:39.412912 zmc_dvideo0[-1].DB1-zm_monitor.cpp/345 [mem.size=3073524]
07/07/09 20:56:39.412993 zmc_dvideo0[-1].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Permission denied]
vic@vic-desktop:~$
Hmm, well this error needs to be dealt with. You will not be able to see any video if ZM can not write to it's buffer space. run ipcs with ZM stopped and make sure there are no left shared memory segments for ZM, and all the segments for ZM should be owned by the apache user. If there are left segments, either remove them manually or reboot.blindvic wrote: 07/07/09 20:56:39.412993 zmc_dvideo0[-1].ERR-zm_monitor.cpp/378 [Can't shmget, probably not enough shared memory space free: Permission denied]
[/code]
cordel wrote:run ipcs with ZM stopped and make sure there are no left shared memory segments for ZM, and all the segments for ZM should be owned by the apache user. If there are left segments, either remove them manually or reboot.
Code: Select all
vic@vic-desktop:~$ sudo ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7a6d0001 0 www-data 700 12166644 0
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 0 www-data 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
If you do in fact have ZM stopped, the segment with the key 0x7a6d0001 is left over from ZM and it should not be, if ZM was running then this is okay. Exiting the browser does not stop ZM.blindvic wrote:cordel wrote:run ipcs with ZM stopped and make sure there are no left shared memory segments for ZM, and all the segments for ZM should be owned by the apache user. If there are left segments, either remove them manually or reboot.i am not a geek, so i don't know what do these mean. You told me to run this command when ZM is stopped, so exited browser.Code: Select all
vic@vic-desktop:~$ sudo ipcs ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x7a6d0001 0 www-data 700 12166644 0 ------ Semaphore Arrays -------- key semid owner perms nsems 0x00000000 0 www-data 600 1 ------ Message Queues -------- key msqid owner perms used-bytes messages
It's strange. Should i try another distro (current one has most recent kernel - maybe problem is in it?) or compile ZM from source?