Apache/1.3.26 Internal Server Error with streams

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Apache/1.3.26 Internal Server Error with streams

Post by lazyleopard »

A couple of oddities with jpeg streams in 1.19.0 when I try to view them with Mozilla Firefox on Linux. First, on the event stream I get no image. Far as I can tell the server is saying:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
<snip>
More information about this error may be available in the server error log.

Apache/1.3.26 Server

The error log contains lines saying:

Premature end of script headers: /usr/local/lib/cgi-bin/zms

Second, on the live camera stream, Mozilla Firefox decided it was unable to deal with the hex-dump it was receiving and asked me what to do. I tried saving it to a file, then cancelling it after a while. Data seemed to be transferred but nothing appeared in the file so I don't know what was transferred. Something was obviously happening though, because the Apache error log started filling up with lines saying:

jpegtopnm: WRITING PPM FILE
jpegtopnm: WRITING PPM FILE
jpegtopnm: WRITING PPM FILE
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Re: Apache/1.3.26 Internal Server Error with streams

Post by lazyleopard »

The live camera jpeg stream seems to work Ok with Netscape 7.0 from work, so I guess that oddity is down to Firebird interpreting something strangely. I'm not sure why the jpegtopnm messages were finding their way into the Apache error log.

The Apache "Premature end of script headers: /usr/local/lib/cgi-bin/zms" happens with both Netscape 7.0 and Mozilla Firebird. I've updated to the test 1.19.(almost)1 and seen no change there. MSIE, on the other hand, goes straight to the stills thumbnails display with no option for a jpeg stream. For the relatively low bandwidth connection that's actually a more sensible first choice anyway.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Apache/1.3.26 Internal Server Error with streams

Post by zoneminder »

IE will not stream jpeg streams natively, you will need to have Cambozola installed. Otherwise you can set the streaming option to mpeg rather than jpeg and you should see mpeg streams.

Phil,
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Re: Apache/1.3.26 Internal Server Error with streams

Post by lazyleopard »

For checking things from work on a low-bandwidth link, I'd rather avoid streaming completely, so going direct to the stills thumbnails is best. It would be nice to be able to switch between analysed and captured stills instead of just seeing the analysed ones. Sometimes the lines obscure image details, and occasionally the analysed image is a bit of a mess (usually by being carved up into zones, with some in threshold B&W, others overlaid, and others in reverse video - weird).

Still can't figure the "Premature end of script headers: /usr/local/lib/cgi-bin/zms" message though. Gets generated in response to a "GET /cgi-bin/zms?mode=jpeg&event=3156&scale=100&rate=100&maxfps=5 HTTP/1.1" request.
Locked