vapoursynth / subtext

Subtitle plugin for VapourSynth based on libass
MIT License
16 stars 5 forks source link

Issues with fullrange clips #15

Open dnjulek opened 4 months ago

dnjulek commented 4 months ago
ass_file = r"file.ass"
clip = core.std.BlankClip(None, 1920, 1080, vs.YUV420P8, length=35000)
clip_full = clip.std.SetFrameProps(_ColorRange=0)
subs = core.sub.TextFile(clip=clip_full, file=ass_file, charset="UTF-8", scale=1, debuglevel=7, linespacing=0, margins=[0, 0, 0, 0], sar=0)
subs.set_output()

vapoursynth.Error: MaskedMerge: Input frames must have the same range

dnjulek commented 4 months ago

range=1 (in TextFile args) seems to fix it, but a better warning would be ideal

myrsloik commented 4 months ago

Odd, I thought it auto detected what to do. I'll investigate in a bit.