Synology Container Manager (Docker) Setup
I want to use my UniFi Protect camera's stream in a browser and installer go2rtc on my Synology as Docker. As configuration, I only added the variable "camera1" with content to the stream rtsps://192.168.1.1:7441/xxxxxxxxxxxx?enableSrtp where xxx is the token. I also forwarded ports 1984, 8554. 8555, 7441.
When I access http://synologyip:1984/api/stream.m3u8?src=camera1 I get "stream not found". Opening the stream's URL on VLC works fine.
Probably just a simple configuration problem, but I couldn't figure it outwith the wiki.
It is better to show the config exactly as you wrote it. You can remove the secret stuff.
To be honest, I just entered the RTSP location of the stream. Since the certificate of the RTSPS stream seemed problematic for some clients, I also used the RTSP stream. Still "get stream not found".
What makes you think such a config should even work? go2rtc does not read environment variables with random names.
In the readme.md the env vars are described at https://github.com/AlexxIT/go2rtc/blob/master/internal/app/README.md Here I see:
streams:
camera1: rtsp://rtsp:${CAMERA_PASSWORD}@192.168.1.123/av_stream/ch0
rtsp:
username: ${RTSP_USER:admin} # "admin" if "RTSP_USER" not set
password: ${RTSP_PASS:secret} # "secret" if "RTSP_PASS" not set
AFAIK, there is no possibility to define nested vars in Container Manager (Docker) at my Synology NAS. Thus I didn't knew how to define streams camara1 and only defined camera1. For RTSP I have no usr nor pwd since the stream is only in my LAN.
So how do I define the source for the stream correctly? Thanks for advice.
This is an example of a config. It doesn't exist. You need to write it yourself.
The example is for a config file. By now. I never had a Docker image, that didn't read the env variables passed. So the answer is, go2rtc doesn't read env vars and depends on a config file? Thanks for clarifying that.
Go2rtc can read env variables, as described in the docs you have linked.
Can you show your config file?
I don't have a config file. Usually, I pass all the variables in the GUI of Container Manager. So my question is: what is needed and what's the correct variables? I assumed, gotrtc would just need the URL of the RTSP stream and thought "camera1" would be the variable name. I have several MQTT bridges running which could be configured that way. If I need to create a config file, I'll figure it out. Since I'm not a Linux user, I try to avoid to ssh into my NAS and create directories and edit config files.
Go2rtc has WebUI where you can change config file. Some random env variable means nothing without config.
Ups, I didn't find the WebUI. Now, that I discovered, that I can access it at