Exit status 255, I cant view my webcam

Support and queries relating to all previous versions of ZoneMinder
Locked
jorginho_aspire
Posts: 4
Joined: Fri Jun 19, 2009 6:15 pm

Exit status 255, I cant view my webcam

Post by jorginho_aspire »

Hi all!
This is my first post....

First, I readed the FAQ and zoneminder's documentation, but I cant start viewing my webcam.

Everything runs fine, I can use my webcam with Camstream, Xawtv and it is finely identified by v4l2. I use Fedora 10 with Zoneminder 1.23.3, I have mysql installed and running well and all other parts is ok too. My webcam is a C3 Tech (results of lsusb: 0ac8:307b Z-Star Microelectronics Corp. USB 1.1 Webcam) and I use with aMsn and others programs normaly.

The results of v4l-info:

### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "zc3xx"
card : "PC Camera"
bus_info : "0000:00:1d.0"
version : 2.2.0
capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "zc3xx"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []

video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "JPEG"
pixelformat : 0x4745504a [JPEG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x4745504a [JPEG]
fmt.pix.field : NONE
fmt.pix.bytesperline : 320
fmt.pix.sizeimage : 29390
fmt.pix.colorspace : JPEG
fmt.pix.priv : 1

controls
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 256
step : 1
default_value : 128
flags : 0

### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "PC Camera"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 640
maxheight : 480
minwidth : 48
minheight : 32

channels
VIDIOCGCHAN(0)
channel : 0
name : "zc3xx"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
VIDIOCGPICT
brightness : 0
hue : 0
colour : 0
contrast : 32768
whiteness : 26214
depth : 8
palette : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
VIDIOCGWIN
x : 0
y : 0
width : 320
height : 240
chromakey : 0
flags : 0

Here is my log:

Jun 19 15:55:15 jorge zmwatch[9267]: INF [Restarting capture daemon for WebCam, time since last capture 29 seconds (1245437715-1245437686)]
Jun 19 15:55:15 jorge zmdc[9230]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:55:15, pid = 11645]
Jun 19 15:55:15 jorge zmdc[11645]: INF ['zmc -d /dev/video0' started at 09/06/19 15:55:15]
Jun 19 15:55:15 jorge zmc_dvideo0[11645]: INF [Debug Level = 0, Debug Log = <none>]
Jun 19 15:55:15 jorge zmwatch[9267]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:55:15, pid = 11645]
Jun 19 15:55:15 jorge zmc_dvideo0[11645]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.11645]
Jun 19 15:55:15 jorge zmc_dvideo0[11645]: INF [Starting Capture]
Jun 19 15:55:16 jorge zmc_dvideo0[11645]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Jun 19 15:55:16 jorge zmc_dvideo0[11645]: ERR [Failed to post-capture monitor 0]
Jun 19 15:55:16 jorge zmdc[9230]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Jun 19 15:55:45 jorge zmwatch[9267]: INF [Restarting capture daemon for WebCam, time since last capture 29 seconds (1245437745-1245437716)]
Jun 19 15:55:45 jorge zmdc[9230]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:55:45, pid = 11662]
Jun 19 15:55:45 jorge zmdc[11662]: INF ['zmc -d /dev/video0' started at 09/06/19 15:55:45]
Jun 19 15:55:45 jorge zmc_dvideo0[11662]: INF [Debug Level = 0, Debug Log = <none>]
Jun 19 15:55:45 jorge zmwatch[9267]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:55:45, pid = 11662]
Jun 19 15:55:45 jorge zmc_dvideo0[11662]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.11662]
Jun 19 15:55:45 jorge zmc_dvideo0[11662]: INF [Starting Capture]
Jun 19 15:55:46 jorge zmc_dvideo0[11662]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Jun 19 15:55:46 jorge zmc_dvideo0[11662]: ERR [Failed to post-capture monitor 0]
Jun 19 15:55:46 jorge zmdc[9230]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Jun 19 15:56:15 jorge zmwatch[9267]: INF [Restarting capture daemon for WebCam, time since last capture 29 seconds (1245437775-1245437746)]
Jun 19 15:56:15 jorge zmdc[11678]: INF ['zmc -d /dev/video0' started at 09/06/19 15:56:15]
Jun 19 15:56:15 jorge zmc_dvideo0[11678]: INF [Debug Level = 0, Debug Log = <none>]
Jun 19 15:56:15 jorge zmdc[9230]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:56:15, pid = 11678]
Jun 19 15:56:15 jorge zmc_dvideo0[11678]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.11678]
Jun 19 15:56:15 jorge zmwatch[9267]: INF ['zmc -d /dev/video0' starting at 09/06/19 15:56:15, pid = 11678]
Jun 19 15:56:15 jorge zmc_dvideo0[11678]: INF [Starting Capture]
Jun 19 15:56:16 jorge zmc_dvideo0[11678]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Jun 19 15:56:16 jorge zmc_dvideo0[11678]: ERR [Failed to post-capture monitor 0]
Jun 19 15:56:16 jorge zmdc[9230]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]

I dont know what I can do with this "ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]", and I cant even know if the error is with zoneminder or if my webcam is incompatible with it...

Can anyone help me, please?? I seek whole forum and I dont found anything to help me...

Thanks a lot!
Jorge Henrique
jorginho_aspire
Posts: 4
Joined: Fri Jun 19, 2009 6:15 pm

Help!!

Post by jorginho_aspire »

Can anybody help me?? Please.....

Thanks
Jorge Henrique
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Have you given Apache the permision to access /dev/video0


