Page 1 of 1

Question about images and nph-zms ...

Posted: Thu Mar 30, 2006 12:15 pm
by occhiostanco
Hello again and sorry for this noise....

i'm better understanding my problem and i try to explain
it again....

I can't get an image from an axis2100 into any
zm monitor window)
If i issue a request like the one below directly in the browser:

http://130.186.7.229/cgi-bin/nph-zms?monitor=3

(mostly the same "img src" tag in the monitor window),
i get a save dialog for a BIN file.
If I save the file it grows continuously: the http response is
probably a streamed movie, i guess, and my browser
don't know how to manage it. Isn't it?

Now:
1) why do i get a stream instead of an image? I specify
/axis-cgi/jpg/image.cgi as image location. And this location
works and give me an image if issued as a standalone request in the browser... (so it should not depend on the camera)

2) where can i tell zm to treat it as an image and not a stream.
Zm is able to get the image in "zones" panel (where the image is opened
with a javascript instead of using nph-zms) !

3) supposing it's a jpeg stream, do i need cambozola to view it with
mozilla-firefox ?

Thanks again

Roberto

Posted: Thu Mar 30, 2006 1:21 pm
by jameswilson
you can view the stream in firefox without cambazola, this is used in ie to display the stream. If you remove the maxfps and chnage jpeg to single you should be able to get a single jpeg image and refresh when required. The axis path will only work when getting images from the camera directly not of your zm server that uses zms to stream images.

Posted: Thu Mar 30, 2006 1:52 pm
by occhiostanco
thanks James,
but that did not work for me...

Giving up, now...
I'll try next time with a different computer and / or livecd

Thanks to all
Roberto

Re: Question about images and nph-zms ...

Posted: Thu Mar 30, 2006 9:45 pm
by zoneminder
occhiostanco wrote:1) why do i get a stream instead of an image? I specify
/axis-cgi/jpg/image.cgi as image location. And this location
works and give me an image if issued as a standalone request in the browser... (so it should not depend on the camera)
Because you are not looking at an image from your Axis cam (or you could just use the Axis url). You are looking at a continuous stream of images from ZM. These images may have been captured as single jpegs but ZM is streaming them out continuously, though of course you can also view then as individual images also.
occhiostanco wrote:2) where can i tell zm to treat it as an image and not a stream.
Zm is able to get the image in "zones" panel (where the image is opened
with a javascript instead of using nph-zms) !
If you add "mode=single" to your nph url then it will just return a single image.
occhiostanco wrote:3) supposing it's a jpeg stream, do i need cambozola to view it with
mozilla-firefox ?
No, FF can view mpjpeg streams without any plugins.