I use avigilon cameras in the HA frigate integration. Unfortunately avigilon doesn’t support rotation of the rtsp stream. And I couldn’t find out how to rotate the image for the H5 dome cam in frigate using yaml code.
Does anyone know how to do that?
cameras:
camera1:
ffmpeg:
inputs:
- path: rtsp://USERNAME:[email protected]/defaultPrimary?streamType=u
roles:
- detect
detect:
enabled: True # <---- disable detection until you have a working camera feed
width: 1280 # <---- update for your camera's resolution
height: 720 # <---- update for your camera's resolution
objects:
track:
- car
- person
For anyone else happening by: I can confirm the above works. Helped me out to achieve the same thing to cover an alley way. You shouldn’t have given up!
cameras:
entrada:
ffmpeg:
inputs:
- path: rtsp://user:[email protected]/live
roles:
- detect
live:
stream_name: Entrada_Rotated
detect:
width: 1080 # <---- update for your camera's resolution
height: 1920 # <---- update for your camera's resolution
fps: 7
objects:
track:
- person
- dog
- cat
In frigate, when I view all cams, the entrada cam shows horizontal. When I click on it to view it live via frigate I do see it vertical. But pretty much that is the only place I see it vertical. Recordings are horizontal, and in HA cam view I also see it horizontal.
So I was on the right track, it wouldn’t make sense to get the rotated feed from the cameras IP, but turns out the 127.0.0.1 IS NOT A CAMERA IP. Assuming it is the local host IP, and I am picking up the rotated stream I created under go2rtc config.