Created
August 21, 2024 07:57
-
-
Save 2-click/46216b77a17e132175a6bb76c4ac42e5 to your computer and use it in GitHub Desktop.
Synology surveillance station get MJPEG Streaming path for smarthome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Many smarthome solutions only integrate with MJPEG, not with RTSP. If you have a surveillance station you can use that to "convert" RTSP to MJPEG. One example would be Loxone (https://www.loxone.com/dede/). | |
Many people don't know this, but while streams can only be shared as RTSP in the GUI of surveillance station, there's a way we can share the stream as MJPEG when using the API. | |
Login to Synology surveillance station. Then use these links in the browser to get the MJPEG path: | |
List cameras: | |
http://synology/webapi/entry.cgi?privCamType=3&version=%228%22&blIncludeDeletedCam=true&streamInfo=true&blPrivilege=false&start=1&api=%22SYNO.SurveillanceStation.Camera%22&limit=2&basic=true&blFromCamList=true&camStm=1&method=%22List%22 | |
Use the retrieved ID to get the stream path | |
http://synology/webapi/entry.cgi?api=%22SYNO.SurveillanceStation.Camera%22&method=%22GetLiveViewPath%22&version=9&idList=5 | |
Streamingpath looks like this: | |
http://synology/webapi/entry.cgi?api=SYNO.SurveillanceStation.Stream.VideoStreaming&version=1&method=Stream&format=mjpeg&cameraId=5&StmKey=%22d5658f0c5b8b8404e21565g6aafba8edf%22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment