当前位置:网站首页>(十)瑞芯微rk3568 中qt工程ffmpeg 拉取rtsp视频流
(十)瑞芯微rk3568 中qt工程ffmpeg 拉取rtsp视频流
2022-04-21 23:08:00 【DSZS123】
步骤:
一、首先按照(九)瑞芯微rk3568 Qtcreator 中添加ffmpeg_DSZS123的博客-CSDN博客编译ffmpeg库。
二、在创建qt工程,在pro文件中加入编译好的ffmpeg(路径按照自己编译的更改)库如下:
INCLUDEPATH +=/QT/ffmpeg-4.0.6/myinstall/include
LIBS += -L /QT/ffmpeg-4.0.6/myinstall/lib -lavcodec -lavdevice -lswresample -lavfilter -lavformat -lavutil -lpostproc -lswscale
三、创建类VideoPlayer继承QThread,用来拉流。并使用信号槽机制,将接收到的一帧图像发送到主线程。
class VideoPlayer : public QThread
{
Q_OBJECT
public:
explicit VideoPlayer();
~VideoPlayer();
void startPlay();
signals:
void sig_GetOneFrame(QImage); //每获取到一帧图像 就发送此信号
void sig_GetRFrame(QImage);
protected:
void run();
private:
QString mFileName;
//2017.8.10---lizhen
VlcInstance *_instance;
VlcMe
版权声明
本文为[DSZS123]所创,转载请带上原文链接,感谢
https://blog.csdn.net/dongshizhishui/article/details/124273470
边栏推荐
- OS实验三【进程通信】
- VOS6. 0 installation and source code command
- 技术、产品、品牌都不是问题,对上汽奥迪而言,这2点或生死攸关
- Dynamic programming: complete knapsack problem
- MySQL 第3章 SQL基础语法
- Go language self-study series | golang defer statements
- 【FPGA的基础学习-------OV7725摄像头模块】
- PHP array function extract usage details
- POI Point of interesting.
- APM (application performance monitoring) industry Cognition Series - I
猜你喜欢

Apache Flink series - ④ stateful functions

MySQL Chapter 5 addition, deletion, modification and query of MySQL table data

Kubernetes---Secret配置管理

Database exercise

7.2.3 multiple representations of posture, quaternion, Euler angle, rotation matrix and axis angle ros2 in hands on Robotics

1956 college entrance examination mathematics

8.4 control of wheel motion of mobile robot in rodf robot modeling

Day code 300 lines learning notes day 46

AI application theory - special production and manufacturing session (parts installation and quality inspection)

Kubernetes - Secret configuration management
随机推荐
Tensorflow 2.8 installation
自建vnc类软件注意事项
2022 electrician (elementary) examination simulated 100 questions and simulated examination
GO111MODULE=on go mod init错误(go: cannot determine module path for source directory)
Changsha good man
Go111module = on go mod init error (go: cannot determine module path for source directory)
云原生架构下的微服务选型和演进
SWOOLE高性能内存数据库的使用和配置教程
Why: uncaught referenceerror: effect is not defined
One plus two earphone products: charge for 10 minutes and listen to music for 20 hours
Keil package common chip high-speed download address, including historical version, pay close attention to my quick collection
Fine grained emotion analysis practice
APM industry awareness series - 16
1141: C language training - a hundred dollars and a hundred chickens_ Pruning cycle
P1027 [NOIP2001 提高组] Car 的旅行路线 (图 最短路)
痞子衡嵌入式:聊聊系统看门狗WDOG1在i.MXRT1xxx系统启动中的应用及影响
2022电视盒子加购榜排名,超一多半的用户选购当贝盒子
2022 TV box plus purchase list ranking, more than half of users buy dangbei box
VOS6. 0 installation and source code command
Industry analysis | development of Internet medicine