top - 22:42:48 up 22:48, 3 users, load average: 9.68, 8.98, 8.54
Tasks: 289 total, 5 running, 284 sleeping, 0 stopped, 0 zombie
%Cpu(s): 35.1 us, 11.3 sy, 0.0 ni, 52.5 id, 0.0 wa, 0.0 hi, 1.1 si, 0.0 st
MiB Mem : 7691.9 total, 1443.5 free, 1546.9 used, 4701.4 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 6070.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
624407 root 20 0 1343264 125860 21420 S 114.3 1.6 21:51.15 ffmpeg
624523 root 20 0 1197236 126204 19584 S 89.4 1.6 19:40.99 ffmpeg
617288 root 20 0 1568444 155012 17004 R 20.9 2.0 13:00.66 frigate.process
617295 root 20 0 1334180 151528 8780 S 18.9 1.9 8:41.81 frigate.capture
617299 root 20 0 1364556 140908 8688 S 18.9 1.8 9:14.33 frigate.capture
617292 root 20 0 1558868 148332 17004 S 16.6 1.9 4:55.23 frigate.process
617289 root 20 0 1602600 188932 17004 R 14.3 2.4 9:01.81 frigate.process
617255 root 20 0 1692884 122324 12476 S 13.0 1.6 5:14.51 frigate.output
617313 root 20 0 1144564 41308 19472 S 10.0 0.5 3:02.44 ffmpeg
617314 root 20 0 1145544 43688 19472 S 10.0 0.6 3:03.62 ffmpeg
616890 root 20 0 2300004 314188 54900 S 9.6 4.0 4:01.43 python3
617253 root 20 0 1238228 134368 22248 S 7.3 1.7 5:01.70 frigate.detecto
617290 root 20 0 1555228 144704 17004 R 7.0 1.8 3:20.56 frigate.process
624414 root 20 0 262444 24816 18480 S 3.3 0.3 0:40.90 ffmpeg
617244 root 20 0 1048480 181148 20384 S 2.7 2.3 0:40.68 frigate.recordi
617303 root 20 0 1334516 135508 8652 S 2.7 1.7 0:51.38 frigate.capture
617307 root 20 0 1334856 135376 8584 S 2.3 1.7 0:50.97 frigate.capture
and this is the camera with the highest cpu usage… I replace pipe with /tmp/tmp_frigate_rawvideo
ffmpeg -threads 2 -hwaccel drm -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -i "rtsp://uername:pasword@hostname:port/the?1080p&stream" -r 25 -vf fps=25,scale=1920:1080 -movflags frag_keyframe+empty_moov -f rawvideo -pix_fmt yuv420p /tmp/tmp_frigate_rawvideo version 656cd334fa Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --enable-rkmpp --extra-cflags='-I/usr/local/include -march=armv8-a+crc' --extra-ldflags=-L/usr/local/lib --extra-libs='-lpthread -lm -latomic' --arch=arm64 --enable-gmp --enable-gpl --enable-libaom --enable-libass --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libssh --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-nonfree --enable-version3 --target-os=linux --enable-pthreads --enable-openssl
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, rtsp, from 'rtsp://uername:pasword@hostname:port/the?1080p&stream':
Metadata:
title : Media Server
Duration: N/A, start: 1699830079.675756, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, 25 fps, 25 tbr, 90k tbn
File '/tmp/tmp_frigate_rawvideo' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (hevc (hevc_rkmpp_decoder) -> rawvideo (native))
Press [q] to stop, [?] for help
[hevc_rkmpp_decoder @ 0x55ce2ba450] Pixfmt (yuyv422), Conversion (nv12->yuyv422)
rga_api version 1.9.3_[0]
Output #0, rawvideo, to '/tmp/tmp_frigate_rawvideo':
Metadata:
title : Media Server
encoder : Lavf60.3.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1920x1080, q=2-31, 622080 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc60.3.100 rawvideo
[rtsp @ 0x55ce27c2c0] max delay reached. need to consume packet bitrate= -0.0kbits/s speed=N/A
[rtsp @ 0x55ce27c2c0] RTP: missed 377 packets
frame= 260 fps= 24 q=-0.0 Lsize= 789750kB time=00:00:14.44 bitrate=448035.5kbits/s speed=1.35x
video:789750kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
Exiting normally, received signal 2.
anything I can do to make it use less cpu?