[postprocessor:ugoira] improve frame rate handling

By default FFmpeg assumes a 25 FPS input frame rate, leading to dropped
frames if the source requires a higher frame rate than that.

This commit adds a `framerate` option (default "auto"), which allows to
automatically assign a (more or less) fitting frame rate based on
delays between ugoira frames and avoids dropped frames.
This commit is contained in:
Mike Fährmann
2018-07-20 22:06:48 +02:00
parent 84854fcad7
commit 54a0d72dc8
2 changed files with 44 additions and 14 deletions

View File

@@ -910,6 +910,19 @@ Default ``False``
Description Enable Two-Pass encoding.
=========== =====
ugoira.framerate
----------------
=========== =====
Type ``string``
Default ``"auto"``
Description Controls the frame rate argument (``-r``) for FFmpeg
- ``"auto"``: Automatically assign a fitting frame rate
based on delays between frames.
- any other ``string``: Use this value as argument for ``-r``.
- ``null`` or an empty ``string``: Don't set an explicit frame rate.
=========== =====
ugoira.keep-files
-----------------
=========== =====