-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Using nvidia card with dual stream/codec cameras #3613
-
|
Hey all. I've been using Frigate for a while and love it. I run it in Unraid and recently put an nvidia card in the box. I configured frigate to work with my cameras but only partially. My cams have an 264 substream which I use for detection and a 265 stream which I use for recording. Everything worked great before the nvidia card, but now I don't get any recordings. I think the issue is here. Is it possible to configure it to do both h264 and hevc? Or do I have to make both my stream 264 now? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments · 11 replies
-
|
You should use |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Here's the important parts. As you can see I've moved the location of the config params around, tried the hwaccel, tried input_args but it's always the same thing. The one h264 camera detects and records great. The other two cameras, which have a 264 sub and hevc main, detect and snapshot just fine but there are no recordings. As soon as I get rid of any ffmpeg specific settings, and everything just falls back to cpu, I get detection and recording without issue. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
What are the logs when using hwaccel_args and not defining input_args at all? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Logs are full of this. Quick note, I have 24/7 recording enabled, not just event. That cameras main feed is hevc. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
You think I should create an issue from this? It's really not obvious how to use the card for this particular setup unless I change everything to 264, which I would prefer not to do. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
If you go into the frigate frontend using hwaccel_args (and not defining input_args), go to debug and copy the debug stats and paste them here that would be helpful. Or create an issue and post that same thing as part of the extra info |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Since you have different stream encodings on the inputs, you need to set the |
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
-
|
Does this seem correct to you? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I think that looks right, is it working? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
It didn't look like it at first but yes! Thank you, appreciate it very much!! |
Beta Was this translation helpful? Give feedback.
Since you have different stream encodings on the inputs, you need to set the
hwaccel_argsat the input level rather than the camera level. That way you can seth264_cuvidfor the h264 stream andhevc_cuvidfor the h265 stream. You should be able to see how that works in the reference config.