simple rtspserver for rk hardware
- rk3588s
- ubuntu 20.04
./scripts/build_mpp.sh
git submodule update --init
mkdir build && cd build
cmake ..
make -j4
sudo ./RkCamRtspServer
config with file configs/config.ini
[log]
level = NOTICE
[video]
width = 640
height = 480
fps = 30
fix_qp = 23 ;[0 - 51] [high - low]
format = YUY2 ;[MJPEG] 720P 1080P
device = /dev/video0
[server]
rtsp_port = 8554
stream_name = unicast
max_buf_size = 200000 ;Push high-resolution or high-quality settings to a larger setting
max_packet_size = 1500
http_enable = false
http_port = 8000
bitrate = 1440
- support yuy2 format usb camera.
- support hardware h264 encode.
- RkCamRtspServer cpu usage
%Cpu0 : 0.7 us, 0.4 sy, 0.0 ni, 94.4 id, 0.0 wa, 0.0 hi, 4.6 si, 0.0 st
%Cpu1 : 4.3 us, 7.2 sy, 0.0 ni, 88.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 3.7 us, 0.7 sy, 0.0 ni, 95.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.7 us, 4.4 sy, 0.0 ni, 94.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu5 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu6 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu7 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
- CamRtspServer cpu usage
%Cpu0 : 19.6 us, 1.0 sy, 0.0 ni, 77.3 id, 0.0 wa, 0.0 hi, 2.1 si, 0.0 st
%Cpu1 : 21.6 us, 0.0 sy, 0.0 ni, 78.0 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
%Cpu2 : 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