FFmpeg study Notes

Source: Internet
Author: User

For every person who has just started to learn, when the beginning of contact with FFmpeg, there must be three questions most concerned about, that is, what is FFmpeg? What can I do? How do you start learning? I started to contact FFmpeg before the beginning of the learning process. These three questions, especially the last one, really bothered me a bit. Now I share a little understanding of ffmpeg. I hope to be helpful to the students who are learning ffmpeg programming.

1. What is FFmpeg? (1) You can understand ffmpeg as a set of audio and video solutions. And it's a free, open source, cross-platform solution. It provides the ability to record, convert, and stream audio and video.

The

also includes a state-of-the-art audio/video codec library at the same time, using FFmpeg to encode the original audio and video from the collection or decode the existing audio and video files. Simply mentioned here, ffmpeg video H264 encoding relies on x264 third-party video encoding library, audio MP3 encoding relies on lame MP3 third-party encoding library.         (2) at the same time. FFmpeg is a group of open source programs developed using the C language, just like many open source programs. It has its own community and an active maintainer. Especially in the last 2 years. The version number is updated very quickly. Nearly identical updates are available every one months. Open the FFmpeg source file and see the C code for thousands of lines. In admiration of the author's ingenuity at the same time. Can not help but for their intelligence to catch the urgency. See the source file. You will also be able to understand the implementation details of the FFmpeg API. This allows you to make changes to your needs and achieve a customized version of the FFmpeg. Of course. It's still a bit of work to get to this stage. From My learning process, don't say change ffmpeg, just started to face ffmpeg a bunch of API, really confused, can not start, the back will tell how to learn ffmpeg.        2. What can ffmpeg do?         (1) You can download the installation ffmpeg, such as what you see, and then enter the FFmpeg-related commands on the console command line so that you can play songs and videos. Even through the command to achieve the audio and video file conversion, mixing, editing and other complex processing. Such ffmpeg use scenarios are much more on the server side. I believe that a lot of video sites have set up a ffmpeg-based streaming server, for example, to add a watermark to the video saved on the server, although I did not, but believe it is a group of commands.                          ,         &NB Sp       

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3jhzng=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/southeast ">
(2) You can also download the FFmpeg source code, for example, as seen in the Windows platform, Android platform and other platforms to compile FFmpeg source code to obtain different platforms under FFmpeg static library or dynamic library. For their own program calls, in order to achieve ffmpeg-based audio and video codec and other programs developed. Such ffmpeg use scenarios in the client more than, for example, short video class app "Micro-vision", its audio and video codec work is called FFmpeg finished. Of course, I recently was engaged in the short video class app codec is also called FFmpeg finished.
3. How to learn ffmpeg? Searching for FFmpeg's learning resources on the Internet, we can find out two categories, one is ffmpeg related command learning materials, that is, the server-side installation FFmpeg mentioned in the previous section. Then through the command of the way call FFmpeg finished audio and video conversion, retransmission and so on. There is more information in this regard. In addition, because I did not delve into the use of these commands, here is not much to say. There is also a ffmpeg API learning materials, API learning data is less than the former. For FFmpeg API learning, on-line search to find out. Looking back will find the best introductory learning material in fact a few programs under the source code doc/examples file. Each of these programs is a standalone Demo sample program. Respectively realize the media file open, audio and video mixing, audio and video codec and other basic and common functions, through the analysis of these demo sample program, will gradually master the FFmpeg API usage. These demo demo programs each file size is different. It is recommended to look at the smallest file size, that is, the least number of lines of code, which will not create a daunting mentality. Of course, just analyzing the source code is not enough. These demos also need to be executed so that they have a better understanding of the FFmpeg's parameters and invocation logic. We'll talk about how to build a ffmpeg development environment in the Windows environment later.

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvz3jhzng=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/southeast ">




FFmpeg study Notes

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.