1. Create the project
2. Build the ffmpeg environment
- Create bin under the project (as the execution directory of the project), ffmpeg (ffmpeg configuration file)
- content in bin
- The content of include in ffmpeg (where the header file is stored
)
- The content of lib in ffmpeg (where the inventory is placed
)
3. Load in pro
3. Configure C use environment
extern "C"
{
#include <libavcodec/avcodec.h> //编解码
#include <libavformat/avformat.h> //分装格式处理
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#include <libavdevice/avdevice.h>//设备
#include <libavutil/avutil.h> //工具库
}
Configuration complete