Sricam SP 009

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
tekcap
Posts: 2
Joined: Sat Oct 31, 2015 5:19 pm

Sricam SP 009

Post by tekcap »

Hello,

Before anyone judges me, I would like to say YES I know my camera is a piece of garbage, but it was 30$.

I seem to have trouble getting the thing to work in Zoneminder 1.28.1-6 Kali Linux Distro.

I'm not sure what settings to enter into the add new monitor box.

So far I know that the IP of my camera is 192.168.1.17, the rtsp port is open on 554 and that VLC can connect using this:rtsp:192.168.1.17:554/onvif1

I tried putting that information into Zoneminder in all kinds of combinations and can't seem to get any to work.

Here is a Wireshark session when I connect with VLC:

OPTIONS rtsp://192.168.1.17:554/onvif1 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)

RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

DESCRIBE rtsp://192.168.1.17:554/onvif1 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Length: 421

v=0
o=- 1421069297525233 1 IN IP4 192.168.1.17
s=H.264 Video, RtspServer_0.0.0.2
t=0 0
a=tool:RtspServer_0.0.0.2
a=type:broadcast
a=control:*
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==
a=control:track1
m=audio 0 RTP/AVP 8
a=control:track2
a=rtpmap:8 PCMA/8000
SETUP rtsp://192.168.1.17:554/onvif1/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Transport: RTP/AVP;unicast;client_port=52318-52319

RTSP/1.0 200 OK
CSeq: 4
Transport: RTP/AVP;unicast;destination=192.168.1.253;source=192.168.1.17;client_port=52318-52319;server_port=6986-6987
Session: 29fb9305;timeout=60

SETUP rtsp://192.168.1.17:554/onvif1/track2 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Transport: RTP/AVP;unicast;client_port=52320-52321
Session: 29fb9305

RTSP/1.0 200 OK
CSeq: 5
Transport: RTP/AVP;unicast;destination=192.168.1.253;source=192.168.1.17;client_port=52320-52321;server_port=6988-6989
Session: 29fb9305;timeout=60

PLAY rtsp://192.168.1.17:554/onvif1 RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Session: 29fb9305
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 6
Range: npt=0.000-
Session: 29fb9305
RTP-Info: url=rtsp:192.168.1.17:554/onvif1/track1;seq=38307;rtptime=9666676170,url=rtsp:192.168.1.17:554/onvif1/track2;seq=13268;rtptime=859260104

GET_PARAMETER rtsp://192.168.1.17:554/onvif1 RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Session: 29fb9305

RTSP/1.0 200 OK
CSeq: 7
Session: 29fb9305
Content-Length: 0

TEARDOWN rtsp://192.168.1.17:554/onvif1 RTSP/1.0
CSeq: 8
User-Agent: LibVLC/2.2.0 (LIVE555 Streaming Media v2014.07.25)
Session: 29fb9305
jc179
Posts: 3
Joined: Mon Mar 21, 2016 6:21 pm

Re: Sricam SP 009

Post by jc179 »

Were you ever able to get this working?
luisreisguaxupe
Posts: 1
Joined: Sat Apr 09, 2016 10:47 pm

Re: Sricam SP 009

Post by luisreisguaxupe »

try changing in General (Source Type: Libvlc ) and in Source ( Source Path: rtsp://192.168.10.20:554/onvif2) (Remote Method: RTP/RTSP). Ajust to your camera ip address, but pay attention to '2' after onvif and not '1'. Good luck.
jc179
Posts: 3
Joined: Mon Mar 21, 2016 6:21 pm

Re: Sricam SP 009

Post by jc179 »

thanks, tried that, monitor link in zoneminder actually changes from red to orange, but still doesn't work.
the onivf2 seems to be a low-res stream 320x180 , vs the 1280x720.

Jonathan
slaeyer
Posts: 2
Joined: Tue Feb 16, 2016 5:44 pm

Re: Sricam SP 009

Post by slaeyer »

For the record, I was able to get this camera to work in ZM 1.29 on Ubuntu 16.04 with full motion and 1280x720 pixels using the onvif1 feed and libvlc as follows:

General > Source Type: libvlc
General > Maximum FPS: 30
General > Remaining items leave as default

Source > Source Path: rtsp://camera.ip.address:554/onvif1
Source > Remote Method: RTP/RTSP
Source > Target Colorspace: 24 bit color
Source > Capture Width: 1280
Source > Capture Height: 720
Source > Remaining items leave as default

No other tabs modified
j45p41
Posts: 2
Joined: Mon Jul 18, 2016 5:26 pm

Re: Sricam SP 009

Post by j45p41 »

Hi Slaeyar,

thank you for your post. Can you send a screenshot of your config. I have tried the settings below but when I go to montage view it is blank.

I can get it to work with ffmpeg at lower resolution but not libvlc. Is there anything else that you may have done to get it to work. I am on the same ubuntu/zm build as you - thanks!
jc179
Posts: 3
Joined: Mon Mar 21, 2016 6:21 pm

Re: Sricam SP 009

Post by jc179 »

Thanks for the info everyone.

I still have blank no matter which stream/config I try... :(

Can you also confirm what firmware version your using? Mine has been updated to the latest, in which I may have shot my self in the foot ... :(

I have Current version 14.0.0.52, uboot version 5, cpu version 5, system version 24.

thanks,

Jonathan
mrbill
Posts: 20
Joined: Thu Jan 19, 2017 7:13 am

Re: Sricam SP 009

Post by mrbill »

I got this working with the instructions above. You have to have the vlc package installed.
andrewdmcg
Posts: 2
Joined: Fri Aug 25, 2017 1:32 pm

Re: Sricam SP 009

Post by andrewdmcg »

This also works for the Sricam SP 007 (an outdoor version). As above, the path is rtsp://<ip address>:554/onvif1 . No authentication needed.

Note it does not work as ffmpeg. It seems like it ought to: the command line ffmpeg tool works with $ ffmpeg -i rtsp://<ip address>:554/onvif1 test_out.mp4 to record the stream directly, but the call to av_open_input_file from zm_ffmpeg_camera.cpp always times out, even extending the timeout to 60 seconds or more. It would be interesting to find out why that is.

However, like the SP 009, it works with libvlc.

I had a bit of trouble getting libvlc to work at all, but that was nothing to do with this camera particularly, it was just that I had zoneminder 1.29.0 from jessie-backports but had upgraded the rest of my system to stretch. I removed the jessie-backports install and got 1.30.4 from debian-multimedia, following the instructions on the wiki https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way , and that worked fine. I think installing the vlc-plugin-base package might have been the important bit I was missing; it pulls in a lot of dependencies that you don't get if you just install libvlc, libvlccore and the -dev packages.
Post Reply