VS 2017構成ffmpeg

989 ワード

0.x 86をx 64に変更する(これは自分の状況に応じて)
1.ffmpegの含むファイルとライブラリファイルをプロジェクトのパスの下にコピーする
2.プロジェクト内のプロジェクト->プロパティ->VC++ディレクトリ設定ファイルとライブラリファイルを含む
3.mingwインストールディレクトリの下のincludeのinttypes.h,stdint.h,mingw.h 3つのファイルを含むディレクトリの下にコピー
4.
#ifdef __cplusplus
#include 
#include 
#include 
//some other include <>.....
extern "C"
{
#include "libavutil/opt.h"
#include "libavcodec/avcodec.h"
//some other include "".....
#include "libavutil/imgutils.h"
};
#endif

5.
#pragma comment(lib,"avutil.lib")
#pragma comment(lib,"avcodec.lib")
#pragma comment(lib,"avformat.lib")
#pragma comment(lib,"swresample.lib")
#pragma comment(lib,"swscale.lib")
#pragma comment(lib,"avfilter.lib")
#pragma comment(lib,"avdevice.lib")
//some other

OK
やはり配置が悪いと、転送ゲート:ffmpegチュートリアルプロジェクト