[postprocessor:ugoira] use frame extension from filenames (#1550)

This commit is contained in:
Mike Fährmann 2021-05-26 23:09:56 +02:00
parent 74d97e6c6b
commit 19a11fa11d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -152,7 +152,8 @@ class UgoiraPP(PostProcessor):
"-f", "image2", "-f", "image2",
"-ts_from_file", "2", "-ts_from_file", "2",
"-pattern_type", "sequence", "-pattern_type", "sequence",
"-i", path.replace("%", "%%") + "%06d.jpg", "-i", "{}%06d.{}".format(
path.replace("%", "%%"), frame["file"].rpartition(".")[2]),
] ]
def _exec(self, args): def _exec(self, args):