Failed to set video format: Invalid argument

Forum for questions and support relating to the 1.24.x releases only.
Locked
fri.K
Posts: 5
Joined: Tue Jul 26, 2011 7:53 pm

Failed to set video format: Invalid argument

Post 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.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Failed to set video format: Invalid argument

Post 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
Kfir Itzhak.
bhmusic76
Posts: 2
Joined: Sat Jul 23, 2011 4:42 pm

Re: Failed to set video format: Invalid argument

Post 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 ???
fri.K
Posts: 5
Joined: Tue Jul 26, 2011 7:53 pm

Re: Failed to set video format: Invalid argument

Post by fri.K »

mastertheknife wrote:resolution no higher than 768x576 and try the BGR24
That's it, You solved it, thanks.
Locked