From 82ab7fe92f98bc58ceeb6aa2985ea0be3c200eb9 Mon Sep 17 00:00:00 2001 From: Ichunjo Date: Sun, 10 Nov 2024 18:06:10 +0100 Subject: [PATCH] fix HardsubASS outputting single frame clip --- vsmasktools/hardsub.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vsmasktools/hardsub.py b/vsmasktools/hardsub.py index 3457670..80aac8d 100644 --- a/vsmasktools/hardsub.py +++ b/vsmasktools/hardsub.py @@ -305,9 +305,7 @@ def __init__( def _mask(self, clip: vs.VideoNode, ref: vs.VideoNode, **kwargs: Any) -> vs.VideoNode: ref = ref[0] * self.shift + ref if self.shift else ref - mask: vs.VideoNode = ref.sub.TextFile( # type: ignore[attr-defined] - self.filename, fontdir=self.fontdir, blend=False - )[1] + mask = ref.sub.TextFile(self.filename, fontdir=self.fontdir, blend=False).std.PropToClip('_Alpha') mask = mask[self.shift:] if self.shift else mask mask = mask.std.Binarize(1) mask = iterate(mask, core.std.Maximum, 3)