go2rtc
go2rtc copied to clipboard
How to configure go2rtc as a ONVIF _server_?
Hi all,
Using go2rtc 1.8.5 as port 1984 on a docker instance running on a Raspberry Pi 3. go2rtc works great with RTSP and HTTP streaming to tablets and to Home Assistant clients on my LAN (single subnet).
I’m now trying to get the Roku IP Camera Viewer Basic version to display a camera feed on my TV. As it requires a MJPEG-encoded feed, I configured the settings in the Roku camera app as:
IP: <IP of Raspberry Pi>
Port: 1984
URL: /stream.html?src=my_camera_instance&mode=mjpeg
Doesn’t work.
I also tried just:
IP: <IP of Raspberry Pi>
Port: 1984
URL: /stream.html?src=my_camera_instance
Again, nada nada.
That’s when I learned about ONVIF. If I’m RTFM’ing correctly, if the go2rtc server instance advertised as a ONVIF server (or at least had the right port open), the camera feeds on my go2rtc would be discoverable by the Roku camera app.
Right now, however, when I tell the Roku camera app to scan my network for ONVIF instances, it doesn’t detect anything.
Help?
Your URL doesn't have stream name in src param. So them doesn't work. go2rtc doesn't provide ONVIF auto-discovery feature. ONVIF server runs at same port as Web API.
Your URL doesn't have stream name in src param. So them doesn't work. go2rtc doesn't provide ONVIF auto-discovery feature. ONVIF server runs at same port as Web API.
Hi @AlexxIT -- apologies, because I didn't wrap the IP / Port / URL entries inside a code-block, the stuff I angle-bracketed didn't display.
Please re-review what I have above?
Thank you for your assistance!
MJPEG will work for you only if source camera support it. Or if you setup transcoding via ffmpeg.
If your app support only MJPEG stream - html link won't work. It's only for browsers.