[FFmpeg-devel] [PATCH][RFC] Add example seeking_while_remuxing.c
lukasz.m.luki at gmail.com
Tue Jan 28 11:16:37 CET 2014
On 28 January 2014 10:37, Andrey Utkin <andrey.krieger.utkin at gmail.com>wrote:
> 2014-01-28 Stefano Sabatini <stefasab at gmail.com>:
> > This seems to contain much code from remuxing.c. What if you apply
> > your changes on top of that? Having many files to maintain means more
> > work for maintainers.
> Adding new seeking code directly to remuxing.c is possible, although i
> am not sure whether it would be good to read such example, i.e.
> wouldn't they get too complicated. I think remuxing.c is great for its
> simplicity now, it's good template to start different app sketches
> now. So i am ok to unify my sketch with remuxing.c, but i'd vote for
> saving remuxing.c as it is now.
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 one
thing correctly. Single example that covers to much things is not good
example IMHO, because people get confused reading it.
Try to understand seeking or filtering reading ffplay.c or ffmpeg.c. It can
takes a lot of time to just find the places where related code is.
To cover a problem with maintenance, each example should have its
maintainer and they are obligated to keep it up to date.
More information about the ffmpeg-devel