Live Streaming with Flash swf: working; Quicktime question
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I'm about 99% certain it's not something in zms. The streaming daemon only has access to the normal ring buffer of images which only goes back a few seconds.
I suspect that the buffering occurs either in the httpd of the server or in the client player. The only reason I can think that the server would buffer it would be if the streaming daemon was squirting out video faster than it could put it on the network. However I've done some tests here and over a low bandwidth connection streaming jpegs for one minute produces about 1360Kb of content and does not lag at all, whereas one minute of asf or swf produces less than a third (~400Kb). So I think it must be buffering it in the client somewhere as I get lags with Gb network in between.
I'm not really sure of a way to absolutely prove this short of sniffing the network traffic at both ends and comparing the timings.
Phil
I suspect that the buffering occurs either in the httpd of the server or in the client player. The only reason I can think that the server would buffer it would be if the streaming daemon was squirting out video faster than it could put it on the network. However I've done some tests here and over a low bandwidth connection streaming jpegs for one minute produces about 1360Kb of content and does not lag at all, whereas one minute of asf or swf produces less than a third (~400Kb). So I think it must be buffering it in the client somewhere as I get lags with Gb network in between.
I'm not really sure of a way to absolutely prove this short of sniffing the network traffic at both ends and comparing the timings.
Phil
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Hi hil.
You mean that if i set image buffer ring to 1 i should have no lag ?
I thoght that is a problem with zms because this only happens when you are using ffmpeg with zoneminder. if you only use native jpeg streaming, there is no problem. if its server related should happen in jpeg streaming too, but it doesnt and if it is a client buffering, should it occur the same way in Internet explorer and firefox both with asf or swf streaming ?
Thanks a lot from now.
Victor Diago
You mean that if i set image buffer ring to 1 i should have no lag ?
I thoght that is a problem with zms because this only happens when you are using ffmpeg with zoneminder. if you only use native jpeg streaming, there is no problem. if its server related should happen in jpeg streaming too, but it doesnt and if it is a client buffering, should it occur the same way in Internet explorer and firefox both with asf or swf streaming ?
Thanks a lot from now.
Victor Diago
-
- Posts: 98
- Joined: Fri Feb 25, 2005 3:41 am
- Location: England
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Hmmm.
im sorry, ive run asf directly by mplayer acessing the http://path to zms/ with all the options set to no buffer. and also ive got the delay.
So if we change to a realplayer stream or something else that is exactly to live video we should be ok ?
Any clue about what could be good ? i will keep searching this night.
Should VLC -> www.videolan.org be the solution ?
Thanks For all
Victor Diago
im sorry, ive run asf directly by mplayer acessing the http://path to zms/ with all the options set to no buffer. and also ive got the delay.
So if we change to a realplayer stream or something else that is exactly to live video we should be ok ?
Any clue about what could be good ? i will keep searching this night.
Should VLC -> www.videolan.org be the solution ?
Thanks For all
Victor Diago
Last edited by victor_diago on Fri Dec 09, 2005 12:17 am, edited 1 time in total.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Ultimately I have no idea where the delay might be happening but I would be very surprised if it is with zms. One way to find out might to monitor the memory usage of all the various elements to see what keeps growing forever (half an hour of buffered video has to live somewhere) but the other way is to run ethereal or something at the server and client ends and try to match up some individual packets to figure out what the time in transit is.
Phil
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
my 3 pence again
i think as there seperate streams and using 3rd party players we may well always have this problem maybe due to each mplayer getting a little more or less proc time than the others, would it be possible on the client side just to restart the stream every say 30 mins. i dont suppose anydody thought we would use the players in this way
i think as there seperate streams and using 3rd party players we may well always have this problem maybe due to each mplayer getting a little more or less proc time than the others, would it be possible on the client side just to restart the stream every say 30 mins. i dont suppose anydody thought we would use the players in this way
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:
I don't think you can just restart an open stream, though you could skip frames to bring them up to date, but this is what zms already does if it gets stuck any time.
The stream frames are supposed to be tagged with timestamp information which lets the players determine the chronology of them but I don't know how to work out if this is being correctly applied or not. This tagging is optional, via ZM_VIDEO_TIMED_FRAMES, but it is on by default.
This may be an area that needs more investigation.
Phil
The stream frames are supposed to be tagged with timestamp information which lets the players determine the chronology of them but I don't know how to work out if this is being correctly applied or not. This tagging is optional, via ZM_VIDEO_TIMED_FRAMES, but it is on by default.
This may be an area that needs more investigation.
Phil
- victor_diago
- Posts: 245
- Joined: Wed Jan 21, 2004 2:44 pm
- Location: Brazil, sao paulo
- Contact:
Surely is !
Restart open stream is just bad idea , ive tried and it doesnt work well... event because you can get delay after a few minutes of streaming.
Well, this is freak area... how might the surveillance we already know threat that ? ive seen many of them running in not so good computers very well...
I know that a lot of people wants to get this working, so let see if we reach any point... this thread is new created and we can see for the quantity of people that are here that this would be lovely !
Thanks for now, i will keep searching
Victor Diago
Restart open stream is just bad idea , ive tried and it doesnt work well... event because you can get delay after a few minutes of streaming.
Well, this is freak area... how might the surveillance we already know threat that ? ive seen many of them running in not so good computers very well...
I know that a lot of people wants to get this working, so let see if we reach any point... this thread is new created and we can see for the quantity of people that are here that this would be lovely !
Thanks for now, i will keep searching
Victor Diago
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
well im gonna want to sort it when i have an mpeg module for zm4ms, but as im not very good with linux i havnt got mpeg streaming working on any of my boxes, when i do and i have something to test against ill knock up a little viewer that will do say 4 stream,s just for testing so we can see whats going on at the client end (windows only im afraid victor)
JAmes
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
Hi.
Also, can you point me to the source code where the tagging occurs? I would like to give it some look.
Could you please more elaborate on the zms frame skipping? Is it a feature, or it's simply to the nature of the ring buffer (which limits the zms side number of frames)?I don't think you can just restart an open stream, though you could skip frames to bring them up to date, but this is what zms already does if it gets stuck any time.
The stream frames are supposed to be tagged with timestamp information which lets the players determine the chronology of them but I don't know how to work out if this is being correctly applied or not. This tagging is optional, via ZM_VIDEO_TIMED_FRAMES, but it is on by default.
This may be an area that needs more investigation.
Phil
Also, can you point me to the source code where the tagging occurs? I would like to give it some look.
Hi.
Do you plan to have a browser plug in version of the mpeg module? That could solve the lagging issue (if you won't do any buffering, that is).well im gonna want to sort it when i have an mpeg module for zm4ms, but as im not very good with linux i havnt got mpeg streaming working on any of my boxes, when i do and i have something to test against ill knock up a little viewer that will do say 4 stream,s just for testing so we can see whats going on at the client end (windows only im afraid victor)
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
i dont think im caperble of writing browser plugins but i will see if i can port it once its written. I would have to write an activex module and i think this would be ie only. I doubt it but i will see. Dont hold your breath though as all the work im ccurrently doing is on jpeg viewing. I do want mpeg but i will only be in a position to start that once i have an rpm for 1.22 that will be a while yet.
Sorry
James
Sorry
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