Page 1 of 1

New install, camera working, but viewer shows broken image

Posted: Thu Oct 20, 2016 5:07 am
by dconroy82
Hello,

I've just installed zoneminder 1.30 on Ubuntu 16.04.1, by following this guide: http://zoneminder.readthedocs.io/en/lat ... untu-16-04


It's all installed, appears to be working fine, except that I can't view my camera.

I have an UOKOO "X Series" IP camera.
It's working fine through VNC if I use the address rtsp://user:password@10.0.1.20/live/ch0

I've set it up in zoneminder using ffmpeg as the source type, the address above, and I've tried the color options of greyscale, 24bit and 32bit. The remote method is RTP/RTSP, and I've also tried "allowed_media_types=video" in options, as well as a blank field there.
I have also tried various video sizes - 320x240, 640x480 up to 1920x1080 (it's a 1080p camera).

Zoneminder definitely is receiving video from the camera, because I see events showing up, and if I click on an event, I can click through screenshots of the events.

However, when I click the camera to view the live stream, I just get a broken image in my browser. What am I missing here? Is it just a browser plugin I need... or something wrong on my zoneminder setup?

Thanks for any help,
Dan

Re: New install, camera working, but viewer shows broken image

Posted: Thu Oct 20, 2016 9:17 am
by SteveGilvarry

Re: New install, camera working, but viewer shows broken image

Posted: Thu Oct 20, 2016 12:46 pm
by dconroy82
Thanks for the reply.

Cgi is definitely enabled (a2enmod cgi returns "Module Cgi Already Enabled"

My scriptalias in ../conf-enabled/zoneminder.conf looks like:
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"

My PATH_ZMS within the console is nows set to:
/zm/cgi-bin/nph-zms

(it was previously missing the /zm/ before...)

I restarted my server completely after making these changes - but the live stream still doesn't show.

Any other ideas?

Thanks,
Dan

Re: New install, camera working, but viewer shows broken image

Posted: Thu Oct 20, 2016 6:19 pm
by bbunge
Likely your camera resolution setting. Use VLC to view the camera stream then check the reported WxH.

Re: New install, camera working, but viewer shows broken image

Posted: Fri Oct 21, 2016 12:31 am
by dconroy82
Ok - one step closer thanks!

I found my resolution was actually 1920 x 1090 (rather than 1080).

Now, when I enter that as the resolution I get a blue screen in place of where te video should be - I see the timestamp at the top left, and I see fps and "idle" below.

What now? :)

Re: New install, camera working, but viewer shows broken image

Posted: Fri Oct 21, 2016 1:08 am
by dconroy82
Hmm, I just turned off authentication on my camera, and removed the username and password from the rtsp url, and it's working. I guess it's an auth issue.

Thanks for the help everyone.