Ffmpeg and hardware h264 decode

The system is being used with HomeAssistant and Frigate NVR connected to CCTV cameras. At 1920x1056 resolution H264 video stream.

5% CPU with hardware decoder…43% without hardware decoder

— Without Acceleration —

khadas@Khadas:~$ ps -p 335299 -o %cpu,%mem,cmd
%CPU %MEM CMD
43.5  1.3 ffmpeg -i rtsp://localhost:8554/garden_high_cam -f null /dev/null
khadas@Khadas:~$

— WITH acceleration —

khadas@Khadas:~$ ps -p 334316 -o %cpu,%mem,cmd
%CPU %MEM CMD
 5.0  0.7 ffmpeg -c:v h264_v4l2m2m -i rtsp://localhost:8554/garden_high_cam -f null /dev/null
khadas@Khadas:~$
1 Like