11 2021 档案
摘要:1.用的是VS2013,下载了opencv3.0. 2.使用64位的。 3.加入相应的库和头文件。 4.代码 #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; voi
阅读全文
摘要:int writeJPEG(AVFrame* frame, int width, int height){ const char* out_file = "hello_world.jpg"; //新建一个输出的AVFormatContext 并分配内存 AVFormatContext* output
阅读全文
摘要:直接调用ffmpeg ,没用到ffmpeg 编程知识。 (1)所需的头文件 #include <Windows.h> #include <ShellAPI.h> #include <QTextCodec> #include <string> using namespace std; (2)所需的库
阅读全文
摘要: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
阅读全文
摘要:1.将相关的库及头文件添加 2.在代码中加头文件 extern "C"{ #include <libavcodec/avcodec.h> #include <libavformat/avformat.h>}; 注意加extern "C" 3.代码 AVFormatContext *pFormatCt
阅读全文
摘要:工具:vs自带的developer command for VS2015命令 dumpbin /EXPORTS aaa.dll // 查看内部函数 dumpbin /DEPENDENTS aaa.dll // 查看相关依赖
阅读全文
摘要:在做DLL库的时候经常会通过printf打印一些调试信息,但是MFC项目引用后printf信息是无法输出到调试窗口的,网上一些说通过AllocConsole();打开命令窗口在VS2017中竟然不好用,最终经过网络寻找到可用方法: 1、在vs中打开你的解决方案。 2、鼠标移动到你的项目名称上,点击鼠
阅读全文