+3
Discuss

Synology Surveillance Station

Justin 1 year ago in Media Tiles / Video Camera Feeds • updated by Guyan 4 days ago 7

Hello! First off great app, it's really speedy and I love the setup capability.


Question about video feeds. I live in a world where I have two types of FOSCAM cameras for my house. A C1 for inside and a FI9803 outside. These cameras do not support http streaming via url.


Originally they were not bought for http streaming but rather a tight integration into my synology surveillance station for surveillance DVR etc...


Synology provides a few ways to access a live video feed but I will focus on two:


1. https://[external ip address]:5001/webapi/SurveillanceStation/streaming.cgi?api=SYNO.SurveillanceStation.Streaming&method=LiveStream&version=2&_sid=cVlEBPLYbJaOI1470MGN778701&cameraId=18


This is the url to view a live feed via https. Running this in a browser, however, does not seem to work. Running it in ST does.


2. You can also connect via RSTP.


My question is whether any other users attempted a connection this way as opposed to going directly into the camera?

Mac

I too have a Synology, and though I am not connecting to Synology to get my video feed, I would actually prefer to so only one source is pulling video off of my cameras at a time.. I could test this as well when I have time to figure out the API of for the latest version of Surveillance Station..


I couldn't get the URL formatted with the synology API the way you had it, though it DOES initiate a download stream that the browser.


The following format (or converted to SSL) works from a browser AND from ActionTiles


http://M_IP:5000/webapi/SurveillanceStation/videoStreaming.cgi?api=SYNO.SurveillanceStation.VideoStream&method=Stream&version=1&cameraId=2&format=mjpeg&_sid=MY_SID




How do you find your SID? 

+1

Awww man I spent ages figuring how to get a stream from the cameras and never thought of using my synology as the source!!!


I'm using d-link cameras connected by IP. For anyone who needs instructions:

Log into Surveillance Station

Click IP Cameras

Right click on your camera

Click share stream path

Copy the path

Paste it into a media tile


It won't show in the preview but if you save it and add the tile..... live video :-)

+2

A little more info. The cameras randomly stopped working and I'm not sure if it is because the stream key expires. I went back into the stream path and there was a new key so it may refresh regularly. So I'm trying something else using the SID as suggested above and noticed someone had asked the question about generating the sid. Anyway, here's how I got it to work.


Create an account for the cameras within Surveillance Station. I don't recommend using a normal user account that you use often.

Create a shortcut in action tiles with the following URL


http://10.0.0.7:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=xxxxxxx&passwd=xxxxx&session=SurveillanceStation&format=sid


Add your cameras as video tiles using the stream link but delete the stmlink variable from the end of the URL. It should look like this.


http://IPADDRESS:5000/webapi/SurveillanceStation/videoStreaming.cgi?api=SYNO.SurveillanceStation.VideoStream&method=Stream&version=1&cameraId=2&format=mjpeg


Open the dashboard on your device. Click the shortcut tile. This will log you into the synology device.


Now go back and your cameras should work.


I'm still testing to see if there is a timeout on accounts that are logged in. Hopefully not but this way all you have to do is click on the shortcut again and it will log you back in.


I can't get this to work.  When I try to click on the link to log in, I get the following error:


{"error":{"code":400},"success":false}

Any ideas?


Thanks


Guyan