Page 1 of 1

Video stopping with exit status 6 or crash status 6

Posted: Fri Jul 03, 2009 11:52 am
by HighHo
Hello, trying to set up a small webcam server,
all the webcams are the same brand (MSI) they work fine in xawtv and can capture.

Here part of an error log:

Code: Select all

07/03/09 12:42:42.093697 zmdc[4318].INF ['zmc -d /dev/video1' starting at 09/07/03 12:42:42, pid = 4516]
07/03/09 12:42:42.137188 zmdc[4318].ERR ['zmc -d /dev/video1' exited abnormally, exit status 6]
07/03/09 12:42:55.052413 zmdc[4318].INF [Starting pending process, zmc -d /dev/video0]
07/03/09 12:42:55.053758 zmdc[4318].INF ['zmc -d /dev/video0' starting at 09/07/03 12:42:55, pid = 4518]
07/03/09 12:42:55.083548 zmdc[4318].INF ['zmc -d /dev/video0' crashed, signal 6]
07/03/09 12:43:22.016453 zmdc[4318].INF [Starting pending process, zmc -d /dev/video1]
07/03/09 12:43:22.017771 zmdc[4318].INF ['zmc -d /dev/video1' starting at 09/07/03 12:43:22, pid = 4523]
07/03/09 12:43:22.061297 zmdc[4318].ERR ['zmc -d /dev/video1' exited abnormally, exit status 6]
07/03/09 12:44:15.021960 zmdc[4318].INF [Starting pending process, zmc -d /dev/video0]
07/03/09 12:44:15.023257 zmdc[4318].INF ['zmc -d /dev/video0' starting at 09/07/03 12:44:15, pid = 4527]
exit status 6]
I have tried all kinds of diffrent settings with no luck, anyone got any ideas?

Thanks,
Alex.

Posted: Fri Jul 10, 2009 4:34 pm
by x0SiN0x
did you have any luck with this, im seeing the same issue with a webcam I was triyng

zmu seems to see it ok
Video Capabilities
Name: Logitech QuickCam USB
Type: 0
Video Channels: 1
Audio Channels: 0
Maximum Width: 356
Maximum Height: 292
Minimum Width: 32
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 356
Height: 292
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 32768
Channel 0 Attributes
Name: Camera
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 46886 - Unknown

but...
Jul 10 10:23:11 zoneminder zmdc[17552]: INF ['zmc -d /dev/video0' crashed, signal 6]

*** edit ***
actually setting it to grey and some combination of other settings seems video works now.

Posted: Thu Nov 12, 2009 1:11 am
by eyeinthesky
Yesterday I set up Ubuntu 9.10 desktop i386 then installed ZM 1.24.1 from the repositories. I'm getting a blank image in the feed window and the same error in zmdc.log which repeats at regular intervals:

11/12/09 09:00:12.072537 zmdc[1473].INF [Starting pending process, zmc -d /dev/video0]
11/12/09 09:00:12.074088 zmdc[1473].INF ['zmc -d /dev/video0' starting at 09/11/12 09:00:12, pid = 2042]
11/12/09 09:00:12.112242 zmdc[1473].INF ['zmc -d /dev/video0' crashed, signal 6]

Some failed querying:

wonka@elipy:~$ zmu -d /dev/video0 -q
error22
wonka@elipy:~$ zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument

Webcam is a Logitech E3500, confirmed working on /dev/video0 with VLC's open capture device feature.

Posted: Thu Nov 12, 2009 11:10 pm
by TechGuy
1. Check to make sure that /dev/video0 exists and that you can view the output using XawTV or some other utility that will display the video.

2. Make sure its not a permissions problem. Perhaps the user account that ZM is running under doesn't have access to /dev/video0. try chmod 666 /dev/video and restart ZM. Alternatively you could chown to the group ZM is a part of. I believe the default group set is root:root for /dev/video0

error22

Posted: Fri Nov 27, 2009 6:37 pm
by michaelmanzini
It happens because the user (at this case "root") have no X permission.

root@double-L:/etc# zmu -d /dev/video0 -q
error22
root@double-L:/etc# zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument

Make the command with common user and dont forget to give permission to www-data user.
#~: adduser www-data video

...Cheerssssss

Posted: Tue Dec 01, 2009 1:21 am
by lolailando
could you please explain a bit more explicitly how to give the permission (like for an idiot please, new to zm and linux), step by step??
Where do you type that code in the terminal right?

rafa@p4:~$ #~: adduser www-data video
rafa@p4:~$ chmod 666 /dev/video and restart ZM
chmod: cannot access `/dev/video': No such file or directory
chmod: cannot access `and': No such file or directory
chmod: cannot access `restart': No such file or directory
chmod: cannot access `ZM': No such file or directory

I have the same error: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]

million thanks!!

Posted: Thu Dec 03, 2009 4:57 am
by gazoo
should be sudo chmod 777 /dev/video0

forgot the 0 in video. And, only use sudo if using debian or ubuntu, or it won't let you..