RSTP connection issues

Forum for questions and support relating to the 1.30.x releases only.
blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

RSTP connection issues

Post by blax » Thu Sep 19, 2019 7:07 am

Hi there,
I'm trying to connect to connect my security cams with zoneminder but with no real success... :?
I run v1.30 zm with a raspberri pi 3 on raspbian and my Security cams are from SANNCE group (1080 H264 IP)

Everything work with vlc with this line :

rtsp://[IPADDRESS]:554/user=[USERNAME]&password=[PASSWORD]&channel=[CHANNELNUMBER]&stream=0.sdp?real_stream--rtp-caching=100

But when i'm trying to set up zm, nothing happen, as i'm a newbie with zm i'm sure that it's my fault not doing right things :D

Someone can help me with the set up ?
Thanks !

bbunge
Posts: 2430
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RSTP connection issues

Post by bbunge » Sun Sep 22, 2019 3:19 pm

Two common errors:
PATH_ZMS is not set to /zm/cgi-bin/nph-zms
Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution. If your camera is a high resolution, halve the value you see in VLC until it works.

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Mon Sep 23, 2019 7:24 am

Hi bbunge, thanks for your answer.
my nph-zms (which is a executable file) is in /usr/lib/zoneminder path and I can not "vi" it to modify PATH_ZMS... :?

Camera resolution in VLC :
Codec MPEG-H Part2/HEVC (H.265)
Video resolution 1920x1080

In Picture my ZM setup
20190923_092038_resized.jpg
20190923_092038_resized.jpg (465.43 KiB) Viewed 720 times

bbunge
Posts: 2430
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RSTP connection issues

Post by bbunge » Tue Sep 24, 2019 5:32 pm

Look in Zoneminder Options Paths for path_zms
Use source type ffmpeg for cams that use rtsp

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Wed Sep 25, 2019 11:11 am

path_zms is OK and source is ffmpeg... and ffpmeg is installed and works...
zm kills me...!!!! far from being simple on a rtsp setup

User avatar
snake
Posts: 198
Joined: Sat May 21, 2016 2:20 am

Re: RSTP connection issues

Post by snake » Wed Sep 25, 2019 5:32 pm

Look at post #2 again. Camera Resolution in VLC must be the same in ZM. You have 1920x1080 in VLC, and 640x480 in ZM.

The only other thing you 'might' try is libVLC, but first get the resolution right. FFMPEG will probably work.

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Thu Sep 26, 2019 6:52 am

Not working. window's monitor stay blank even on 1920x1080 resolution...
I'll dig in libVLC maybe. I don't know it but i'll surely find a tutorial somewhere...i guess lol

bbunge
Posts: 2430
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RSTP connection issues

Post by bbunge » Thu Sep 26, 2019 11:54 pm

As we have said many times, get the stream to work in VLC and it will work in Zoneminder!

Use Firefox not Chrome
Use the resolution shown in VLC. You can also use half the VLC value.
Make sure you have space in /dev/shm High res can eat up space.
Turn down the frame rate at the cam. 5 fps is plenty to start.
Check the wiki to see if your camera has a listing for zm settings.

CountyLine
Posts: 27
Joined: Thu Aug 29, 2019 5:22 pm
Location: USA

Re: RSTP connection issues

Post by CountyLine » Thu Sep 26, 2019 11:58 pm

Maybe try 32 bit colorspace too. Seems to me that made a big difference when I was running 1.30.

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Fri Sep 27, 2019 9:08 am

20190927_105739_resized.jpg
20190927_105739_resized.jpg (626.43 KiB) Viewed 634 times
Ok guys, got some news. I modified everything i found on the web to wake zm up.
VLC is still working getting the image...but still no success with "zombie minder" ^^
But in zm logs i found these lines
WAR : [The device is using a codec that may not be supported. Do not be surprised if things don't work.]

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Tue Oct 01, 2019 6:25 am

any suggestions ?

CountyLine
Posts: 27
Joined: Thu Aug 29, 2019 5:22 pm
Location: USA

Re: RSTP connection issues

Post by CountyLine » Tue Oct 01, 2019 6:10 pm

You should also show the other tabs. It helps people know exactly what you have. Some of this stuff interacts.

For Source Type try Ffmpeg and for Method use TCP.

I am looking at v1.33.14, so the terminology may be slightly different on your version.

blax
Posts: 7
Joined: Thu Sep 19, 2019 6:58 am

Re: RSTP connection issues

Post by blax » Thu Oct 03, 2019 6:33 am

Hello, my cfg bellow :wink:
20191003_080810_resized.jpg
20191003_080810_resized.jpg (577.87 KiB) Viewed 423 times
20191003_080623.jpg
20191003_080623.jpg (733.11 KiB) Viewed 423 times
And thanks for help ! :D

CountyLine
Posts: 27
Joined: Thu Aug 29, 2019 5:22 pm
Location: USA

Re: RSTP connection issues

Post by CountyLine » Thu Oct 03, 2019 1:50 pm

You appear to still be using Chromium. Please try Firefox.

User avatar
snake
Posts: 198
Joined: Sat May 21, 2016 2:20 am

Re: RSTP connection issues

Post by snake » Thu Oct 03, 2019 3:52 pm

You should not have any Max FPS settings, remove that.

Chromium should work OK if it's up to date.

Flash Raspbian Buster on the RPI and use 1.32.3 in the Raspbian repos. But you should first lower the resolution and FPS of the cameras. 1920x1080 on an RPI is too high to start with. With the RPI, you start with a low resolution, and scale up until the stream starts to drop out. You shouldn't start at a high resolution, because it just might not work.

You could also try these cameras on an x86-64 computer with 1.33 or 1.32 and see if they work.

See: https://wiki.zoneminder.com/Single_Boar ... neral_Tips

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests