yangwebrtc x86_64环境搭建

版本:5.0.099

sudo apt-get install libxext-dev

sudo apt-get install x11proto-xext-dev

sudo apt-get install libxi-dev

sudo apt install libasound2-dev

sudo apt install libgl1-mesa-dev

sudo apt-get install libxtst-dev

用qt打开以下两个项目的.pro

metartccore5

metartc5

编译后会生成在这个目录

/home/deviser/temp/yang_RTC/linux/bin/lib_debug

用qt打开以下两个项目的.pro

metapushstream5

metaplayer5

编译后会生成在这个目录

/home/deviser/temp/yang_RTC/linux/bin/app_debug

/home/deviser/temp/yang_RTC/linux/bin/app_debug

官网称支持GPU编码,那么需要开启如下配置:

/home/deviser/temp/yang_RTC/linux/metapushstream5/recordmainwindow.cpp

m_context->avinfo.video.videoEncHwType=YangV_Hw_Intel;//YangV_Hw_Intel, YangV_Hw_Nvdia,

/home/deviser/temp/yang_RTC/linux/metap2p5/recordmainwindow.cpp

m_context->avinfo.video.videoEncHwType=YangV_Hw_Intel;//YangV_Hw_Intel, YangV_Hw_Nvdia,

/home/deviser/temp/yang_RTC/linux/include/yang_config.h

#define Yang_Enable_GPU_Encoding 1

开启之后,无法编译,报未定义的引用,因为作者在这个版本根本就没有实现,如下类,未定义三个函数的实现。

可以用metartc更高版本。

/home/deviser/temp/yang_RTC/linux/include/yangencoder/YangGpuEncoderFactory.h

//

// Copyright © 2019-2022 yanggaofeng

//

#ifndef YANGGPUENCODERFACTORY_H

#define YANGGPUENCODERFACTORY_H

#include <yangencoder/YangVideoEncoder.h>

#include <yangutil/yangavinfotype.h>

class YangGpuEncoderFactory

{

public:

复制代码
YangGpuEncoderFactory();
~YangGpuEncoderFactory();
YangVideoEncoder* createGpuEncoder();

};

#endif // YANGGPUENCODERFACTORY_H

相关推荐
RTC老炮1 天前
webrtc弱网-BBRv2算法原理
网络·算法·webrtc
RTC老炮1 天前
webrtc弱网-BBRv1算法原理
网络·算法·webrtc
爱学习的程序媛3 天前
Windows系统下安装与配置FreeSWITCH完整指南
windows·实时互动·webrtc·实时音视频·信息与通信·媒体
xiejiashu3 天前
EasyRTC成功发布!原生WebRTC/嵌入式WebRTC,Windows/Linux/Android/ARM全支持
webrtc·嵌入式webrtc·easyrtc·webrtc原生库·arm-webrtc
爱学习的程序媛5 天前
【WebRTC】呼叫中心前端技术选型:SIP.js vs JsSIP vs Verto
前端·javascript·typescript·音视频·webrtc·实时音视频·web
bug大湿5 天前
WEBRTC——AGC API
webrtc·信号处理·agc
穷人小水滴8 天前
使用 WebRTC 实现局域网投屏: PC (GNOME ArchLinux) -> 平板 (Android)
android·linux·webrtc·浏览器·js·gnome·投屏
EasyDSS12 天前
场景深耕:低延迟高并发EasyDSS无人机RTMP高清推流直播技术剖析
ffmpeg·webrtc·rtmp
EasyDSS12 天前
EasyDSS以视频点播VOD/高清直播/WebRTC视频会议/语音转写STT技术创新,解决校园数字化核心难题
音视频·webrtc·语音识别·点播技术·流媒体直播
daad77714 天前
WEBRTC DTLSv1.2 加密示例
webrtc