一、Ffmpeg下載
??? 1.下載地址:Download FFmpeg
??? 2.下載windows版本
release下 5.0.1版本或者最新
二、代碼構(gòu)建
??? 1.創(chuàng)建相應(yīng)目錄
??? 將下載的文件分別導(dǎo)入如下目錄,src將存儲源代碼
???? 2. vs+qt運行環(huán)境配置
??? 新建項目后,頭文件配置
??? 3.輸出目錄及工作目錄配置
二、代碼展示
??? 1.打印成功說明ffmpeg調(diào)用成功
#include "ffmpegtest.h"
#include <iostream>
#include <QDebug>
using namespace std;
extern "C" {
#include <libavcodec/avcodec.h>
}
#pragma comment(lib, "avcodec.lib")
FfmpegTest::FfmpegTest(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
qDebug() << QStringLiteral("avcodec");
qDebug() << avcodec_configuration();
}
???? 2. 打印展示
文章來源:http://www.zghlxwxcb.cn/news/detail-401328.html
至此 Ffmpeg搭建成功 可進(jìn)行后期二次開發(fā)!??!文章來源地址http://www.zghlxwxcb.cn/news/detail-401328.html
到了這里,關(guān)于Ffmpeg Windows環(huán)境下搭建的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!