Use ffmpeg sdk in Visual Studio

Source: Internet
Author: User

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>
};

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.