6

Is there any way that I can limit fps with certain value?

For example, using filter graph such as fps=min(original_fps, MAX_FPS).

zarak
  • 2,933
  • 3
  • 23
  • 29
jsBaek
  • 101
  • 2
  • 5

1 Answers1

1

Unfortunately, typically the answer with ffmpeg is "not as easily as you'd like"

You can parse out the original fps, then do the "min" calculation in some pre-existing script I suppose, or you may be able to set your output to "vfr" (variable frame rate) mode, then use the select filter to try to not allow frames in too quickly. GL!

rogerdpack
  • 62,887
  • 36
  • 269
  • 388
  • 1
    With `-vsync vfr`, just adding `-r MAX` is enough. This can mess up the encoder time base though, important in duration sensitive encoders like x264...etc – Gyan Nov 25 '18 at 16:15