Once you have validated your camera run zmu -d <device_path> -q -v to get a dump of the settings (note, you will have to additionally supply a username and password to zmu if you are running in authenticated mode). You can then enter these values into the video related options of the monitor configuration panel. The 'device_path' referred to here is the path to your video device file, for instance /dev/video0 etc. If 'zmu' gives you an error related to permissions run zmfix -a to make sure you can access all the video devices.
[edit]
From Documentation
jorginho_aspire
Posts: 4
Joined: Fri Jun 19, 2009 6:15 pm

Post by jorginho_aspire »

kingofkya wrote:Have you given Apache the permision to access /dev/video0


Once you have validated your camera run zmu -d <device_path> -q -v to get a dump of the settings (note, you will have to additionally supply a username and password to zmu if you are running in authenticated mode). You can then enter these values into the video related options of the monitor configuration panel. The 'device_path' referred to here is the path to your video device file, for instance /dev/video0 etc. If 'zmu' gives you an error related to permissions run zmfix -a to make sure you can access all the video devices.
[edit]
From Documentation

Yes, I already did. But my webcam dont work yet.....


Thanks!!
Jorge Henrique
elp99jcm
Posts: 3
Joined: Thu Aug 06, 2009 7:22 pm

Post by elp99jcm »

I had this message come up as well. I solved it by following a post on this forum and adding the following:


$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';

To /usr/bin/zmdc.pl, just before the my @daemons line.

Then restarted zoneminder.
jorginho_aspire
Posts: 4
Joined: Fri Jun 19, 2009 6:15 pm

Post by jorginho_aspire »

elp99jcm wrote:
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
Thanks for your help!! I have a x86_64 system, and I tried like you writed "/usr/lib/libv4l/v4l1compat.so", and didn't worked. Then, I changed to "/usr/lib64/libv4l/v4l1compat.so", and also didn't worked for me. But, the error changes, now I got:

Aug 7 11:47:26 notebook zmdc[12165]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
Aug 7 11:47:31 notebook zms[12336]: INF [Debug Level = 0, Debug Log = <none>]
Aug 7 11:47:31 notebook zms[12336]: ERR [MPEG streaming of 'mode=mpeg&monitor=1&scale=100&bitrate=25000&maxfps=5&format=swf&buffer=1000&connkey=712043&rand=1249656450' attempted while disabled]
Aug 7 11:47:36 notebook zmdc[12165]: INF [Starting pending process, zmc -d /dev/video0]
Aug 7 11:47:36 notebook zmdc[12349]: INF ['zmc -d /dev/video0' started at 09/08/07 11:47:36]
Aug 7 11:47:36 notebook zmdc[12165]: INF ['zmc -d /dev/video0' starting at 09/08/07 11:47:36, pid = 12349]
Aug 7 11:47:36 notebook zmc_dvideo0[12349]: INF [Debug Level = 0, Debug Log = <none>]
Aug 7 11:47:36 notebook zmc_dvideo0[12349]: INF [Starting Capture]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: INF [Got signal 11 (Segmentation fault), crashing]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Signal address is 0x10216, no eip]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /lib64/libpthread.so.0 [0x305980ee90]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /lib64/libc.so.6(memcpy+0x283) [0x3058c82793]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /usr/bin/zmc [0x41c094]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /usr/bin/zmc [0x421ad6]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /usr/bin/zmc [0x4054ba]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xfd) [0x3058c1ea2d]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: ERR [Backtrace: /usr/bin/zmc [0x404da9]]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: INF [Backtrace complete, please execute the following command for more information]
Aug 7 11:47:37 notebook zmc_dvideo0[12349]: INF [addr2line -e /usr/bin/zmc 0x305980ee90 0x3058c82793 0x41c094 0x421ad6 0x4054ba 0x3058c1ea2d 0x404da9]
Aug 7 11:47:37 notebook zmdc[12165]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
Aug 7 11:47:57 notebook zmdc[12165]: INF [Starting pending process, zmc -d /dev/video0]
Aug 7 11:47:57 notebook zmdc[12165]: INF ['zmc -d /dev/video0' starting at 09/08/07 11:47:57, pid = 12430]
Aug 7 11:47:57 notebook zmdc[12430]: INF ['zmc -d /dev/video0' started at 09/08/07 11:47:57]
Aug 7 11:47:57 notebook zmc_dvideo0[12430]: INF [Debug Level = 0, Debug Log = <none>]
Aug 7 11:47:57 notebook zmc_dvideo0[12430]: INF [Starting Capture]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: INF [Got signal 11 (Segmentation fault), crashing]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Signal address is 0x10216, no eip]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /lib64/libpthread.so.0 [0x305980ee90]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /lib64/libc.so.6(memcpy+0x283) [0x3058c82793]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /usr/bin/zmc [0x41c094]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /usr/bin/zmc [0x421ad6]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /usr/bin/zmc [0x4054ba]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xfd) [0x3058c1ea2d]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: ERR [Backtrace: /usr/bin/zmc [0x404da9]]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: INF [Backtrace complete, please execute the following command for more information]
Aug 7 11:47:58 notebook zmc_dvideo0[12430]: INF [addr2line -e /usr/bin/zmc 0x305980ee90 0x3058c82793 0x41c094 0x421ad6 0x4054ba 0x3058c1ea2d 0x404da9]
Aug 7 11:47:58 notebook zmdc[12165]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]

Can you help me again???
Thanks a lot!!
Jorge Henrique
Locked