bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
169 stars 24 forks source link

[Question]: Broadcast video/audio directly from socket or to mediamtx #271

Open Subcode opened 9 months ago

Subcode commented 9 months ago

Ask your question

Hi, i want to use the library to receive a p2p stream, and present it as rtsp on a socket. I had a look at the eufy-security hass addon to see how they use simple_rtsp_server and i cant seem to reproduce their work.

Is there a way to read out the video/audio events and just present them straight from python onto a socket and open that with vlc or something? If not, is it possible to push the data to mediamtx or something similar so i can use vlc from there? I've tried using cv2.VideoWriter but i cant seem to get it to work. I'm not sure how to use the video / audio chunks that come from the events correctly.

lxrootard commented 9 months ago

+1 I'm interested by this answer as well to add P2P video streaming for the Jeedom plugin. @bropat could you please explain how this is supposed to work?