mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.69k stars 172 forks source link

substream via container encoding instead of pulling 2 streams #892

Open maxfield-allison opened 1 year ago

maxfield-allison commented 1 year ago

Would it be possible to implement substreams by encoding the stream we're already pulling from the cameras to a lower quality? Trying to limit unnecessary traffic on my wifi and since I can use HW accel, this makes sense.

mrlt8 commented 1 year ago

Depending on your camera and firmware, there might be an option to extract a second stream directly from the camera itself: https://github.com/mrlt8/docker-wyze-bridge/wiki/Camera-Substreams

Another option could be to do this in MediaMTX or potentially in ffmpeg when receiving the frames since we're already outputting to a tee muxer.