Black screens when trying to stream asf or swf

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

Black screens when trying to stream asf or swf

Post by lister »

Am making slow progress with my install on Fedora...

Test camera is now working fine using MJPEG or JPEG. However, when I try and stream asf or swf, I just get a black screen.

The browser is definately expecting the correct format, as it loads media player, or Flash appropriately.

I have installed ffmpeg fine, and set the following options:
ZM_MPEG_LIVE_FORMAT = asf
ZM_MPEG_REPLAY_FORMAT = asf
ZM_STREAM_METHOD = mpeg
ZM_OPT_MPEG = ffmpeg
ZM_PATH_FFMPEG = usr/bin/ffmpeg (correct)
ZM_FFMPEG_FORMATS = mpg* asf mpeg wmv avi mov swf 3gp**

Is there some log file that can give me a clue?
I've tried looking at /var/log/messages, but can't see any obvious problems.

Thanks for any help,
Lister
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

Post by lister »

OK, I've just noticed this message in the log:

Code: Select all

Aug 19 19:41:46 garage zms[5892]: ERR [MPEG streaming of 'mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=15&format=asf&auth=ee5e6fa43f50701cd77b9ddcb283e9a2&rand=1187548906' attempted while disabled]
which seems to infer that mpeg streaming is disabled? Any idea why? :(
lister
Posts: 14
Joined: Wed Aug 15, 2007 9:22 pm

Post by lister »

Right, I've searched the forums for this error, and see that it's because my copy of ZM wasn't built for mpeg support, or it couldn't find some libraries.

I'm a fair newbie to Linux, so I just installed ZM as an RPM. Does this mean I have to build ZM myself in order to get streaming working? :(

Is there not an RPM version somewhere with mpeg support already built?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I have many years of zm experience but i still have issues trying to build and get ffmpeg to work so i still use the live cd. If you want to 'roll your own' im afraid this will happen and i for one dont have the know how to help you. I know that the compiled version of zm must match the ffmpeg version it was built with.
If you want it to just work and dont have bleeding edge new hard ware check out the live cd's or Ross's CTU ZM

live cd is on Mandriva 2006, CTU is FC3
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 »

Thanks for your comments. Sounds like it's going to be a bit of a mare but I guess that's the best way to learn! :lol:

Been reading up a bit on the Fedora rpm and it seems that ffmpeg wasn't included as the licensing goes against Fedora's philosophy.

Oh well, I guess I'll just have to have a bash at building it myself, and I can always fall back on the live CD's if needs be.

Thanks again.
dhorth
Posts: 14
Joined: Wed Sep 12, 2007 8:27 pm

Update

Post by dhorth »

Did you find a fix for this issue. I'm in the same boat!
Locked