嵌入式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

相关推荐
SoStraw4 天前
无公网IP远程访问设备,不用frp也能实现99.9%连通率
frp·内网穿透·p2p·远程访问·webrpc·无公网ip·file2file
贾伟康5 天前
【HarmonyOS 7新能力|048】Taihe IPC工程封装:把接入逻辑放进可维护的分层结构
harmonyos·arkts·ipc·分布式通信·taihe
程序员老陆6 天前
WHIP 与 WHEP:WebRTC 直播的标准化入口与出口
ffmpeg·音视频·webrtc·whip·whep
SoStraw9 天前
从零接入 webrpc:按这份最小清单跑通双端,再写业务
sdk·p2p·入门·token·webrpc·opensession·senddata
SoStraw10 天前
webrpc 三层通道:局域网直连、P2P、中转,为何回家传网盘会突然变爽
p2p·relay·webrpc·无公网ip·file2file·mywebdisk·通道优选
咏颜11 天前
frp内网穿透使用
网络·p2p
Lucis__12 天前
基于责任链模式的消息队列—异步处理流水线的最佳实践
linux·c++·消息队列·责任链模式·ipc
Swuagg13 天前
AR 眼镜之-相册同步-技术方案
p2p·相册·ar眼镜
倔强的石头10613 天前
远程运维环境搭建实战:节点小宝实现远程桌面 + 异地组网 + 文件挂载 + 内网穿透(附详细配置步骤)
内网穿透·p2p·远程桌面·远程运维·异地组网·wake-on-lan·工具教程
赋创小助手14 天前
多GPU服务器交付验收:GPU健康、P2P、NCCL与稳定性测试思路
运维·服务器·人工智能·ai·部署·gpu·p2p