摘要: 直接调用ffmpeg ,没用到ffmpeg 编程知识。 (1)所需的头文件 #include <Windows.h> #include <ShellAPI.h> #include <QTextCodec> #include <string> using namespace std; (2)所需的库  阅读全文
posted @ 2021-11-27 15:21 泽良_小涛 阅读(217) 评论(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 泽良_小涛 阅读(117) 评论(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 泽良_小涛 阅读(50) 评论(0) 推荐(0) 编辑