keshavdv / unifi-cam-proxy

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

Are multiple stream sources possible? For low / high quality streams selection? #222

Closed acseven closed 2 years ago

acseven commented 2 years ago

Hi, I was trying to add two video stream sources to the same camera using RTSP but I don't think it's working. Is this possible and if so, what's the correct way of doing this?

Here's what I've tried using:

command: > 
      unifi-cam-proxy 
      --host UDMP
      --mac 'camMAC' 
      --cert /client.pem 
      --token aasdfsdfsdfsdfsdfsdfo6hy 
      rtsp -s 'rtsp://high-quality-feed' 
      -s 'rtsp://low-quality-feed'
fblgit commented 2 years ago

you can do:

rtsp -s rtsp://streamHighQ -s rtsp:://streamMidQ rtsp;//streamLowQ

To a maximum of 3, from high to low. Problem is.. some cameras will not allow multiple streams or a max of 2 and the limitation of not being able to fork a stream single source into the 3 ffmpeg processes needed.

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.