Skip to content

WSS-stream to HA or Frigate #1678

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

Open
belovkb opened this issue Mar 28, 2025 · 11 comments
Open

WSS-stream to HA or Frigate #1678

belovkb opened this issue Mar 28, 2025 · 11 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@belovkb
Copy link

belovkb commented Mar 28, 2025

Good day.
I encountered a situation where I needed to add a video stream from an intercom camera to Home Assistant, but the problem is that the stream is broadcast in real time via "wss".
The video stream can be viewed in a browser by opening an HTML page that uses the FlussonicMSEPlayer javascript. The video stream delay is minimal, about 0.3-0.5 seconds. This is exactly what is needed. The intercom should broadcast video in real time.
The company that services the intercom does not provide a direct link to the RTSP stream from the camera. The developer company FlussonicMSEPlayer also does not want to help in this regard, referring to the service company.

Is it possible to somehow add the video stream from this page to go2rtc, so that later it can be added to Home Assistant or Frigate NVR?

@AlexxIT AlexxIT added the question Further information is requested label Mar 28, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 28, 2025

If you give me access to the stream, I can try adding support.

@belovkb
Copy link
Author

belovkb commented Mar 28, 2025

How can I upload an html and js file here? May be archive?

@AlexxIT
Copy link
Owner

AlexxIT commented Mar 28, 2025

Yes. You can upload archive. But I needs working stream. Not a JS code

@belovkb
Copy link
Author

belovkb commented Mar 28, 2025

Image

Archive is prohibited to download

@belovkb
Copy link
Author

belovkb commented Mar 28, 2025

intercom.zip

There are 2 files in the archive. An html file that uses JS to play the video stream.

wss://cdn.cams.is74.ru/ws/mse?uuid=5ebbc1e8-63ae-4c2d-9802-2908abd931ad&token=bearer-243039b10eb8e5c1f49a45680bf8eab0

Here is a direct link to the video stream. But it will not open without using FlusonistSEPlayer.js.
If you place them in one directory and open the HTML, video it will play.

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Mar 28, 2025
@AlexxIT AlexxIT self-assigned this Mar 28, 2025
@belovkb
Copy link
Author

belovkb commented Apr 3, 2025

Link to WSS stream was changed. It change every month.
Today work link: wss://cdn.cams.is74.ru/ws/mse?uuid=5ebbc1e8-63ae-4c2d-9802-2908abd931ad&token=bearer-f9d446d0386256a50fe38b4e6b5b5ffc

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 4, 2025

Thanks. I already have a working code. I'll upload it when I get the code in order.

AlexxIT added a commit that referenced this issue Apr 4, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 4, 2025

You can check latest master version

streams:
  tmp1: flussonic:wss://cdn.cams.is74.ru/ws/mse?***

@AlexxIT AlexxIT added this to the master milestone Apr 4, 2025
@belovkb
Copy link
Author

belovkb commented Apr 5, 2025

Good day. I downloaded the latest master version. But, frankly speaking, I don't know how to use it in Home Assistant, because you can only update packages if an update appears in the add-on repository. Unfortunately, I can't check it in Home Assistant or Windows yet. If it's not too much trouble, tell me how I can try to compile a working version from the latest master version to upload the add-on to the server and how I can get an executable file for Windows.

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 5, 2025

https://github.com/AlexxIT/go2rtc#go2rtc-dev-version

@belovkb
Copy link
Author

belovkb commented Apr 5, 2025

Thank you very much for your help. I connected the test version add-on. Everything works, the delay is minimal, about 0.5 seconds from real time. There were a couple of times when the video did not play. I could not figure out why this happened. While I was steaming in the bathhouse, I came back and it showed again. Mysticism. And yes, I also noticed an interesting moment, until you open the video in a separate window, there is no sound. If you close the separate window with the video and return to the card where the image was originally, the sound disappears again.

seydx pushed a commit to seydx/go2rtc that referenced this issue Apr 9, 2025
seydx pushed a commit to seydx/go2rtc that referenced this issue Apr 9, 2025
seydx pushed a commit to seydx/go2rtc that referenced this issue Apr 9, 2025
seydx pushed a commit to seydx/go2rtc that referenced this issue Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants