1.下載 Zeranoe ffmpeg builds Dev + Shared

下載 inttypes.h & stdint.h header file 然後放入 ffmpeg\include 資料夾中

 

2.Visual Studio 專案屬性 -> C/C++ -> Additional Include Directories 加入 ffmpeg\include

Visual Studio 專案屬性 -> Linker -> Additional Library Directories 加入 ffmpeg\lib

 

3. 在 libavutil\common.h 加入

#define __STDC_CONSTANT_MACROS
#define inline __inline

#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif

 

ps. 如果遇到 Debug 可以執行 Release 卻 crash 的狀況

Visual Studio 專案屬性 -> Linker -> Optimization -> References -> 設成 No (/OPT:NOREF)

 

Using FFmpeg under Windows Visual C++ Environment

Using FFmpeg in VS2008

arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(1) 人氣()