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

相关推荐
换个昵称都难9 天前
webrtc peerconnection_server 模块介绍
运维·服务器·webrtc
EasyGBS9 天前
延迟直降90%!国标GB28181视频平台EasyGBS支持WebRTC WHIP推流设备接入,让万物互联更简单
音视频·webrtc
勇敢牛牛_9 天前
Zeplyn:通过P2P构建服务共享网络
网络·网络协议·p2p·服务
换个昵称都难10 天前
webrtc RtpRtcp模块化测试-MockRtpRtcp
webrtc
如意IT10 天前
指纹浏览器检测之BrowserScan的webrtc指纹检测和反检测
自动化·webrtc·chromium·浏览器开发
换个昵称都难10 天前
webrtc TURN 主要源码介绍
webrtc
换个昵称都难10 天前
webrtc RTC_P2P源码解析
asp.net·webrtc·p2p
换个昵称都难10 天前
webrtc StunServer源码介绍
webrtc
数据知道11 天前
指纹浏览器:DNS 泄漏防范与 WebRTC 本地 IP 屏蔽的底层实现
爬虫·网络协议·tcp/ip·安全·webrtc·数据采集·指纹浏览器
换个昵称都难12 天前
webrtc源码解析概要介绍
webrtc