Capture failure for frame 0

Support and queries relating to all previous versions of ZoneMinder
Locked
reetix
Posts: 7
Joined: Tue Sep 30, 2003 9:41 pm

Capture failure for frame 0

Post by reetix »

When I run zmc -d 0 the daemon runs, but I have no picture, and in the syslog, it shows:

Sep 30 22:26:27 creative zmc-d0[1126]: ERR [Capture failure for frame 0: Invalid argument]
Sep 30 22:26:27 creative zmc-d0[1126]: ERR [Sync failure for frame 0: Invalid argument]

on and on .. anyone know what causes this?

cheers

paul
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Capture failure for frame 0

Post by zoneminder »

Hi Paul,

What camera or capture card are you using with your system?

Regards,

Phil,
reetix
Posts: 7
Joined: Tue Sep 30, 2003 9:41 pm

Re: Capture failure for frame 0

Post by reetix »

Hi Phil, thanks for replying, heres an update:

When I was getting this error, I had Capture Width & Capture Height set to zero. I set these values to 320 and 240. Now I get a different error:

Oct 2 18:37:11 creative zmc-d0[1032]: INF [Starting Capture]
Oct 2 18:37:20 creative zmu[1041]: ERR [Can't open New.jpg: Permission denied]
Oct 2 18:37:25 creative zmu[1054]: ERR [Can't open New.jpg: Permission denied]
reetix
Posts: 7
Joined: Tue Sep 30, 2003 9:41 pm

Re: Capture failure for frame 0

Post by reetix »

I've solved this problem, zoneminder was setup to use the web user apache, but apache doesn't exist, I've changed it to 'nobody' (the user apache is using) and now it's fine.
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Re: Capture failure for frame 0

Post by lazyleopard »

I've had this with 1.18.1 too. The flood of "Capture failure" and "Sync failure" messages, that is....

Mar 11 14:21:52 x zmc-d0[23766]: ERR [Sync failure for frame 0: Invalid argument]
Mar 11 14:21:52 x zmc-d0[23766]: ERR [Capture failure for frame 0: Invalid argument]
....repeated for at least 100 megabytes-worth...

It happens when the video capture parameters are invalid (say all zero, or width and height the wrong way round so that one is out of range, or...) but a camera gets started anyway.

The problem is that the messages are produced at a phenomenal rate. My syslog grew to fill the available space (hundreds of megabytes) in less than a minute....
Locked