摘要: #pragma once #include <QThread> #include <QImage> class VideoPlayer :public QThread { Q_OBJECT public: VideoPlayer(); ~VideoPlayer(); void run(); priv 阅读全文
posted @ 2021-12-01 16:59 泽良_小涛 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-01 11:41 泽良_小涛 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-01 11:32 泽良_小涛 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 原文出自:https://mp.weixin.qq.com/s/z1LXwRVPlDqxn_p3DIFOag #include <iostream> #include <stdio.h> #include <Windows.h> using namespace std; extern "C" { # 阅读全文
posted @ 2021-12-01 09:59 泽良_小涛 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1.用的是VS2013,下载了opencv3.0. 2.使用64位的。 3.加入相应的库和头文件。 4.代码 #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; voi 阅读全文
posted @ 2021-11-30 12:21 泽良_小涛 阅读(108) 评论(0) 推荐(0) 编辑
摘要: int writeJPEG(AVFrame* frame, int width, int height){ const char* out_file = "hello_world.jpg"; //新建一个输出的AVFormatContext 并分配内存 AVFormatContext* output 阅读全文
posted @ 2021-11-29 11:36 泽良_小涛 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 直接调用ffmpeg ,没用到ffmpeg 编程知识。 (1)所需的头文件 #include <Windows.h> #include <ShellAPI.h> #include <QTextCodec> #include <string> using namespace std; (2)所需的库  阅读全文
posted @ 2021-11-27 15:21 泽良_小涛 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.从视频中截取图片 ffmpeg -i D:/Demo/FFmpegDemo/Win32/Debug/1.mp4 -y -framerate 10 -start_number 100 -r 1 -ss 00:02:00 -t 00:01:07 D:/Demo/FFmpegDemo/Win32/De 阅读全文
posted @ 2021-11-27 15:16 泽良_小涛 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.将相关的库及头文件添加 2.在代码中加头文件 extern "C"{ #include <libavcodec/avcodec.h> #include <libavformat/avformat.h>}; 注意加extern "C" 3.代码 AVFormatContext *pFormatCt 阅读全文
posted @ 2021-11-27 10:42 泽良_小涛 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 工具:vs自带的developer command for VS2015命令 dumpbin /EXPORTS aaa.dll // 查看内部函数 dumpbin /DEPENDENTS aaa.dll // 查看相关依赖 阅读全文
posted @ 2021-11-26 15:33 泽良_小涛 阅读(219) 评论(0) 推荐(0) 编辑