-
Notifications
You must be signed in to change notification settings - Fork 590
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
Add support RTSP over WebSocket (ex. for Axis cameras) #415
Comments
Why is this necessary? Cameras can't handle another protocol? |
On cameras for which a user does not have admin access and which are firewalled or only have HTTP(S) access, the rtsp stream (that the camera supports) may not be accessible. One alternative is still the MJPEG stream which works but uses higher bandwidth / less efficient encoding / image quality. That's why I would find it useful to access the H264 stream. I'll try to record a dump. |
I shared a pcap trace with you in email. |
You have a difficult situation. This is a WebSocket with Digest authorization. The standard libraries do not support this. |
Do you mean you can't emulate the server side of this behaviour for testing? |
You can try latest master version.
|
🤩🥳 Amazing, thank you so much for adding that so quickly. Great work! That's working well for me. For now, I am locally mirroring this specific camera using go2rtc master, and then feeding that via an |
I don't know why even need to add cameras as an RTSP stream in HA at all. |
Axis Cameras support a mode where they provide an RTP endpoint / stream over websockets.
Some more info may be found here:
https://github.com/AxisCommunications/media-stream-library-js/tree/main/player
Example endpoint:
ws://{camera host and http port}/rtsp-over-websocket
It would be convenient to be able to extract the stream from there and use it in home assistant without transcoding.
The text was updated successfully, but these errors were encountered: