Where can I find a C/C++ FFmpeg extensive tutorial?

I was also looking for a good c/c++ FFmpeg tutorial for a while, and this c/c++ ffmpeg-libav-tutorial is definitely the best I found so far. It explains how to use the FFmpeg as a library and before that gives a clear overview about video key words (like encoding, decoding, transconding, muxing exc.) which is very helpful for people who are not that familiar with videos.

In addition, this tutorial is great to understand the concept of video, so for those who are not familiar enough with the video world, I suggest to start with this, and only then to continue with the c/c++ ffmpeg-libav-tutorial.


i was searching for a FFmpeg tutorial and php but i found the following are the best places to learn it with any language a book i think it's the only book about FFmpeg FFmpeg Basics: Multimedia handling with a fast audio and video encoder

http://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327832/ref=sr_1_12?ie=UTF8&qid=1357356672&sr=8-12&keywords=ffmpeg

enter image description here

and the scond place is http://ffmpeg.org/documentation.html


You can learn a great deal from the source of the command-line utilities maintained by the FFmpeg project.

In ffplay.c, the main() will show you how to get the library initialized. stream_component_open() demonstrates matching codecs to streams in the media, and get_video_frame() shows how to decode a packet and get its PTS (presentation time stamp). You'll need that to time your splits correctly.

That should get you started on the decode side. On the encode side, look at ffmpeg.c. It's larger and more complicated than ffplay, but the process of encoding a frame nearly mirrors the process of decoding it, so once you have decoding working, it should make more sense.