keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

Use tee_muxer in ffmpeg to output a single ffmpeg input in to the 3 video streams we need to save resources on Cam and PC side #161

Closed GhostlyCrowd closed 2 years ago

GhostlyCrowd commented 2 years ago

Is your feature request related to a problem? Please describe. Yes, it would reduce overhead on cameras, instead of spawning multiple connections to them we can spawn one, which will alow older/slower cameras to be used as well as increase in bitrate.

Describe the solution you'd like Reduce the cost of the proxy on resources both camera side, network bandwidth side and proxy side

Additional context With the tee muxer, the audio and video data will be encoded only once. With conventional multiple outputs, multiple encoding operations in parallel are initiated, which can be a very expensive process.

See https://ffmpeg.org/ffmpeg-formats.html#tee

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.