Problem with live streaming mpeg

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Problem with live streaming mpeg

Post by Cylindric »

I have intalled ZM (1.21.4) on a Suse 10 machine, and after a bit of strife getting the webcam to work (a Philips PCVC740K ToUcam Pro) all seems well.

ZoneMinder looks like a great application, and does everything I want it to, I think.

I'm not sure if the following is even something I should be doing, I'm not totally sure about the pro's and con's of doing things this way, but I'm having problems using streaming mpeg on my camera monitors.

When looking at a monitor, all I get is a 'stuck' mplayer, with it saying it's initializing. (See http://www.hanfordonline.co.uk/archive/ ... rstuck.jpg), the same if I click on an event.

If I then click on the "Video" link and save out a video, it opens and plays fine. (See http://www.hanfordonline.co.uk/archive/ ... tstuck.jpg - screenie looks black but shows fine on my pc)

This must be a configuration error that I've made, because in the /var/log/messages I see lines for:

Code: Select all

linux zms[24728]: ERR [MPEG streaming of 'mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=15&format=asf' attempted while disabled]
But can't seem to find where that is set.
Some of my options are:

Code: Select all

ZM_VIDEO_STREAM_METHOD: mpeg
ZM_VIDEO_TIMED_FRAMES: yes
ZM_VIDEO_LIVE_FORMAT: asf
ZM_VIDEO_REPLAY_FORMAT: asf
ZM_CAN_STREAM: auto
ZM_OPT_MPEG: ffmpeg
ZM_PATH_MPEG_ENCODE: /usr/local/bin/mpeg_encode (not installed)
ZM_PATH_FFMPEG: /usr/bin/ffmpeg
ZM_FFMPEG_INPUT_OPTIONS: (none)
ZM_FFMPEG_OUTPUT_OPTIONS: -r 25
ZM_FFMPEG_FORMATS: mpg* mpeg wmv avi mov 3gp**
------------------------------------------------------
update:

I just saw the posts about having ffmpeg compiled with shared libs, I had downloaded a pre-packaged version for Suse 10, and get this:

Code: Select all

configuration:  --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg --enable-vorbis --enable-pp --enable-gpl --enable-a52 --enable-faad --enable-gprof --enable-theora --enable-xvid --enable-faac --enable-amr_nb --enable-amr_wb
------------------------------------------------------
Suse 10
Linux Version 2.6.13-15.7-smp
ZoneMinder 1.21.4
Apache 2.0.54-10
PHP 4.4.0-6
MySQL 4.1.13-3
ffmpeg CVS 3276800
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Post by Cylindric »

Oh, and I also get some of the following messages in the logs, but everything seems to be working fine. (apart from the mpeg views of course)

Code: Select all

zma_m1[30311]: ERR [Shared memory not initialised by capture daemon]
Is there a way to see the compiled options of ZM? I'm sure I used --with-ffmpeg, and have even recompiled again, but it would be good to see what the actual config is.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The error you are getting is because ZM was unable to find the ffmpeg libraries during configure. Check you have installed the ffmpeg libraries (make installlib) and not just the binaries.

You should be able to check what options you passed to configure by looking in config.log in your ZM build directory.

Phil
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Post by Cylindric »

zoneminder wrote:make installlib
Gah! That's all it was! Thank you :)

Now, for the monitors, _should_ I be using mpeg playback through ffmpeg, or leave it as jpeg? What are the benefits? (just point me to the docs, if it's been said and I've just missed it)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Personally I prefer mpjpeg plaback. Mpeg playback can be lower bandwidth but nearly always requires plugins which gives you a delay on loading. Plus live mpeg feeds often end up building up a lag so it's not actually 'live' at all.

Phil
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post by SyRenity »

Hi.

On other hand, it's slower then the mpeg, and does not produce a fluent movie-like streaming, especially over the Internet. So I think that both methods are serving different cases and needs.

(Although Flash, if all the problems will be resolved, might be the ultimate solution ;)).
dgsconseil
Posts: 13
Joined: Sun Feb 12, 2006 3:20 pm

Post by dgsconseil »

easy way to install ffmpeg on suse is to add the packman source to your installation support

Add packman source install for ffmpeg

Type : HTTP
Server : packman.rsync.zmi.at
Path : suse/[SUSEVERSION]

then just use yast2 to install ffmpeg libffmpeg and libffmpeg devel

tuto for suse 10 oss is there
http://www.zoneminder.com/forums/viewtopic.php?t=5686
Locked