zms: FAT [could not open codec]

Support and queries relating to all previous versions of ZoneMinder
Locked
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

zms: FAT [could not open codec]

Post by semotta »

I've ZM 1.21.2 on FC3 and (almost) everything is ok with jpeg images.

Setting ZM_VIDEO_STREAM_METHOD to mpeg shows me a blank
image, and "zms [pid]:FAT [could not open codec]" on /var/log/messages.

-Other options I've set: ZM_OPT_MPEG=ffmpeg, ZM_PATH_FFMPEG is
ok, ZM_FFMPEG_OPTIONS=-hq -intra (default).
-ffmpeg version is 0.4.9-0

How can I increase zms debug level? I can't kill it -USR1...can't type that
fast...

By the way, woudn't it be very nice to have options like ZM_DBG_LEVEL_ZMS,
ZM_DBG_LEVEL_ZMC, etc. on options window?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It sounds like you have a problem somewhere with ffmpeg. What version of it do you have? Also what have you set your video format to be?

Setting debug levels in general can be done by setting the values in the environment but as this is not really possible when running zms through a browser (though it works when you just run it from the command line). The easiest thing to do is just change the call to zmDebugInit function in zms.cpp to pass in a greater value and then rebuild and reinstall it. I don't think you have a problem with zms per se though.

Putting debug in the options is a good idea though not necessarily that easy to implement in practical terms as the debug settings are in a tree with a large number of leaves. However I will add it to the 'to do' list anyway!

Phil
Locked