[postprocessor:ugoira] use 'concat' demuxer by default (#1550)
'image2' with nanasecond mtime timestamps doesn't work on Windows
This commit is contained in:
@@ -26,6 +26,7 @@ class UgoiraPP(PostProcessor):
|
|||||||
self.twopass = options.get("ffmpeg-twopass", False)
|
self.twopass = options.get("ffmpeg-twopass", False)
|
||||||
self.output = options.get("ffmpeg-output", True)
|
self.output = options.get("ffmpeg-output", True)
|
||||||
self.delete = not options.get("keep-files", False)
|
self.delete = not options.get("keep-files", False)
|
||||||
|
self.repeat = options.get("repeat-last-frame", True)
|
||||||
|
|
||||||
ffmpeg = options.get("ffmpeg-location")
|
ffmpeg = options.get("ffmpeg-location")
|
||||||
self.ffmpeg = util.expand_path(ffmpeg) if ffmpeg else "ffmpeg"
|
self.ffmpeg = util.expand_path(ffmpeg) if ffmpeg else "ffmpeg"
|
||||||
@@ -34,13 +35,10 @@ class UgoiraPP(PostProcessor):
|
|||||||
if rate != "auto":
|
if rate != "auto":
|
||||||
self.calculate_framerate = lambda _: (None, rate)
|
self.calculate_framerate = lambda _: (None, rate)
|
||||||
|
|
||||||
if options.get("ffmpeg-demuxer") == "concat":
|
if options.get("ffmpeg-demuxer") == "image2":
|
||||||
self._process = self._concat
|
|
||||||
self.repeat = (options.get("repeat-last-frame", True) and
|
|
||||||
self.extension != "gif")
|
|
||||||
else:
|
|
||||||
self._process = self._image2
|
self._process = self._image2
|
||||||
self.repeat = False
|
else:
|
||||||
|
self._process = self._concat
|
||||||
|
|
||||||
if options.get("libx264-prevent-odd", True):
|
if options.get("libx264-prevent-odd", True):
|
||||||
# get last video-codec argument
|
# get last video-codec argument
|
||||||
|
|||||||
Reference in New Issue
Block a user