[FFmpeg-devel] [PATCH 6/7] Implement settb filter.

Stefano Sabatini stefano.sabatini-lala
Thu Jul 22 16:34:29 CEST 2010


On date Thursday 2010-07-22 14:09:28 +0200, Michael Niedermayer encoded:
> On Wed, Jul 21, 2010 at 06:00:05PM +0200, Stefano Sabatini wrote:
> > ---
> >  doc/filters.texi         |   19 +++++++++
> >  libavfilter/Makefile     |    1 +
> >  libavfilter/allfilters.c |    1 +
> >  libavfilter/vf_settb.c   |   92 ++++++++++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 113 insertions(+), 0 deletions(-)
> >  create mode 100644 libavfilter/vf_settb.c
> 
> i think a single filter that can modify timestamps and timebase would make
> more sense than spliting this operation?
> modifying tb implicates recaling timestamps anyway ...

I see these as two different operations, changing timebase is not
implying a change of the absolute temporal value of the timestamps.

Alternatively we could have a setpts filter which accepts:
outpts_expression:tb_num:tb_den

but I tend to prefer to keep distinct the two problems (and keep
simple both filters).  Also note that in the case of settb the
rescaling is done implicitely by the filter framework
(avfilter_start_frame()).

Regards.
-- 
FFmpeg = Free and Formidable Merciful Picky Exxagerate God



More information about the ffmpeg-devel mailing list