1
0
Fork 0

make_keyframes: Set default format to GRAY8

This will allow clips with non-standard resolutions to be downscaled without any concerns.
This commit is contained in:
LightArrowsEXE 2023-03-16 04:29:12 +01:00 committed by arch1t3cht
parent 61b8a16cd8
commit 84d67c73b0
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ def wrap_lwlibavsource(filename: str, cachedir: str | None = None, **kwargs: Any
def make_keyframes(clip: vs.VideoNode, use_scxvid: bool = False,
resize_h: int = 360, resize_format: int = vs.YUV420P8,
resize_h: int = 360, resize_format: int = vs.GRAY8,
**kwargs: Any) -> List[int]:
"""
Generates a list of keyframes from a clip, using either WWXD or Scxvid.
@ -181,7 +181,7 @@ def make_keyframes(clip: vs.VideoNode, use_scxvid: bool = False,
The remaining keyword arguments are passed on to the respective filter.
"""
clip = core.resize.Bilinear(clip, width=resize_h * clip.width // clip.height, height=resize_h, format=resize_format);
clip = core.resize.Bilinear(clip, width=resize_h * clip.width // clip.height, height=resize_h, format=resize_format)
if use_scxvid:
ensure_plugin("scxvid", "libscxvid", "To use the keyframe generation, the scxvid plugin for VapourSynth must be installed")