Page 1 of 1

Stream works in VLC not in Zoneminder

Posted: Wed Feb 08, 2017 2:17 am
by MoOz
Hi i am new to ZoneMinder
I used the
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
guide
changed the path to /zm/cgi-bin/nph-zms
ticked the OPT_CAMBOZOLA option
ticked the OPT_FFMPEG option and inserted /usr/bin/ffmpeg

I am using a Herospeed camera works in VLC player but not in Zoneminder ??
this is the VLC url rtsp://admin:admin@192.168.1.168:554/Streaming/Channels/0

In Zoneminder camera is detected by ONVIF scan, cannot view it ? get a blank Screen
I also did manaul install settings are

Source Type Ffmpeg
Source Path rtsp://admin:admin@192.168.1.168:554/0
Remote Method RTP/Unicast
3840 by 2160

I installed a Hikvision 5MP and I can view it Just to make sure Zoneminder works (uses RTSP)

Re: Stream works in VLC not in Zoneminder

Posted: Wed Feb 08, 2017 2:37 am
by bbunge
Lower your resolution by half. Also check what VLC is reporting the camera resolution and use that value. Yes, you may have to play with the monitor settings. If the resolution is not exactly right the camera will not work! Been there time and again. Oh, the higher the resolution the more RAM you will need...

Re: Stream works in VLC not in Zoneminder

Posted: Wed Feb 08, 2017 3:34 am
by MoOz
Thanks for your response
I set the resolution to the lowest still the same
source is now RED ??

looks like only one camera working ??
something is broken

Re: Stream works in VLC not in Zoneminder

Posted: Wed Feb 08, 2017 7:29 pm
by Sigge
When you have the stream open in VLC; right click and go to tools -> codec information.

I get two values here. Resolution and display resolution. I use resolution that is also bigger.

Zoneminder uses ffmpeg (?) unless you choose vlclib (?). I never got vlclib to work.

You can get better error messages directly from ffmpeg by running:

ffmpeg - i "your streaming url" -r 15 output.mpg

See what that gives you.

Re: Stream works in VLC not in Zoneminder

Posted: Mon Feb 20, 2017 1:19 am
by MoOz
This what the output was ?
at the ent i have an error

NVR:~$ ffmpeg - i rtsp://admin:mozzie@192.168.1.162:80/0 -r 15 output.mpg
ffmpeg version 2.8.10-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir= /usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --dis able-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm -- enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enab le-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-l ibtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libie c61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 0x1f84680] Unable to find a suitable output format for 'pipe:'
pipe:: Invalid argument

Re: Stream works in VLC not in Zoneminder

Posted: Tue Feb 21, 2017 9:56 am
by SteveGilvarry
Remove space between - and i.
ffmpeg -i rtsp://admin:mozzie@192.168.1.162:80/0 -r 15 output.mpg

But don't really need that, more so on the console there is a link for logs, go there and see if it is giving some errors. List all here, screenshot is fine.

On monitor set the Remote Method to RTSP/RTP, 3rd option as this forces TCP and on high resolution cameras we see UDP buffer issues in the form of corrupt images. Not the problem at the moment but will save you later.

FYI Shouldn't need Cambozola unless using IE.