vapoursynth / subtext

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

Not working in float #12

Closed YomikoR closed 1 year ago

YomikoR commented 1 year ago
import vapoursynth as vs
core = vs.core

SUBTITLE_DEFAULT_STYLE: str = ("arial,200,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,"
                               "0,0,0,0,100,100,0,0,1,2,0,7,10,10,10,1")

clip = core.std.BlankClip(format=vs.YUV444PS, width=1000, height=200)
clip = core.sub.Subtitle(clip, text="1234567890", style=SUBTITLE_DEFAULT_STYLE)
clip.set_output()

I tried YUV444PS and RGBS and both outputs seem unchanged from the subtitle call.

myrsloik commented 1 year ago

Interesting, will try to reproduce it

myrsloik commented 1 year ago

This was actually a VS bug, disable avx2 instructions and it'll work for now.