[FFmpeg-user] filter for changing frame rate

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon May 13 16:29:27 EEST 2019


Am Mo., 13. Mai 2019 um 15:05 Uhr schrieb Jon bae <jonbae77 at gmail.com>:
>
> Am Mo., 13. Mai 2019 um 14:34 Uhr schrieb Carl Eugen Hoyos <
> ceffmpeg at gmail.com>:
>
> > Am Mo., 13. Mai 2019 um 14:31 Uhr schrieb Michael Koch
> > <astroelectronic at t-online.de>:
> >
> > > > Or the fps filter.
> > > > This filter and the r option have different algorithms that have
> > > > advantages (and disadvantages) in different situations.
> > >
> > > Are the differences explained somewhere in the documentation?
> >
> > Not to my knowledge, them main difference is that the filter is
> > more greedy.
> >
> > Carl Eugen
> >
> >
> Sorry Carl Eugen - you are right. I did a test, and when I apply the fps
> filter after setpts it not duplicate any frames.

Sure?

I mean: It may or may not duplicate frames but contrary to "-r"
the console output will not tell you.

As Moritz wrote: If your input is cfr, you only need setpts,
fps is needed just in case an initial or final frame is missing.
If your input is not cfr, setpts may or may not work
correctly but you need fps (or -r) to create cfr video
which the mp4 muxer expects.

Carl Eugen


More information about the ffmpeg-user mailing list