FFmpeg Environment Construction (1)
Environment: Based on Win64 +VS2017
download
Link: www.gyan.dev/ffmpeg/buil…
Of course you can download the source code to compile: www.ffmpeg.org/download.ht…
- Bin DLL dynamic library directory
- include header files
- Lib The lib used to link DLLS
Configuration of VS.
1. Copy the DLL to the working path of the project
2. Open the project solution
The configuration is as follows:
Of course you can copy include and lib to the project working directory so that relative paths can be configured here.
test
#include <iostream>
extern "C"
{
#include <libavcodec\avcodec.h>
}
int main(a)
{
std::cout << avcodec_configuration(a); }Copy the code