Page 1 of 1

Failed to set video format: Invalid argument

Posted: Tue Jul 26, 2011 8:21 pm
by fri.K
Hi everyone, I need Your help.
OS: Ubuntu 11.04 Server
ZM v: 1.24.4 compiled from source
Problem: Unable to connect to bttv and ip video stream
I'm getting error:

Code: Select all

zmc_dvideo0[-1].FAT-zm_local_camera.cpp/410 [Failed to set video format: Invalid argument]
Today I upgraded Ubuntu from 10.10 to 11.04. In 10.10 with ZM v1.24.2 i couldn't watch live stream on any camera (bttv and ip via rtsp(?)), but I could see images when I clicked in "zones". ZM could detect motion and record jpeg without playing it only with v4l1. Now, in 11.04 and ZMv1.24.4 i can't choose v4l1 and I can't see only black image in "zones".
I can record movie with ffmpeg and mancoder, or play video with mplayer without problem.

What can be wrong in my config?

Code: Select all

PATH_ZMS   /zm/cgi-bin/nph-zms
PATH_CAMBOZOLA   /usr/share/zoneminder/cambozola.jar
To compile ZM I used this howto.

Sorry for bad English.

Re: Failed to set video format: Invalid argument

Posted: Tue Jul 26, 2011 11:14 pm
by mastertheknife
You were trying to use settings that the driver (bttv in your case) doesn't support. Try resolution no higher than 768x576 and try the BGR24 capture palette (RGB24 doesn't work with this driver).

mastertheknife

Re: Failed to set video format: Invalid argument

Posted: Wed Jul 27, 2011 1:29 pm
by bhmusic76
In a related problem, I've just upgraded to ZoneMinder 1.24.4 from 1.24.2 and can no longer select the correct Capture Method for my cameras. I’ve always been successful using “Video For Linux version 1” but 1.24.4 only has the “version 2” selection available. I’ve re-installed both Ubuntu 11.04 AND zm_1.24.4 multiple times with identical results. None of my cameras work in this 'version 2' mode. (under the Source tab in the /dev/video0 dialog box)

How can I re-enable "Video For Linux version 1" in zm_1.24.4 ???

Re: Failed to set video format: Invalid argument

Posted: Wed Jul 27, 2011 9:02 pm
by fri.K
mastertheknife wrote:resolution no higher than 768x576 and try the BGR24
That's it, You solved it, thanks.