Streaming new Events(mjpeg) won't work

Forum for questions and support relating to the 1.24.x releases only.
Locked
IFR
Posts: 2
Joined: Wed Apr 06, 2011 5:34 pm

Streaming new Events(mjpeg) won't work

Post 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.
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

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

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

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

Post 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.
Kfir Itzhak.
IFR
Posts: 2
Joined: Wed Apr 06, 2011 5:34 pm

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

Post 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.
Locked