[HW Accel Support]: HW Accel for Multiple Formats #11488
Unanswered
tibmeister
asked this question in
Hardware Acceleration Support
Replies: 1 comment 1 reply
-
There seems to be some things that are misunderstood here.
also frigate itself does not do encoding. For go2rtc encoding you would just provide a secondary stream ffmpeg directive that transcodes to h264 and adds The logs show something is not implemented |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem you are having
I am attempting to get hardware acceleration setup for both decoding and encoding. The first situation, the decoding, I have 3 different types of cameras, one is an MJPEG, one is a h.264, and one is a h.265 only. Obviously the MJPEG doesn't need decoding, but I would like to use the Quadro M2000 card I have installed to perform the decoding of the two h.264 and h.265 streams.
I have validated the card is working by adding "hwaccel_args: preset-nvidia-h265" to the global ffmpeg directive and I can see the decoder running on the card. What I also see is my MJPEG camera no longer has a stream that can be opened and my h.264 cameras suddenly become very unstable.
So first part of the question is, how do I set the configuration to perform ALL decoding using hwaccel? I tried using an array to the hwaccell_args and Frigate wouldn't start, so not sure what I'm missing. What I mean by an array is the following in the global FFMPEG directive
So not sure how to get that configured, but does also go with the second part of my issue. Obviously there's issues with displaying the h.265 stream in the Birdseye view or in reviewing the recordings, so I thought that setting up the go2rtc function would be perfect to transcode the stream into h.264 in order to view in the Birdseye and the Recordings screens, but I just can't get my head wrapped around it to get it to work. I've tried a whole bunch of iterations to get this to work.
So for a little more context, the h.265 camera is a Reolink Duo 3 PoE, with the combined stream of both cameras, resulting in a native resolution of 7680x2160 and not separation of the cameras into separate streams. I have tried to reduce the resolution down to 4096x1152 but the stream still comes in at h.265. The substream does come through as h.264 but is limited to 1536x432, which is fine for detection but not for recording and getting any meaningful details. So I fall back to needing to transcode the stream into h.264, even if that means that the resolution has to be 4096x1152.
Looking for guidance and advice here. Ultimately, I would like all the cameras to come into Frigate and then use go2rtc to rebroadcast/transcode to any other sources that need the camera feeds, such as Scrypted, so this is part of a larger goal.
Version
0.13.2-6476F8A
Frigate config file
docker-compose file or Docker CLI command
Running on k3s pod in TrueNAS, provided as a chart (https://github.com/truenas/charts/tree/master/library/ix-dev/community/frigate)
Relevant log output
FFprobe output from your camera
Operating system
Other
Install method
Docker Compose
Network connection
Wired
Camera make and model
Reolink Duo 3 PoE
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions