This article was reproduced from: http://blog.csdn.net/wootengxjj/article/details/51758621
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
FFmpeg is an excellent library, open source, cross-platform and user-friendly, and can be used in Windows and Linux platforms, this article will briefly explain the Windows platform under the FFmpeg development environment simple building process.
Development environment: Windows10+visual Studio 2013
1. Open ffmpeg website download page, click the above download Download the source code and unzip;
2. Click Windows Builds under the Windows icon under the official website, download the latest 32-bit Shared and 32-bit Dev packages and unzip (or choose 64-bit depending on the target environment), personally recommend extracting two compressed packages and merging them into a single folder. As shown in. Because ffmpeg different versions of the upgrade, some functions are discarded, resulting in the existing online example can not be run, it is best to choose an earlier version of the address to download. Development version: Https://ffmpeg.zeranoe.com/builds/win32/dev/,win32 Runtime: https://ffmpeg.zeranoe.com/builds/win32/shared/. The version selected in this article is: 2015-09-16 git-cbbd906.
In the System environment variable add:
This makes it unnecessary to copy the runtime library under each folder at the time of development.
3. Open Visual Studio 2013, create a new project, select the WIN32 console application in Visual C + +, OK, finish.
4. Enter the Doc/examples folder under the FFmpeg source folder, find the Metadata.c file, the file is a standalone demo, run the result for printing audio and video media files basic information. Open the copy and paste the contents into the FFmpeg first program. CPP, slightly modified as follows.
5. Right-click on the project name in Visual Studio, open properties, set configuration Properties->c/c++, additional Include directories and 6 configuration Properties---Additional library directories for the second step unzip the 32-bit Dev folder I Add Avformat.lib and Avutil.lib to the Nclude folder and to the Lib folder, as well as additional dependencies, inputs, such as the configuration properties, linker.
6. Compile and execute.
FFmpeg setting up development environment "go" under windows