ZoneMinder streaming...

Support and queries relating to all previous versions of ZoneMinder
Locked
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

ZoneMinder streaming...

Post by ScottishCpatain »

Okay...

Well, I've got my rig running with 4 cameras now. Each are setup to stream a 640x480 image (apparently interlaced).

I'd like to use one of the video formats, rather then MJPEG.

However, every format I try, ether doesn't work (the media player just sits there doing nothing), or Firefox says I need a plug in that doesn't exist.

To this date, the only two formats I've ever seen work is MJPEG (Jpeg Streaming) or SWF, and SWF tends to lockup and stop displaying the video (probably because the server needs to be upgraded soon).

Has anyone had any sucsess with the Streaming options of ZoneMinder? If so, what settings did you use under "Images"?

-SC
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

With mpeg checked:
avi, and swf both work fine for me.
Obviouly if you can't stream any formats from ffmpeg then something is not right with it.
What happens if you try to make a clip through it?

Corey
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

Post by ScottishCpatain »

I can generate video from it under ZM just fine as AVI, and it plays back as expected.

When streaming AVI, under Firefox it says I need to download a plugin, and then when I click on the plugins button, it says no suitable plugin could be found.

Under Internet Explorer, it just says "Windows Media Player" and never plays the live stream.

Also, changing the replay format to MPEG yeilds the quicktime icon with a ? on it, and that never plays ether.

I'd rather not use MJPEG, as it's slow as heck and consumes a great amount of bandwidth, even at low FPS. I'm also wanting to load the reply up in such a way that I have the controller bar from something like Quicktime to cycle through the movie (ZM's navigation bar doesn't really work that well).

-SC
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The only settings I have other than above are
ZM_FFMPEG_OUTPUT_OPTIONS -r 25

The only thing is you have to wait for MP to buffer the video :x Thats why I don't use MP and use SWF.

Regards,
Corey
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

Post by ScottishCpatain »

Okay, I'm tracking it down slowly...

Using Mpeg, quicktime gives me the ?.

Apache's log says something like:

[Thu Nov 09 08:43:53 2006] [error] [client 10.0.0.83] MPEG1/2 does not support 20/1 fps, referer: <Zoneminder URL>

What does this mean? My cameras are setup for 10FPS Max, 30FPS Alarm. There's nothing else configured except -r 25 as you mentioned... Seems like a nonsensical message to me.

-SC
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That was a problem in ffmeg at some point they desided that they would not accept a fps of les that 20 :( what version of ffmpeg are you running?
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

Post by ScottishCpatain »

It's a CVS 2005/09/18 version from Ubuntu.

Basically, I just ran "apt-get source ffmpeg", and that's what it downloaded...

I've been trying to find an older version with no avail.

-SC
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can use a newer version but you will need to apply the pacth on the wiki for ffmpeg.
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

Post by ScottishCpatain »

What patch? Been looking for a few minutes.

The closest thing I could find is on this page:
http://www.zoneminder.com/wiki/index.php/1.22.2_Patches

Is that the patch, and all of it? Seems like an awefully small patch?

-SC
ScottishCpatain
Posts: 7
Joined: Wed Nov 08, 2006 8:01 pm

Post by ScottishCpatain »

Okay, I can't find any patch that does what you say. The only patch I did find is already incorporated into ZM.

I've tried every format available for Quicktime. MP4, Mov, Mpeg, etc. MP4 actually appears to do something, but it never displays on the screen (as in, ffmpeg doesn't complain) on the client computer.

Is ZM streaming like simply broken or something? Because I'm not having an awful lot of luck getting this stuff to work. AVI streaming under WMP 10 doesn't do anything at all, it just sits there.

-SC
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ffmpeg command set chnages with every version. In zm4ms i use 0.4.8 cos 0.4.9 is borked for jpegs.
zm streams quite fine for me in asf or flash, i have never tried any other format, but whatever format you use dont forget that the stream isnt comming form a file and ffmpeg expects this for some formats
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
emamirazavi
Posts: 6
Joined: Thu Oct 12, 2006 10:49 am

Post by emamirazavi »

Hi, my friends, I've got this problem too...
Can anybody help me?
everything is good but alone this problem's stopped my progress...
caseystone
Posts: 98
Joined: Fri Feb 25, 2005 3:41 am
Location: England

Post by caseystone »

Sorry to reply to such an old post, but I'm having these same problems still.

I'm on ZM 1.22.3 on the Kubuntu distro from Bluecherry (which is Ubuntu 6.06.1 LTS -- Dapper).

Here's the version info for ffmpeg.

Code: Select all

root@zoneminder:~# ffmpeg -version
FFmpeg version SVN-r7222, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  
  libavutil version: 49.1.0
  libavcodec version: 51.25.0
  libavformat version: 51.6.0
  built on Dec  5 2006 14:07:04, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
ffmpeg      SVN-r7222
libavutil   3211520
libavcodec  3348736
libavformat 3343872

Is it the low framerate issue? I capture at 8 fps.

Thanks.

-Casey
Locked