add iqfiles && media pipeline setting
This commit is contained in:
parent
7b494e4196
commit
59afaf3b52
52
README.md
52
README.md
@ -25,7 +25,7 @@ level = NOTICE
|
||||
[video]
|
||||
width = 640
|
||||
height = 480
|
||||
fps = 30 ;no used in MIPI
|
||||
fps = 30 ;not working in MIPI mode, fps depends on your media pipeline && iqfiles && mipi_cis driver
|
||||
fix_qp = 23 ;[0 - 51] [high - low]
|
||||
format = YUY2 ;uvcvideo: [MJPEG] [YUY2] | MIPI_CSI: [NV12] [NV16] [NV21] [NV61]
|
||||
device = /dev/video0
|
||||
@ -40,10 +40,58 @@ http_port = 8000
|
||||
bitrate = 1440
|
||||
```
|
||||
|
||||
### config demo for uvc
|
||||
```
|
||||
[log]
|
||||
level = NOTICE
|
||||
|
||||
[video]
|
||||
width = 640
|
||||
height = 480
|
||||
fps = 30
|
||||
fix_qp = 23
|
||||
format = YUY2
|
||||
device = /dev/video0
|
||||
|
||||
[server]
|
||||
rtsp_port = 8554
|
||||
stream_name = unicast
|
||||
max_buf_size = 200000
|
||||
max_packet_size = 1500
|
||||
http_enable = false
|
||||
http_port = 8000
|
||||
bitrate = 1440
|
||||
```
|
||||
|
||||
### config demo for mipi_csi
|
||||
```
|
||||
[log]
|
||||
level = NOTICE
|
||||
|
||||
[video]
|
||||
width = 2112
|
||||
height = 1568
|
||||
fps = 30
|
||||
fix_qp = 20
|
||||
format = NV12 ; or | NV16 | NV21 | NV61 |
|
||||
device = /dev/video11
|
||||
|
||||
[server]
|
||||
rtsp_port = 8554
|
||||
stream_name = unicast
|
||||
max_buf_size = 500000
|
||||
max_packet_size = 1500
|
||||
http_enable = false
|
||||
http_port = 8000
|
||||
bitrate = 1440
|
||||
```
|
||||
|
||||
## function
|
||||
- support YUY2 or MJPEG format usb camera.
|
||||
- support hardware h264 encode.
|
||||
- support NV12 NV16 NV21 NV61 format mipi csi camera. (test max support 4224x3136)
|
||||
- support NV12 NV16 NV21 NV61 format mipi csi camera.
|
||||
- test ov13850 max support 4224x3136@7.5 fps use ov13850_CMK-CT0116_default.json_4224x3136
|
||||
- test ov13850 max support 2112x1568@30 fps use ov13850_CMK-CT0116_default.json_2112x1568
|
||||
|
||||
## Benefits of improvement
|
||||
- RkCamRtspServer cpu usage
|
||||
|
||||
5961
iqfiles/ov13850_CMK-CT0116_default.json_2112x1568
Normal file
5961
iqfiles/ov13850_CMK-CT0116_default.json_2112x1568
Normal file
File diff suppressed because it is too large
Load Diff
5961
iqfiles/ov13850_CMK-CT0116_default.json_4112x3136
Normal file
5961
iqfiles/ov13850_CMK-CT0116_default.json_4112x3136
Normal file
File diff suppressed because it is too large
Load Diff
42
scripts/rkaiq_3A_2112x1568.sh
Executable file
42
scripts/rkaiq_3A_2112x1568.sh
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
### BEGIN INIT INFO
|
||||
# Provides: rkaiq_3a
|
||||
# Required-Start:
|
||||
# Required-Stop:
|
||||
# Default-Start:
|
||||
# Default-Stop:
|
||||
# Short-Description:
|
||||
# Description: Setup rkaiq 3a daemon
|
||||
### END INIT INFO
|
||||
|
||||
start_3A()
|
||||
{
|
||||
/usr/bin/media-ctl -d /dev/media0 --set-v4l2 '"m00_b_ov13850 7-0010":0[fmt:SBGGR10_1X10/2112x1568 field:none]'
|
||||
/usr/bin/media-ctl -d /dev/media1 --set-v4l2 '"rkisp-isp-subdev":0[fmt:SBGGR10_1X10/2112x1568]'
|
||||
/usr/bin/media-ctl -d /dev/media1 --set-v4l2 '"rkisp-isp-subdev":0[crop:(0,0)/2112x1568]'
|
||||
/usr/bin/rkaiq_3A_server 2>&1 | logger -t rkaiq &
|
||||
}
|
||||
|
||||
stop_3A()
|
||||
{
|
||||
killall rkaiq_3A_server || true
|
||||
}
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start_3A
|
||||
;;
|
||||
stop)
|
||||
stop_3A
|
||||
;;
|
||||
reload)
|
||||
stop_3A
|
||||
start_3A
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
42
scripts/rkaiq_3A_4114x3136.sh
Executable file
42
scripts/rkaiq_3A_4114x3136.sh
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
### BEGIN INIT INFO
|
||||
# Provides: rkaiq_3a
|
||||
# Required-Start:
|
||||
# Required-Stop:
|
||||
# Default-Start:
|
||||
# Default-Stop:
|
||||
# Short-Description:
|
||||
# Description: Setup rkaiq 3a daemon
|
||||
### END INIT INFO
|
||||
|
||||
start_3A()
|
||||
{
|
||||
/usr/bin/media-ctl -d /dev/media0 --set-v4l2 '"m00_b_ov13850 7-0010":0[fmt:SBGGR10_1X10/4114x3136 field:none]'
|
||||
/usr/bin/media-ctl -d /dev/media1 --set-v4l2 '"rkisp-isp-subdev":0[fmt:SBGGR10_1X10/4114x3136]'
|
||||
/usr/bin/media-ctl -d /dev/media1 --set-v4l2 '"rkisp-isp-subdev":0[crop:(0,0)/4114x3136]'
|
||||
/usr/bin/rkaiq_3A_server 2>&1 | logger -t rkaiq &
|
||||
}
|
||||
|
||||
stop_3A()
|
||||
{
|
||||
killall rkaiq_3A_server || true
|
||||
}
|
||||
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start_3A
|
||||
;;
|
||||
stop)
|
||||
stop_3A
|
||||
;;
|
||||
reload)
|
||||
stop_3A
|
||||
start_3A
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
Loading…
Reference in New Issue
Block a user