zms questions
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
zms questions
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: zms questions
It may just be that it's expecting a specific file type but yes perhaps the parameters are incorrect so...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?
mode - should be either 'jpeg' for mpjpeg stream, 'mpeg' for mpeg stream or 'single' for individual jpeg framejameswilson wrote:1 does anyone have any documentation or queswork on all the zms paramaters.
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
Creating it by doing what?jameswilson wrote:2 would the overhead of Creating a jpeg called mon1, 2 etc be huge
I don't know about this as I don't have access to a ppc.jameswilson wrote:3 is this something that a ppc can do but the limitation is me
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?jameswilson wrote:4 any better suggestions
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
christ this is getting complicated lol.
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.
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
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.jpgIt may just be that it's expecting a specific file type but yes perhaps the parameters are incorrect so...
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.
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.Creating it by doing what?
Your not missing too much but im a bit attached to mineI don't know about this as I don't have access to a ppc.
Problem is getting a reliable java client for ppc. I assume cambozola would work if the right java bits were on the deviceI 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?
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
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
phil
is it possible to pass spaces in the path for auth in zms?
if so how
is it possible to pass spaces in the path for auth in zms?
if so how
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
oh great ill add that then.... somehow lol
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk