fajiao
3 years ago
1 changed files with 62 additions and 0 deletions
@ -0,0 +1,62 @@ |
|||||
|
# 前提 |
||||
|
1. 横琴海关处通过光纤连往公安处 |
||||
|
2. 流媒体服务器 44.49.76.117 |
||||
|
|
||||
|
# 问题 |
||||
|
1. 视频点播花屏 |
||||
|
2. 视频点播超过三四路后点播失败 |
||||
|
|
||||
|
|
||||
|
## 调整摄像头参数(解决花屏) |
||||
|
``` |
||||
|
码流类型:主码流 |
||||
|
视频类型:复合流 => 视频流 |
||||
|
分辨率:1080P |
||||
|
码率类型:编码率 => 定码率 |
||||
|
图像质量:中 |
||||
|
视频帧率:15/20/25 |
||||
|
码率上限:1080P(2048* or 4096),720P(1024* or 2048) |
||||
|
视频编码:H.264 |
||||
|
Smart264:关闭 |
||||
|
编码复杂度:高 => 低(能关闭最好关闭) |
||||
|
I帧间隔:视频帧率*2 |
||||
|
SVC:关闭 |
||||
|
``` |
||||
|
|
||||
|
## 调整 ZLMediaKit 参数 |
||||
|
``` |
||||
|
# 调试过程使用 Debug 版本,正式使用最好使用 Release 版本 |
||||
|
[api] |
||||
|
apiDebug=1 => 0 |
||||
|
|
||||
|
[general] |
||||
|
wait_track_ready_ms=3000 => 30000 |
||||
|
wait_track_ready_ms=3000 => 30000 |
||||
|
# 按需取流,按需求配置 |
||||
|
|
||||
|
[rtc] |
||||
|
externIP= => 对接网卡ip |
||||
|
``` |
||||
|
|
||||
|
## 调整 linux 参数 |
||||
|
``` |
||||
|
# https://github.com/ZLMediaKit/ZLMediaKit/issues/1221 |
||||
|
# https://www.cnblogs.com/yorkyang/p/7689096.html |
||||
|
# https://github.com/ZLMediaKit/ZLMediaKit/issues/961 |
||||
|
# https://codeantenna.com/a/GVZDrrzWI5 |
||||
|
|
||||
|
# 调整内核参数 |
||||
|
cat /proc/sys/net/core/rmem_max |
||||
|
cat /proc/sys/net/core/wmem_max |
||||
|
# 212992(208KB) |
||||
|
|
||||
|
# 从 208KB 调整至 1MB |
||||
|
# 临时调整 |
||||
|
echo 1048576 > /proc/sys/net/core/rmem_max |
||||
|
echo 1048576 > /proc/sys/net/core/wmem_max |
||||
|
|
||||
|
# 永久调整 |
||||
|
vim /etc/sysctl.conf |
||||
|
net.core.rmem_max = 1048576 |
||||
|
net.core.wmem_max = 1048576 |
||||
|
``` |
Loading…
Reference in new issue