Page 1 of 1

setting up a zoneminder enviroment

Posted: Tue Sep 22, 2009 11:01 pm
by UnknownX
Dear friends,

I am trying to set up a camera enviroment with some "specific" thoughts.

After a couple of days I'm running ZM with some edimax ip cameras very well.

What I now want to do is to include also two usb cameras which are connected on another pc with the gspca driver (currently debian lenny machine). localy this also works well.

to reduce the cpu load on the zm machine itself my thought is to get two streams from each of this usb cameras - one for the motion detection (low resulotion) and one for the recodring (high resolution) if a motion is detected.

cause of that the edimax cameras aren't able to spend two streams at the sime time with different resolutions i was not able to try this wish in my current enviroment - but if i understood the documentation right this would be possible through different linked monitors in general.

therefore i have looked in detail to different streaming applications and thought that ffmpeg/ffserver would be a good suggestion. but now i know that also ffmpeg seems not to be the right solution cause after i tried to add two streams with the same video codec and configuration but different resulotions and stream names i got an "illegal instruction" message from ffmpeg itself:


ffmpeg -f video4linux -s 640x480 -r 15 -i /dev/video0 http://localhost:8090/feed1.ffm
FFmpeg version SVN-r19950, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.35. 0 / 52.35. 0
libavformat 52.38. 0 / 52.38. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Sep 22 2009 01:31:01, gcc: 4.3.2
Input #0, video4linux, from '/dev/video0':
Duration: N/A, start: 1253658662.460995, bitrate: 55295 kb/s
Stream #0.0: Video: rawvideo, yuv420p, 640x480, 55295 kb/s, 15 tbr, 1000k tbn, 15 tbc
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Stream #0.0: Video: flv, yuv420p, 640x480, q=1-5, 200 kb/s, 1000k tbn, 15 tbc
Stream #0.1: Video: msmpeg4, yuv420p, 160x128, q=1-5, 200 kb/s, 1000k tbn, 15 tbc
Stream #0.2: Video: msmpeg4, yuv420p, 640x480, q=1-5, 200 kb/s, 1000k tbn, 15 tbc
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.0 -> #0.1
Stream #0.0 -> #0.2
Press [q] to stop encoding
[flv @ 0x9c98d10]rc buffer underflow
Illegal instruction
i think this would come out of the given (fixed) resolution of the input while calling ffmpeg.

furthermore the throughput of a "high resolution" of 640x480 seems to be very poor in my configuration.

so is there any stable working streaming "utility" outside which will be able to solve such an idea or am i thinking wrong in gerneral ?

i looking forward for your opinions and hints.

regards
stefan