Raspberry Pi 4 ffmpeg expectations? #1853
Replies: 4 comments 3 replies
-
What is the resolution and frame rate of the feed you are decoding with ffmpeg? The color space is only converted when necessary to run object detection. It's not possible to avoid, but I don't think that's really the issue here either. |
Beta Was this translation helpful? Give feedback.
-
By the way, when testing with the latest stable, I'm getting much, much better results. I don't have any exact stats, but I've got the rpi4 handling 7x 700x400 feeds right now, with detection and clip recording all working pretty painlessly. Needless to say this is within or exceeding my original expectations. |
Beta Was this translation helpful? Give feedback.
-
(I did bump |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity have you been able to use hardware acceleration for decoding more than 6 feeds ? I see you mentioned having 7. I have a Raspberry 4, overclocked and stable at 2137 Mhz (with an Argon case ventilating heavily!). gpu_mem set to 512. I manager to run 6 feeds (source 960x480 at 10 fps, from an IntelBras DVR) with hw_accel on . As soon as I add a 7th feed I start getting green images and a lot of decoding errors in the frigate logs. Interesting point this doesn't seem to be about overloading the CPU. I can add 2 more streams and reach a total 8 seemingly stable as long as the last 2 feeds have hardware decoding disabled. Of course these two last feed hit the cpu much more brutally. I run a 32 bit RaspberryOS BTW. Plan to reinstall a dedicated RPI4 with 64 bit soon. Not sure if this has a significant effect. |
Beta Was this translation helpful? Give feedback.
-
Hi! I am trying to calibrate expectations. We have an RTSP feed feeding into Frigate that is an h264 feed, and we have the Coral running as a detector. I've seen the CPU decrease as we activated the Coral, and I've seen ffmpeg correctly using
h264_v4l2m2m
but I'm also still seeing this single camera running ffmpeg in such a way that eats 25-50% of the CPU while it's going.What should my expectations be? I've seen some things that indicate that the colorspace conversion to RGB for display can be the intensive part. Is it possible to skip that?
Beta Was this translation helpful? Give feedback.
All reactions