Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are RTSP Streams functional? #881

Closed
2 tasks done
Sonny-Crockett opened this issue May 4, 2023 · 7 comments
Closed
2 tasks done

Are RTSP Streams functional? #881

Sonny-Crockett opened this issue May 4, 2023 · 7 comments
Labels
🤔 Question Further information is requested ⛔ Wont Fix This will not be worked on

Comments

@Sonny-Crockett
Copy link

Description

I have some RTSP streams that work in VLC, but I cannot seem to get the function using the Video Stream widget.

Please tick the boxes

@Sonny-Crockett Sonny-Crockett added the 🤔 Idea Tell us your ideas label May 4, 2023
@manuel-rw
Copy link
Collaborator

manuel-rw commented May 4, 2023

Hi, this was discussed on our Discord.
for thid reason, this is a copy of the discussion:

RTSP is a legacy format, that was used for Flash.
It cannot be used by a browser directly and the usage of Flash is not recommended due to security concerns.
https://stackoverflow.com/a/43324477
videojs/video.js#3939
https://videojs.com/guides/faqs/#q-how-can-i-play-rtmp-video-in-videojs

You should use HTS or DASH as alternatives, as they are built in into browser and are secure.
https://videojs.com/guides/faqs/#q-does-videojs-support-live-video

https://videojs.com/html5-video-support/

@manuel-rw manuel-rw added the ⛔ Wont Fix This will not be worked on label May 4, 2023
@manuel-rw manuel-rw closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2023
@Sonny-Crockett
Copy link
Author

Sorry for my ignorance on this. I searched RTSP and didn't get any results, so I'd figured I'd ask. Yeah I am using an older NVR, so I will see if there is any way I can convert midstream or something.

Thanks!

@manuel-rw
Copy link
Collaborator

btw, this is also mentioned in our documentation, that only HLS and DASH are supported:
https://homarr.dev/docs/widgets/video/

@manuel-rw
Copy link
Collaborator

No worries.
I suggest that you try out https://github.com/deepch/RTSPtoWeb.
I cannot confirm that this work, because I don't run any streams myself, but it should in theory.

@Sonny-Crockett
Copy link
Author

I was able to use this package on CA/unRAID. https://github.com/AlexxIT/go2rtc

I am getting picture, but for the mp4 streams(http://192.xxx.x.xxx:1984/api/stream.mp4?src=frontdoor) its very stable, but won't actually start (in edge) unless I display controls and press play. The HLS streams http://192.xxx.x.xxx:1984/api/stream.m3u8?src=frontdoor&mp4) works for several seconds then breaks, with the spinning circle staying over a still image.

I may need to mess with it more but just wanted to give my experience so far.

@manuel-rw
Copy link
Collaborator

Okay, thanks for documenting this here.
Can we maybe collect the experiences here and document them later on https://homarr.dev ?
Other users asked the same question, and it would be good to just have that in the documentation.

@manuel-rw manuel-rw added 🤔 Question Further information is requested and removed 🤔 Idea Tell us your ideas labels May 5, 2023
@SpeakingOfBrad
Copy link

I got my RTSP camera to load into Homarr by using go2rtc like @Sonny-Crockett mentioned.

Once you get your camera configured and set up in go2rtc, the stream link that worked best for me is the
- stream.m3u8 legacy HLS/fMP4 / browsers: Safari all, Chrome Android / codecs: H264, H265* under "H264/H265 source". (http://192.x.x.x:1984/api/stream.m3u8?src=frontdoor&mp4)

Also worth mentioning that my camera is a Reolink (wifi doorbell) which has an unstable RTSP stream. But I was able to get a mostly stable RTSP by using the Neolink project as a proxy between the camera and go2rtc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Question Further information is requested ⛔ Wont Fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants