Streaming returns error on large events

Support and queries relating to all previous versions of ZoneMinder
Locked
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Streaming returns error on large events

Post by SyRenity »

Hi.

I noticed that the latest version of ZM, 1.21.4, can not stream large recorded events, 70 sec and more, can not be streamed by ZM/FFMPEG. There is an error which appears in the logs:

Nov 23 13:08:51 test1 zms[14336]: FAT [Could not open codec]

It seems as the libavcodec cannot initialize a new codec, for this size of the events?

The used FFMPEG is CVS from ~3 weeks ago.

Have anyone seen similar behavior?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The size of the event should not make any difference to the streaming as images are only loaded as they are needed. The error you are getting is generated during initialisation. I've checked here and I can stream a 300 second event in asf format (though I did find a bug in 1.21.5 as a result of checking so thanks for that :D).

It might be worth either checking in your httpd error log to see if anything else is output or trying to run it from the command line. You will need to set the QUERY_STRING environment variable to everything after the ? in the zms url and then run zms (or nph-zms) with a redirect for stdout (or you'll get garbage on your screen).

So for example

Code: Select all

export QUERY_STRING='mode=mpeg&event=222832&scale=100&rate=100&bitrate=25000&maxfps=1&format=asf&auth=48a20782cb25456ba93a20e80292ff35&rand=1132751340'
/var/www/cgi-bin/nph-zms > xxx
Phil
Locked