Skip to content

Commit 84d67c7

Browse files
LightArrowsEXEarch1t3cht
authored andcommitted
make_keyframes: Set default format to GRAY8
This will allow clips with non-standard resolutions to be downscaled without any concerns.
1 parent 61b8a16 commit 84d67c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

automation/vapoursynth/aegisub_vs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def wrap_lwlibavsource(filename: str, cachedir: str | None = None, **kwargs: Any
167167

168168

169169
def make_keyframes(clip: vs.VideoNode, use_scxvid: bool = False,
170-
resize_h: int = 360, resize_format: int = vs.YUV420P8,
170+
resize_h: int = 360, resize_format: int = vs.GRAY8,
171171
**kwargs: Any) -> List[int]:
172172
"""
173173
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,
181181
The remaining keyword arguments are passed on to the respective filter.
182182
"""
183183

184-
clip = core.resize.Bilinear(clip, width=resize_h * clip.width // clip.height, height=resize_h, format=resize_format);
184+
clip = core.resize.Bilinear(clip, width=resize_h * clip.width // clip.height, height=resize_h, format=resize_format)
185185

186186
if use_scxvid:
187187
ensure_plugin("scxvid", "libscxvid", "To use the keyframe generation, the scxvid plugin for VapourSynth must be installed")

0 commit comments

Comments
 (0)