Go: Windows FFmpeg Quick Start

Source: Internet
Author: User

FFmpeg profile what is FFmpeg? FFmpeg is a complete solution for recording, converting, and streaming audio and video, including Libavcodec, a leading audio/video codec class library. FFmpeg is developed on Linux when it can be compiled under most operating systems, including Windows. Note
    • FFmpeg has a strong reliance on GCC, so it is not easy to compile ffmpeg with VC on Windows. Use GCC as much as possible to compile the ffmpeg and do more with less.
The official website of FFmpeg is [url]http://ffmpeg.mplayerhq.hu[/url]/. The Chinese wiki is [Url]http://www.ffmpeg.com.cn/[/url], with a lot of information. The composition structure of ffmpeg ffmpeg mainly consists of a few parts:
  • Libavcodec: A library containing all ffmpeg audio and video codecs. To ensure optimal performance and high reusability, most codecs are developed from scratch.
  • Libavformat: A library of parsers and generator that contains all of the common audio-visual formats.
  • Three instance programs, these three instances are more complex and can basically be used as API manuals:
    • FFmpeg: The video format converter for the command line.
    • Ffplay: Video playback program. (Requires SDL support)
    • Ffserver: Multimedia Server
Once you understand the composition structure, you will find that if you are looking for a way to convert video formats, then FFmpeg is definitely your first choice, and Libavcodec is the top priority. You can refer to Ffmpeg.c, ffplay.c, FFSERVER.C, apiexample.c (decoding), and output_example.c (encoding) If you encounter an API that is not used. FFmpeg compile to use FFmpeg, the first step is to compile, for Linux users, you can refer to the [Url]http://www.ffmpeg.com.cn/index.php/ffmpeg%e7%bc%96%e8%af%91%e8 %af%a6%e8%a7%a3[/url] For Windows users, you can refer to the [url]http://bbs.chinavideo.org/viewthread.php?tid=1897&extra=page%3d1 [/URL] Note
    • Compiling ffmpeg is a complex process, and if you want to speed up and appreciate ffmpeg, you can skip this step and go directly to the next section.
FFmpeg's sdkffmpeg is a complex project, the first step of compiling, especially the compilation process under Windows, is even more complex. Therefore, the good friend provides the DLL and LIB library files under Windows, as well as the related header files. Beginners can download it directly and start writing the FFmpeg library program.
  • The SDK download and compilation parameters can be referenced in [Url]http://www.ffmpeg.com.cn/index.php/sdk_download[/url].
  • The SDK primer can be downloaded from [Url]http://www.bairuitech.com/html/ruanjianxiazai/20070713/49.html[/url].
Both of these are sufficient to complete the ffmpeg, the latest SDK version is 3.0, and the version corresponding to FFmpeg is r10087. Beginners can start by compiling output_example.c from the source code base, and refer to the SDK primer. The following issues need to be noted when compiling output_example.c:
  • For snprintf support, you may consider downloading snprintf.h and snprintf.c from [Url]http://www.ijs.si/software/snprintf/[/url] into the project.
Prepared a output_example.c VC (Edtion Express) project, interested friends can mail to tang.jiyu at gmail dot com request, or access [url]http://tinyurl.com /5h4v8q[/url] Download.

Go: Windows FFmpeg Quick Start

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.