1. Download the shared and Dev packages and decompress them.
Http://ffmpeg.zeranoe.com/builds/
2. Add the include directory under the dev package.
Set the path to: Property configuration properties-> C/C ++-> General-> additional include directory
3. Add the directory of the additional library to the Lib folder under the dev package.
Set the path to properties: configuration properties-> linker-> General-> additional library directory
4. Add additional dependencies based on your own SDK, and write the names of LIB files under the lib directory of the dev package in sequence
Set the path to: configuration properties-> linker-> input-> additional dependency
5. Copy the DLL files under the shared package to the project directory based on the SDK used.
If C ++ is used, use the following method when adding the header file; otherwise, lnk2001 will appear during compilation:
External symbols that cannot be parsed
Extern "C"
{
# Include <libavformat/avformat. h>
# Include <libavcodec/avcodec. h>
# Include <libswscale/swscale. h>
# Include <libavutil/MEM. h>
# Include <libavutil/imgutils. h>
# Include <libavutil/samplefmt. h>
};