126

I am trying to find documentation to use the FFmpeg C API. It seems that only command line documentation is available.

Is there any good documentation/tutorials/links available?

Bulat
  • 710
  • 7
  • 15
fvisticot
  • 6,499
  • 13
  • 43
  • 70
  • 65
    I do not think that this question should be closed. There is not much official documentation for any of the FFmpeg libraries, and the fact that this question has so many upvotes and favorites shows that it is useful to the community. – void-pointer Aug 22 '13 at 09:56
  • 7
    I have to agree with you, some of the most useful and interesting posts that I find are 'closed as not constructive'. – Caroline Beltran Dec 11 '14 at 18:16
  • Here is a minimal runnable C example that synthesizes some video: https://stackoverflow.com/questions/12831761/how-to-resize-a-picture-using-ffmpegs-sws-scale/36487785#36487785 – Ciro Santilli新疆棉花TRUMP BAN BAD Jun 24 '18 at 06:40

5 Answers5

51

I've been keeping the Dranger ffmpeg tutorials up to date here: https://github.com/mpenkov/ffmpeg-tutorial

I've tried to keep the code changes minimal while fixing bugs and rewriting deprecated parts.

mpenkov
  • 20,356
  • 7
  • 75
  • 121
18

Here is the best one I have found so far. It deals with a lot of the quirks of the API and shows you how to build a working video player using SDL and libavformat/libavcodec.

http://dranger.com/ffmpeg/

Jason B
  • 12,165
  • 2
  • 37
  • 43
11

I created this wiki page so that it can try and keep updated:

Using libav*

rogerdpack
  • 50,731
  • 31
  • 212
  • 332
  • note that this link was broken by stack overflow's autolinking regex not matching the star at the end of the link - you will need to manually add the star or else copy and paste the link to be taken to the wiki page. – njahnke Nov 21 '12 at 15:50
  • ok hopefully fixed it, at least for now... – rogerdpack Jan 14 '13 at 17:01
9

http://dranger.com/ffmpeg/ is great, but the source code is little dated. For updated code of the tutorial, please take a look here: https://github.com/phamquy/FFmpeg-tutorial-samples

jAckOdE
  • 2,282
  • 7
  • 34
  • 64
7

If you're interested in writing your own ffmpeg format or codec, take a look here:

http://wiki.multimedia.cx/index.php?title=Category:FFmpeg_Tutorials

jeff7
  • 2,062
  • 14
  • 9