VapourSynth subtitle rendering filter for video processing
VapourSynth filters - Subtitling filter
vspipe$ vspipe -c y4m script.vpy - | ffmpeg -i pipe: output.mp4$ import vapoursynth as vs; core = vs.get_core(); core.sub.TextFile(clip, 'subtitles.ass')$ vspipe --arg input='video.mp4' --arg subs='subs.srt' script.vpy output.mkv