webrtc编译

官网:https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/index.md
源码:https://webrtc.googlesource.com/src/
首页:https://webrtc.org/
webrtc中文网:https://webrtc.org.cn/
大话webrtc:https://blog.jianchihu.net/big-talk-webrtc.html 及剑痴乎:https://blog.jianchihu.net/
国内源码镜像:https://rtcdeveloper.agora.io/t/topic/14914
官网安装教程:https://webrtc.github.io/webrtc-org/native-code/development/
代码管理工具:包括下载,更新,gn,ninja等
//克隆源码
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
//配置路径
export PATH=/path/to/depot_tools:$PATH
下载源码:

mkdir webrtc-checkout
cd webrtc-checkout
fetch --nohooks webrtc //会去https://webrtc.googlesource.com/src/这个网页下载
gclient sync

3、在src目录执行:

sudo ./build/install-build-deps.sh --no-chromeos-fonts

单独编译模块:

ninja -C out/Default peerconnection_server
ninja -C out/Default peerconnection_client

gn gen out/Default --args=‘target_os=“linux” target_cpu=“arm64”’
编译报错:编译webrtc报错:ERROR: The installation of the Chrome OS default fonts failed

github上的一个项目:https://github.com/nicotyze/Webrtc-H264Capturer
从流或者文件中读取yuv数据,然后ffmpeg h264编码,然后推流。

猜你喜欢

转载自blog.csdn.net/weixin_43466192/article/details/123627535