Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find modern tutorials for libav, ffmpeg, etc? [closed]

Tags:

c

ffmpeg

libav

I want to make a quick program in C that will open a video, save each frame as a ppm, and dump motion vectors. All the tutorials I can find are from almost ten years ago and call deprecated or non-existent functions.

Are there any good online resources, websites, videos, or textbooks that cover a modern approach to doing these types of things?

like image 672
Marty Avatar asked Jan 28 '13 16:01

Marty


1 Answers

I have been working with ffmpeg and libav for several years and also have found no decent recent API-level tutorials. Sometimes I just have to dive into the source to figure out what is going on and how to use it. Also, reading the source for the CLI programs (which use the underlying libraries) can also be informative.

In fact, ffmpeg recommends that you just read source code, either for real OSS projects or their examples. Libav provides Doxygen documentation, but no step-by-step tutorials. IMO this is typical of open source projects: the source may be good, but documentation is often lacking.

Taking a step back, you might consider OpenCV, which is well documented (books exist!) and has an easier API. Lastly, ppm is such a simple format you could probably write a 50 line function to save the pixels yourself, and I found a motion extraction program here.

like image 141
Randall Cook Avatar answered Oct 14 '22 09:10

Randall Cook