[FFmpeg-devel] [PATCH][RFC] Add example seeking_while_remuxing.c
ed.torbett at simulation-systems.co.uk
Tue Jan 28 11:43:00 CET 2014
> I agree with it. It is also true that more examples would need more
> maintenance, but example that focus on one thing is more readable.
> Good simple example is better than a lot of documentation until it does
> thing correctly. Single example that covers to much things is not good
> example IMHO, because people get confused reading it.
As a software engineer having started working with FFMpeg only recently, I whole-heartedly agree with this. I started with the demuxing_decoding example, which is very good and simple, but as soon as I needed to use filtering the complexity of the example ramps up massively (despite filtering being very easy, once you know how). Filtering in particular was an issue as the example doesn't use avfilter_link for some reason.
It would also be very useful for a more advanced example or examples containing some FFMpeg real-world necessities - such as the multi-threaded packet buffering used in ffplay.c, which turns out to be 100% necessary if you ever want to decode and display a live stream without either huge amounts of dropped packets (because you're delaying until the next frame should be displayed) or really jittery playback (because not every frame takes the same amount to time to decode, which seems obvious once you realise but you don't know how much impact that really has till you see it).
More information about the ffmpeg-devel