Hey, before that, I never used C to write a simple demo. At most, I used C to write data structure exercises or something. Through this study, I learned a lot of things I didn't know before.
I am too lazy to do things, but I have been eager to get started with FFMPEG Decoding for only three minutes. The articles in the "zero-basic learning video decoding" series are not original in a strict sense. I will use the eclipse + CDT plug-in on Ubuntu 14.04 according to http://dranger.com/ffmpeg, many interfaces in the original text have changed in ffmpeg2.3, and some interfaces have even been deleted. In most cases, the original example cannot be compiled, greatly reducing everyone's enthusiasm for learning. In this series of articles, these files can be compiled and run successfully, which is successfully tested by the bloggers themselves.
This series of articles is not targeted at Daniel. If you are a great god, you can basically bypass it, because I have limited understanding ability. The audio and video synchronization chapters in this series are explained in dranger, which is directly translated, if there is anything wrong, please correct me. If you have the energy to continue the study, we will improve and supplement it.
Some Garden friends may find that there is no video stream pre-buffering, No subtitle processing, why does SDL use 1.2 instead of sdl2.0, and how to play online videos. There is only one reason, and the blogger is not capable enough. Just use the phrase that my former colleague despised me: It's just a word. Hey !!!
This series of articles not about how to make a complete video player, but also help you get started and know how to use FFMPEG for decoding. For more details, refer to the ffplay source code for details, including the processing of subtitles.
Finally, I wish you an early presence in the video coding and decoding industry!