Camzobola streaming problems: error is "no part conten

Support and queries relating to all previous versions of ZoneMinder
Locked
tolmino
Posts: 5
Joined: Sat May 22, 2004 6:48 pm

Camzobola streaming problems: error is "no part conten

Post by tolmino »

....but server is working: If i select one recorded event i can see stills.
i'm using zoneminder_1.19.3 , with the last ffmpeg.

Any suggestion?

Thanks....
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you tried using nph-zms instead of just zms in your path?

Phil,
maron
Posts: 18
Joined: Sun Feb 15, 2004 12:08 pm

Post by maron »

This is fixable by patching cambozolas source code, I've done this and fixed the problem, but the resulting jar requires you to have java 1.4.2 installed otherwise it will crash IE. I know how to fix this but haven't had time yet.

pm me with your email and I'll send you a copy.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi,

I'm curious what it is you change in Cambozola to correct this, can you post a code snippet?

Cheers,

Phil,
maron
Posts: 18
Joined: Sun Feb 15, 2004 12:08 pm

Post by maron »

If I remember correctly I just commented out line 217 in CamStream.java and hardcoded the content type in the next line, see snippet below.

Code: Select all

if (ctype == null) {
              //throw new Exception("No part content type");
              ctype = "image/jpeg";
            }
This however is a zm only hack, since I know that zm will be sending me a stream of jpeg images. Also, this is by memory and second review, since I rebuilt the code in my /tmp directory and threw in the new jar file :(.

Works fine for me, this also suggests that the content type could be wrong for some images from zm, and cambozola, instead of trying the next image, throws an exception to the UI and stops.

I've been considering some zm specific hacks to cambozola, I would be grateful for any ideas. What I am specially interested in would be a way of flashing the alarming frames somehow, like with an orange border, I know this would take some tweaking to zm as well (sending some kind of info about the type of frame (alarm, idle))... I will of course share any tweaks I make on the forums.
tolmino
Posts: 5
Joined: Sat May 22, 2004 6:48 pm

send me a copy, Mr Marone, please....

Post by tolmino »

my mail in tolmino@tolmino.it
Thanks
tolmino
Posts: 5
Joined: Sat May 22, 2004 6:48 pm

i have used the maron version of cambozola.....but

Post by tolmino »

i can't have stream with Internet Explorer.
I get stram only with mozilla.
Now I don't have any error in cambozola window: i have obtained the "cambozola V0.34" server presentation string that don't go away.

How can i use nph-zms instead of zms?
Thanks...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's ZM_PATH_ZMS in Options->Paths. Just change (for example) /cgi-bin/zms to /cgi-bin/nph-zms

Phil,
Locked