How does ZoneMinder display MPEG streams in a browser?

Support and queries relating to all previous versions of ZoneMinder
Locked
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

How does ZoneMinder display MPEG streams in a browser?

Post by lister »

I am looking at using Zone Minder to let me access my CCTV cameras from work, but just wondered how MPEG streams are displayed in the browser?

I see that MJPEG is natively supported, or supported via Java appletts such as Cambozola, but how is MPEG supported?

Is it another Java applett? An Active-X plugin? Quicktime?
Also how is it streamed? Simply over HTTP, or something like RTSP?

Oh! And what format of MPEG is it? MPEG4? ASP or H.264?

Soz for all the questions :oops:
Lister
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

Post by lister »

Ah! No matter. I've just found this in the docs which answers a lot of my questions.
MPEG video streaming. ZoneMinder now supports true video streaming if configured with the –with-ffmpeg option. This allows one or both of live or event streaming to be in this format rather than motion JPEG style as before. Note however that is still somewhat experimental and may not work on your system. The reason for this is due to the variation in plugins and video movie formats. Currently I have got it working well with browsers on Windows platforms using the Windows Media Player plugin and the 'asf' video format. I have also managed to get event streaming working on Mozilla using mplayer (I think) though it jumps in and out of it's place in the window a bit. I would appreciate any feedback or advice on formats and plugins that work on your system. Also note that video streaming tends to get buffered before being displayed. This can result in the 'live' view being several seconds delayed.
That was release 1.19.0 though. Has anything changed / improved since then?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

streaming is either by jpeg or ffmpeg supported codec, be that mpeg, asf flash etc.
The plug in required is usually windows media player
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
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

Post by lister »

You mention Flash there. Are you seriously able to stream live video to a Flash player?!?!? :o

That would be fantastic as not all my boxes are Windows.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Just set swf ;)
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

Post by lister »

cordel wrote:Just set swf ;)
That's blimmin fantastic if it works!
But can you tell me more about how it works?
I presume the SWF is just a small Flash app that then streams a live FLV?I thought Flash video had to be streamed via RTMP though? :?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

lister wrote:That's blimmin fantastic if it works!
But can you tell me more about how it works?
It does work but it seems only certain diminsions. I haven't had a chance to figure out why yet.
ZM it self does not produce mpg, asf or swf but uses ffmpeg to produce these streams and embed them in it's web pages. To be honest I don't know if it's send via RPC or RTMP as I only know enough of ffmpeg to just get it to work ;) but it's embeded like most other videos with http. Guess I should go to their site and readup :lol:
sergiut2002
Posts: 30
Joined: Wed Sep 19, 2007 11:54 am
Location: Constanta Romania

mplayer

Post by sergiut2002 »

do you know how can i reduce the buffer so the camera is displayed faster?

i used mplayer on localhost where zm is installed and mplayer was buffering too much.. somethimes was only buffering no image displayed at all
________
FORD FREESTAR
Last edited by sergiut2002 on Sun Feb 13, 2011 3:51 pm, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might check the players settings and see if you can reduce or stop it from buffering. I usualy use the flash format and player as that does not buffer, but all formats suffer from delayed video that increases the longer you have the stream going.
Locked