No image when streaming

Forum for questions and support relating to the 1.24.x releases only.
Locked
nostabonn
Posts: 1
Joined: Fri Sep 11, 2009 11:32 pm

No image when streaming

Post by nostabonn »

I have a IP Camera Linksys WVC200 as the only monitor for Zoneminder 1.24.2.
I compiled Zoneminder from source and with ffmpeg.

When I now try to open a monitor and watch what is on the cam, hthe view stays white, and nothing happens.
I Checked that the IP Camera was working by using the ZMLiveCD and that worked wonderful, but zoneminder has to be on our currently already running server with Ubuntu 9.04.

The only thing I can find as a problem is the following in the log:

Code: Select all

09/12/09 01:21:55.451858 zms[8466].INF-zm_debug.c/292 [New Debug Level = 8, New Debug Log = /tmp/zm_debug.log.08466]
09/12/09 01:21:55.452072 zms[8466].DB1-zms.cpp/98 [Query: mode=jpeg&monitor=1&scale=100&maxfps=5&buffer=1000&connkey=651846&rand=1252711315]
09/12/09 01:21:55.452961 zms[8466].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
09/12/09 01:21:55.463995 zms[8466].DB1-zm_monitor.cpp/338 [monitor purpose=0]
09/12/09 01:21:55.464015 zms[8466].DB1-zm_monitor.cpp/345 [mem.size=36865192]
09/12/09 01:21:55.464440 zms[8466].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
09/12/09 01:21:55.472668 zms[8466].DB1-zm_monitor.cpp/458 [Monitor Monitor-1 has function 2]
09/12/09 01:21:55.472692 zms[8466].DB1-zm_monitor.cpp/459 [Monitor Monitor-1 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
09/12/09 01:21:55.472704 zms[8466].DB1-zm_monitor.cpp/460 [Monitor Monitor-1 IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
09/12/09 01:21:55.472717 zms[8466].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(Monitor-1), 0 zones]
09/12/09 01:21:55.473043 zms[8466].DB3-zm_stream.cpp/58 [FPS:0.00, MXFPS:5.00, BFPS:0.00, EFPS:0.00, FM:1]
09/12/09 01:21:55.473137 zms[8466].DB3-zm_stream.cpp/65 [aEFPS:0.00, aFM:1]
09/12/09 01:21:55.473267 zms[8466].DB2-zm_monitor.cpp/3374 [Checking swap image location]
09/12/09 01:21:55.473282 zms[8466].DB3-zm_monitor.cpp/3375 [Checking swap image path]
09/12/09 01:21:55.473367 zms[8466].DB3-zm_monitor.cpp/2868 [Swap path '/tmp/zmswap-m1/zmswap-q651846' missing, creating]
09/12/09 01:21:55.473469 zms[8466].DB2-zm_monitor.cpp/3396 [Assigning temporary buffer]
09/12/09 01:21:55.516369 zms[8466].DB2-zm_monitor.cpp/3399 [Assigned temporary buffer]
09/12/09 01:21:56.016641 zms[8466].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1252711315.516453 secs more than maximum of 10.000000]
09/12/09 01:21:56.016826 zms[8466].DB1-zm_monitor.cpp/3588 [Cleaning swap files from /tmp/zmswap-m1/zmswap-q651846]
09/12/09 01:21:56.016985 zms[8466].DB1-zm_monitor.cpp/3616 [Can't glob '/tmp/zmswap-m1/zmswap-q651846/*.*': 3]
09/12/09 01:21:56.016641 zms[8466].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1252711315.516453 secs more than maximum of 10.000000]

I checked permission on the swap folder in /tmp, its owned by www-data and to be sure I chmod'ed it with 777.

Any ideas?
mgc8
Posts: 8
Joined: Sat Dec 20, 2008 1:32 am

Post by mgc8 »

i am having the same problem, but with a PWC (Philips) based USB camera... It works at /dev/video1, as I can test it with camstream, however
when I try to view the stream inside ZM, all I get is an empty frame where the image should be.

I am using Debian/squeeze, and corresponding package for ZM:
dpkg: zoneminder 1.24.2-2.1

These are the last lines from the log (seems to be something wrong with the time/offset/etc.)?
=====
Mar 2 00:24:45 media zms[23528]: INF [Authenticated user 'admin']
Mar 2 00:24:45 media zms[23528]: ERR [Terminating, last frame sent time 1267482285.122392 secs more than maximum of 10.000000]
=====

Any help would be appreciated... TIA!
antar
Posts: 35
Joined: Mon Mar 20, 2006 1:32 am

Post by antar »

had same issue. found that the cgi scripts were blocked in apache

ZM uses /cgi-bin/nph-zms to stream. make sure cgi is enabled in apache
user888
Posts: 13
Joined: Wed Apr 28, 2010 6:48 am

Post by user888 »

Yeah, and make sure the cgi-bin scripts are accessible (with the right permissions set, try to open it directly, eg:

http://yoursite/cgi-bin/nph-zms?mode=jp ... 1272449527

Also make sure your camera config is correct (Source tab). Eg. try a different pallet. Check your device properties with:

Code: Select all

zmu -d /dev/video0 -q -v -V 2
or

Code: Select all

zmu -d /dev/video0 -q -v -V 1
Locked