Original article address:FFmpeg Quick Start SDK download and FFMPEG Library Development in Windows -- Handle 264 FFmpeg
Author:Getting started with FFMPEG in Namu Amitabha windows
Author: |
A. TNG |
Email: |
[Url = mailto: jiyucn@163.com] jiyucn@163.com [/url] |
Refer: |
Http://www.ffmpeg.com.cn/ |
What is FFMPEG?
FFmpeg is a complete solution for recording, conversion, and streaming audio and video, includingLibavcodec, A set of leading Audio/Video Codec class libraries. FFmpeg is developed on Linux and can be compiled in most operating systems, including windows.
Note
- FFmpeg is highly dependent on GCC, so it is not easy to compile FFMPEG with VC even on Windows. Use GCC to compile FFMPEG as much as possible.
The official FFMPEG website is http://ffmpeg.mplayerhq.hu /.
Chinese wiki is http://www.ffmpeg.com.cn/, a lot of information.
Composition of FFMPEG
FFmpeg consists of the following parts:
Libavcodec: a library that contains all FFMPEG audio/video codecs. To ensure optimal performance and high reusability, most codecs are developed from scratch.
Libavformat: a library that contains all the normal audio and video formats.
- The three instances are complex and can be used as API User Manual:
- FFmpeg: Specifies the video format conversion program of the command line.
- Ffplay: Specifies the video playing program. (SDL support required)
- Ffserver: Multimedia Server
After learning about the composition structure, you will find that if you are looking for a video format conversion method, FFmpeg is definitely your first choice,LibavcodecThis is the top priority. If the API is not used, see FFMPEG. C, ffplay. C, ffserver. C, apiexample. C (Decoding), and output_example.c (encoding ).
FFmpeg Compilation
To use FFMPEG, the first step is to compile. For Linux users, refer to http://www.ffmpeg.com.cn/index.php/ffmpegcompilation for details.
For Windows users, see http://bbs.chinavideo.org/viewthread.php? Tid = 1897 & extra = page = 1
Note
- Compiling FFmpeg is a complicated process. If you want to speed up and appreciate the FFMPEG style, you can skip this step and go directly to the next chapter.
FFmpeg SDK
FFmpeg is a complex project. The first step of compilation is especially complicated in windows. Therefore, kindly netizens provided the DLL and Lib library files compiled in windows and related header files. New users can download the Code directly and write the FFMPEG library program.
- For SDK download and compilation parameters, refer
Http://www.ffmpeg.com.cn/index.php/SDK_Download.
- SDK getting started
Download the http://www.bairuitech.com/html/ruanjianxiazai/20070713/49.html.
The above two are enough to get started with FFMPEG. The latest SDK version is 3.0, and the corresponding FFMPEG version is r10087. You can start by compiling output_example.c in the source code library.SDK getting started.
Note the following when compiling output_example.c:
- VC does not support inline in C, so you can delete the relevant inline.
- For snprintf support, you can consider
The http://www.ijs.si/software/snprintf/ downloads snprintf. h and snprintf. c into the project.
Prepare an output_example.c VC (2008 express Edtion) project. If you are interested, you can emailTang. Jiyu at gmail dot comRequest or access
Download the http://tinyurl.com/5h4v8q.