Page 1 of 1
zms questions
Posted: Sun Oct 16, 2005 11:42 am
by jameswilson
i have worked out what most of the zms options do in the url. But have hit upon a problem trying to create a pocket viewer app. If i use the normal zms path to get jpegs, ppc throws it out as an invalid file type. But it can grab normal jpegs, so im assuming its an issue with some of the charecters in the url. So i have 4 questions?
1 does anyone have any documentation or queswork on all the zms paramaters.
2 would the overhead of Creating a jpeg called mon1, 2 etc be huge
3 is this something that a ppc can do but the limitation is me
4 any better suggestions
James
Re: zms questions
Posted: Mon Oct 17, 2005 8:53 pm
by zoneminder
jameswilson wrote:i have worked out what most of the zms options do in the url. But have hit upon a problem trying to create a pocket viewer app. If i use the normal zms path to get jpegs, ppc throws it out as an invalid file type. But it can grab normal jpegs, so im assuming its an issue with some of the charecters in the url. So i have 4 questions?
It may just be that it's expecting a specific file type but yes perhaps the parameters are incorrect so...
jameswilson wrote:1 does anyone have any documentation or queswork on all the zms paramaters.
mode - should be either 'jpeg' for mpjpeg stream, 'mpeg' for mpeg stream or 'single' for individual jpeg frame
monitor - id of monitor, not to be used with event
event - id of event, not to be used with monitor
format - video format for mpeg streaming
scale - scale factor as %ge of original image size
rate - frame rate as %ge of original event (not for use with monitor)
maxfps - maximum fps at which to send frames
bitrate - video bitrate for mpeg streaming
ttl - time to live, in monitor streaming what the maximum streaming period is before zms will exit
user, pass, auth - authentication options
jameswilson wrote:2 would the overhead of Creating a jpeg called mon1, 2 etc be huge
Creating it by doing what?
jameswilson wrote:3 is this something that a ppc can do but the limitation is me
I don't know about this as I don't have access to a ppc.
jameswilson wrote:4 any better suggestions
I think you are on the right lines. Can you access ZM urls directly on that device or use the xhtml interface but slightly modded for streaming rather than stills?
Phil
Posted: Mon Oct 17, 2005 10:13 pm
by jameswilson
christ this is getting complicated lol.
It may just be that it's expecting a specific file type but yes perhaps the parameters are incorrect so...
I think the issue isnt the path as such just all the other detail thats in it. eg if i enter
http://10.10.10.1/ppc/jpeg1.jpg
It will get the image and i can refresh at whatever rate i want. If i enter the zms url its not happy. I am wondering if i can grab the image via zms, save it to some sort of array, rename it then display it but i will keep looking at this.
Thanks for the zms info give me a bit more food for thought.
Creating it by doing what?
What i was wondering is to create a jpg in the html folder of the server called mon1.jpg for monitor 1 etc etc. This could then be picked up by the ppc app without me having to delve into activex controls etc. My concern was as zm is already saving jpegs at a hell of a rate i wasnt sure how much it would affect load by getting it to do a few more.
I don't know about this as I don't have access to a ppc.
Your not missing too much but im a bit attached to mine
I think you are on the right lines. Can you access ZM urls directly on that device or use the xhtml interface but slightly modded for streaming rather than stills?
Problem is getting a reliable java client for ppc. I assume cambozola would work if the right java bits were on the device
All i want to do is create a basic rarely used, show off with, give back to you lot, live viewer. Doubt ill make it as big as the windows viewer as i cant see why you would want to. I will keep on this and when i learn more, or can work around the bits i cant do ill let you know.
Thanks Phil, on another note im looking to extend the function of the windows client to be a player too, you neednt go into it at the moment but can i sent urls or http requests and get back say 4 events just as a download of the individual jpgs, eg once i get a sql link to zm and have queried the db and ddecided i want events 99, 100,101 and 102, can i then download them as jpgs from zm or would i need to export them as seperate events and put them back together on the client? Hope that makes sense.
James
Posted: Wed Oct 19, 2005 11:39 am
by zoneminder
A couple of things,
1) You can just knock up a simple script with zmu if you want to just dump images periodically
2) I though PPCs supported asf video? In which case you could do mpeg streaming.
Phil
Posted: Wed Oct 19, 2005 11:47 am
by jameswilson
ah yes mpeg streaming lol
2 things my mpeg streaming is b#uggered (my fault i broke it)
and i tried with a working mpeg stream and media player 9 nor 10 work with it.
I could try again though once i fix mpeg streaming, but i like jpg snapshotting, as image can be manipulated on the device
(ie i got interpolation and antialaing sorted)
James
Posted: Mon Nov 28, 2005 3:25 pm
by jameswilson
phil, I am trying to use zms to give me an individual image from on event, i assume i have to pass an image number or something to tell it what still to give me, whats the format for that?
Posted: Mon Nov 28, 2005 6:26 pm
by zoneminder
Ah, currently you can't get a single image from an event. You would have to request it directly as an image path, though this may well change in a future version (as I will be hiding all the images).
Phil
Posted: Mon Nov 28, 2005 6:37 pm
by jameswilson
ok mate
I have made my app have a configurable path so obviously that was the right thing to do.
When you do that i will have to have an option in my app as to how to grab images on playback
cheers
Posted: Thu Dec 08, 2005 3:34 pm
by jameswilson
phil
is it possible to pass spaces in the path for auth in zms?
if so how
Posted: Fri Dec 09, 2005 12:10 am
by zoneminder
Do you mean in a username or password? If so then replacing the space with a + should work, as will %20 I think.
Phil
Posted: Fri Dec 09, 2005 12:13 am
by jameswilson
oh great ill add that then.... somehow lol