rtsp stream works in vlc but not in zoneminder

Forum for questions and support relating to the 1.25.x releases only.
Locked
meekatron
Posts: 4
Joined: Thu Apr 17, 2014 11:32 am

rtsp stream works in vlc but not in zoneminder

Post by meekatron »

I hope someone can help me with the settings i seem to be missing. I am sure it is something simple. I am trying to link the streams from my dvr into zoneminder. The stream which works in vlc is.

rtsp://192.168.5.18:554/user=admin&password=&channel=1&stream=1;(0-mainstream;1-substream).sdp

I have tried adding this into the remote path in zone minder without any joy, I also took out the port number from this line and added it to the port box when adding the path in zoneminder but still no joy.

Hopefully someone can help me and let me know what I am missing.

I have tried to post image urls but a new user. i ave tried this

remote protocal = rtsp
remote method = rtp/rtsp/httpp
remote hostname = 192.168.5.18
port = 554
remote path = /user=admin&password=&channel=1&stream=1;(0-mainstream;1-substream).sdp

I am getting an error in my log files...

Unable to get RTP Info identifier from response 'RTSP/1.0 200 OK Content-Length: 0 Server: H264DVR 1.0 CSeq: 3 Range: npt=now- Session: 61106210 '

Oh the zoneminder server is running on ubuntu 12.04
meekatron
Posts: 4
Joined: Thu Apr 17, 2014 11:32 am

Re: rtsp stream works in vlc but not in zoneminder

Post by meekatron »

I have upgraded my zonemider to 1.26.5 but still no joy. If a moderator could move my question to the approiate section. Thanks.
meekatron
Posts: 4
Joined: Thu Apr 17, 2014 11:32 am

Re: rtsp stream works in vlc but not in zoneminder

Post by meekatron »

I have noticed that with this error "/tmp/zm/zms-625927s.sock failed no such file or directory"
when i look into that particular directory the file that is being created is "zms-625927w.sock"?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: rtsp stream works in vlc but not in zoneminder

Post by bbunge »

You are using source type Ffmpeg?
meekatron
Posts: 4
Joined: Thu Apr 17, 2014 11:32 am

Re: rtsp stream works in vlc but not in zoneminder

Post by meekatron »

Yes i am using ffmpeg I did try remote but had the same issues.

My source path for ffmpeg is rtsp://192.168.5.18:554/user=admin&password=&channel=3&stream=0;(0-mainstream).sdp

my zoneminder conf looks like this

Code: Select all

Alias /zm /usr/share/zoneminder

<Directory /usr/share/zoneminder>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
</Directory>

ScriptAlias /cgi-bin "/usr/share/zoneminder/cgi-bin"
<Directory "/usr/share/zoneminder/cgi-bin">
     Options +ExecCGI -MultiViews +SymlinksIfOwnerMatch
     AllowOverride All
</Directory>
I added the ScriptAlias part after googling about but it also made no difference.
The paths are correct but. Also changed ownership in /usr/share/zoneminder to "www-data" and added ww-data to video group, and chmod 777 in temp folder.

The mystery is that the files being created in the temp foder are zm-****w.sock when they should be zm-****s.sock
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: rtsp stream works in vlc but not in zoneminder

Post by bbunge »

I think you need to shorten up your input. I suggest: rtsp://admin:password@192.168.5.18:554/mainstream.sdp

You did not state what your device is. Might help us get you working...

You will also need to set the Capture Height and Width based upon the resolution of your camera or device. If your camera is a 720P try 320X180. If it works you can double the size.
Locked