vapoursynth / subtext

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

Unable to render SRT subtitles #11

Closed adworacz closed 1 year ago

adworacz commented 1 year ago

While testing recently, I found that SRT subtitles are not rendered at all using this plugin. Taking the same file and converting it to ASS using ffmpeg and then rendering again using this plugin works like a charm.

Example script:

import vapoursynth as vs

core = vs.core

clip = core.std.BlankClip(width=720, height=304, length=2000)
clip = clip.sub.TextFile("./subs-short.srt")

clip.set_output()

Use the attached file (rename to srt as appropriate, Github only allows txt files). You'll see a black clip rendered with no text.

subs-short.txt

myrsloik commented 1 year ago

Fixed, broke due to ffmpeg behavior changes

adworacz commented 11 months ago

Awesome, thank you!