Page 1 of 1

Streaming new Events(mjpeg) won't work

Posted: Wed Apr 06, 2011 6:08 pm
by IFR
Hi,

I have a strange Problem with my zoneminder instalation.

It has been working now since January without Problems.

Today i've wanted to view some Events that are from yesterday and earlier days.

Firefox crashes completely, and cambozola in IE shows me one image, and then nothing happens (black image).

After turning Debugging on, i can read the following error in the debug.log:

04/06/11 14:33:46.666790 zms[-1].ERR-zm_stream.cpp/267 [Unable to send stream text frame: Resource temporarily unavailable]

This is the code from the zm_stream.cpp

Code: Select all

 if ( fwrite( buffer, n_bytes, 1, stdout ) )
        {
            Error( "Unable to send stream text frame: %s", strerror(errno) );
            return( false );
        }
        fprintf( stdout, "\r\n\r\n" );
By the Way: there are over 600 Events for camera1 and over 1500 for camera3 and 4.

I can watch the oldest events without any problem, but new events (one week old) not.

Have anybody the same problem or better, a solution?


My specs: Core i5-650, 4GB RAM, 2x500GB HD Raid1, NoName BT878 4channel Video Card (Kodicom 4400 clone), Debian Sarge 64-bit

Thanks a lot.

Re: Streaming new Events(mjpeg) won't work

Posted: Fri Apr 08, 2011 5:49 am
by Flasheart
Firefox is very prone to crashing with mjpeg feeds these days. Used to be fine before v.2.x

Try chrome - at least just for the streaming and any montages you have. Doesn't seem to have any problems with mjpeg streaming and will happily live on the same pc as ie and ff.

Re: Streaming new Events(mjpeg) won't work

Posted: Fri Apr 08, 2011 7:19 am
by mastertheknife
That error can be easily fixed by changing:

Code: Select all

if ( fwrite( buffer, n_bytes, 1, stdout ) )
to this:

Code: Select all

if ( fwrite( buffer, n_bytes, 1, stdout ) < 1)
However, this isn't the source of your problem, a text frame should not be sent. ZM is probably unable to find your events on the hard drive.

mastertheknife.

Re: Streaming new Events(mjpeg) won't work

Posted: Fri Apr 08, 2011 10:48 am
by IFR
Hello

Thanks for the answers, i will try it a soon as possible.
mastertheknife wrote:ZM is probably unable to find your events on the hard drive.
I think that is not the problem, i can export the event to an videofile and it's working perfect.