嵌入式webRTC IPC操作指南

概述

metaIPC是实现对讲webRTC的嵌入式IPC系统,可以和webRTC IPC客户端yangipcclient无缝对接,metaIPC2.0基于metaRTC7.0开发,metaIPC3.0基于metaRTC8.0开发。

下载

https://github.com/metartc/metaIPC/releases/tag/v2.0-b2

https://gitee.com/metartc/metaIPC/releases/tag/v2.0-b2

或者git下载

复制代码
//github
git clone https://github.com/metartc/metaIPC
//gitee
git clone https://gitee.com/metartc/metaIPC

参数设置

启动参数

复制代码
-c 指定配置文件目录,系统将在此目录里寻找yang_config.ini
-l 日志文件目录
-t 发布到mqtt的serverTopic,客户端根据这个serverTopic和设备进行连接

metaipc2_hd -c /root/config -l /root/log -t test1001

配置文件yang_config.ini

复制代码
[video]
width=1920
height=1080
outWidth=1920
outHeight=1080
rate=2048000
frame=25

[rtc]
iceTransportPolicy=0
iceCandidateType=2
iceServerPort=3478
iceServerIP=192.168.0.104
iceUserName=metartc
icePassword=metartc

[sys]
enableLogFile=1
logLevel=5

[mqtt]
enableMqttTls=0
mqttPort=1883
mqttServerIP=192.168.0.104
maxReconnectTimes=1000
reconnectIntervalTime=1000

[enc]
gop_len=600
rc_mode=3
bps_max=4096000
qp_max=51
qp_min=43

码率设置

复制代码
[enc] rc_mode= 1,2,3 默认值为3  
rc_mode值为1是cbr模式  
rc_mode值为2是vbr模式  
rc_mode值为3是avbr模式

cbr
[video] rate 输出码率
vbr/avbr
[video] rate 输出码率
[enc] bps_max 最大码率

弱网策略

metaIPC3.0抗弱网性较强,metaIPC2.0需配置参数加强抗弱网能力。

  1. 设置输出码率rate

  2. 设置最大码率bps_max

启动脚本

复制代码
dirname=/root/metaIPC2
export LD_LIBRARY_PATH=${dirname}:$LD_LIBRARY_PATH
${dirname}/metaipc2_hd -c /root/config -l /root/log -t test1001 &

服务器系统

服务器系统需要Mqtt/Ice软件,mqtt推荐mosquitto,ice推荐coturn

https://mosquitto.org/download/

https://github.com/coturn/coturn

相关推荐
数据安全科普王32 分钟前
打破中心枷锁:P2P网络如何用“去中心化”重构互联网通信
网络·去中心化·p2p
好家伙VCC1 天前
### WebRTC技术:实时通信的革新与实现####webRTC(Web Real-TimeComm
java·前端·python·webrtc
XHW___0011 天前
webrtc 关键模块创建的时机
网络·音视频·webrtc
我真会写代码1 天前
WebSocket:告别轮询,实现Web实时通信 WebRTC:无需插件,实现浏览器端实时音视频通信
网络·websocket·网络协议·webrtc·实时音视频
又是忙碌的一天2 天前
SpringBoot+Vue+Netty+WebSocket+WebRTC 视频聊天实现
websocket·音视频·webrtc
柒.梧.2 天前
理解WebRTC:浏览器原生实时音视频通信
webrtc·实时音视频
XHW___0012 天前
webrtc中音频3A处理开关配置
音视频·webrtc
sin22012 天前
WebRTC--流程
spring boot·webrtc
runner365.git4 天前
webrtc服务端如何录像
webrtc·录像·fmp4·mpegts
少云清4 天前
【金融项目实战】4_金融项目 _测试流程
p2p·测试流程·金融项目实战