随笔分类 -  FFMPEG及相关

摘要:#ifndef PCH_H #define PCH_H extern "C" { #include "libavutil/opt.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "liba 阅读全文
posted @ 2021-12-30 11:59 泽良_小涛 阅读(36) 评论(0) 推荐(0) 编辑
摘要:#ifndef PCH_H #define PCH_H extern "C" { #include "libavutil/opt.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "liba 阅读全文
posted @ 2021-12-28 10:45 泽良_小涛 阅读(19) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/zhangpengzp/article/details/88632455 源文解解比较详细,不再复制。代码列出。 #pragma once #include <QWidget> #include "ui_SimpleCamera.h" class Simp 阅读全文
posted @ 2021-12-07 16:14 泽良_小涛 阅读(731) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/aqiasi007/article/details/100994012 #pragma once #include <QWidget> #include "ui_PlayerSDL.h" #include <QLabel> #include <QDebug 阅读全文
posted @ 2021-12-03 15:31 泽良_小涛 阅读(36) 评论(0) 推荐(0) 编辑
摘要:开发环境:MinGW+QT5.9+FFMPEG20190212+SDL2.0.9 一、开发环境搭建 (1)下载工具 在https://ffmpeg.zeranoe.com/builds/下载对应版本。链接方式有三种, Static:这个版本只包含了ffmpeg.exe、ffplay.exe、ffpr 阅读全文
posted @ 2021-12-02 15:15 泽良_小涛 阅读(237) 评论(0) 推荐(0) 编辑
摘要:#pragma once #include <QThread> #include <QImage> class VideoPlayer :public QThread { Q_OBJECT public: VideoPlayer(); ~VideoPlayer(); void run(); priv 阅读全文
posted @ 2021-12-01 16:59 泽良_小涛 阅读(456) 评论(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 泽良_小涛 阅读(291) 评论(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 泽良_小涛 阅读(116) 评论(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 泽良_小涛 阅读(276) 评论(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 泽良_小涛 阅读(221) 评论(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 泽良_小涛 阅读(126) 评论(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 泽良_小涛 阅读(57) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示