VSFilterMod

From Avisynth wiki
Revision as of 15:49, 27 April 2020 by Reel.Deal (Talk | contribs)

Jump to: navigation, search
Abstract
Author Gabest, guliverkli2, and others
Version R5.2.2
Download VSFilterMod_bin.7z
Category Subtitling
License GPLv2
Discussion Doom9 Forum


Contents

Description

VSFilterMod is modification of original VSFilter subtitle renderer by Gabest. This mod brings up new features and some minor bugfixes.

VSFilterMod includes the following funtions:

  • VobSub
  • TextSubMod
  • MaskSubMod
  • TextSubModSwapUV


Requirements


Syntax and Parameters

TextSubMod

Adds subtitles from srt, sub, psb, smi, ssa, ass file formats.

TextSubMod (clip, string "file", int "charset", float "fps", string "vfr")


clip   =
Input clip.


string  file =
Path to subtitles file.


int  charset = 1
charset is the encoding to assume the file is in, if it's not Unicode UTF-8 or UTF-16. (If you need to use this you're doing something wrong.)


float  fps = -1.0
fps is the FPS to assume the video is at. You could just as well just use AssumeFPS instead of using this. VFR overrides this.


string  vfr = ""
vfr is the path to the VFR timecodes file (format 1 or 2) to use for frame times. If set, overrides all other FPS specifications.


VobSub

Adds subtitles from a vob sequence.

VobSub (clip, string)


clip   =
Input clip.


string   =
Path to subtitles file, only .idx and .sub files supported.


MaskSubMod

Creates a subtitle mask. Output clip is RGB32 an it is flipped vertically, use FlipVertical() to correct it.

MaskSubMod (clip, string "file", int "width", int "height", float "fps", int "length", int "charset", string "vfr")


string  file =
Path to subtitles file.


int  width =
int  height =
width and height specify the size of the generated clip, in pixels.


float  fps =
fps specifies the framerate of the generated clip.


int  length =
length is the number of frames to produce in the clip.


int  charset =
charset is the encoding to assume the file is in, if it's not Unicode UTF-8 or UTF-16. (If you need to use this you're doing something wrong.)


string  vfr = ""
vfr is the path to the VFR timecodes file (format 1 or 2) to use for frame times.


TextSubModSwapUV


TextSubModSwapUV (bool)


clip   =
Input clip.


bool   = false
Toggles (globally) whether to swap assume the U and V planes are swapped in YV12 video when rendering subtitles. Default is false.


Examples

AviSource("Blah.avi")
TextSubMod(file="subtitle.ass")
#Assume clip is 1280x720, 24fps, and 3,000 frames total
MaskSubMod(file="subtitle.ass", width=1280, height=720, length=3000)
AviSource("Blah.avi")
VobSub("subtitle.sub")


Changelog

 R5.2.1        2019/07/07      - Add support for Unicode SMP
 R5.2          2018/08/14      - enable non-ascii filename.
 R5            2018/04/09      - support YUV420P10 and YUV420P16 for vapoursynth.


Archived Downloads

Version Download Mirror
R5.2.1 VSFilterMod_bin.7z
v
v0


External Links




Back to External Filters

Personal tools