Xy-VSFilter
From Avisynth wiki
(Difference between revisions)
m (→External Links) |
(finish up documentation ...) |
||
Line 9: | Line 9: | ||
<br> | <br> | ||
== Description == | == Description == | ||
− | xy-VSFilter Project (High Performance [[VSFilter]] Compatible Subtitle Filters) | + | xy-VSFilter Project (High Performance [[VSFilter]] Compatible Subtitle Filters). Based on VSFilter 2.39 Guliverkli2 with various important changes from VSFilter 2.41 MPC-HC. |
VSFilter includes the following functions: | VSFilter includes the following functions: | ||
Line 22: | Line 22: | ||
* [x86]: [[AviSynth+]] or [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6] | * [x86]: [[AviSynth+]] or [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6] | ||
* [x64]: [[AviSynth+]] | * [x64]: [[AviSynth+]] | ||
− | * Supported color formats: [[RGB24]], [[RGB32]], [[YV12]] | + | * Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]] |
**AviSynth+: <code>TextSub</code> accepts YUV420P10 and YUV420P16 formats | **AviSynth+: <code>TextSub</code> accepts YUV420P10 and YUV420P16 formats | ||
<br> | <br> | ||
Line 63: | Line 63: | ||
<br> | <br> | ||
===MaskSub=== | ===MaskSub=== | ||
− | Creates a subtitle mask. See [https://sourceforge.net/p/guliverkli2/patches/1/ here] for more info. | + | Creates a subtitle mask. <!--See [https://sourceforge.net/p/guliverkli2/patches/1/ here] for more info.--> |
<br> | <br> | ||
<br> | <br> | ||
− | :{{Template:FuncDef|MaskSub ( | + | :{{Template:FuncDef|MaskSub (string "file", int "width", int "height", float "fps", int "length", int "charset", string "vfr", string "pixel_type") }} |
− | + | ||
− | + | ||
− | + | ||
<br> | <br> | ||
::{{Par2|file|string|}} | ::{{Par2|file|string|}} | ||
Line 109: | Line 106: | ||
[[AviSource]]("Blah.avi") | [[AviSource]]("Blah.avi") | ||
TextSub(file="subtitle.ass") | TextSub(file="subtitle.ass") | ||
+ | |||
+ | #Assume clip is 1280x720, 24fps, and 3,000 frames total | ||
+ | MaskSub(file="subtitle.ass", width=1280, height=720, length=3000) | ||
[[AviSource]]("Blah.avi") | [[AviSource]]("Blah.avi") |
Revision as of 16:02, 27 April 2020
Abstract | |
---|---|
Author | Gabest, guliverkli2, cyberbeing, pinterf |
Version | v3.2.0.802 |
Download | xyVSFilterSubFilter-pfmod-3.2.0.802.7z |
Category | Subtitling |
License | GPLv2 |
Discussion | Doom9 Forum |
Contents |
Description
xy-VSFilter Project (High Performance VSFilter Compatible Subtitle Filters). Based on VSFilter 2.39 Guliverkli2 with various important changes from VSFilter 2.41 MPC-HC.
VSFilter includes the following functions:
- VobSub
- TextSub
- TextSubSwapUV
- MaskSub
Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: RGB24, RGB32, YUY2, YV12
- AviSynth+:
TextSub
accepts YUV420P10 and YUV420P16 formats
- AviSynth+:
Syntax and Parameters
TextSub
Adds subtitles from srt, sub, psb, smi, ssa, ass file formats.
- TextSub (clip, string "file", int "charset", float "fps", string "vfr")
- clip =
- Input clip.
- clip =
- string file =
- Path to subtitles file.
- string 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.)
- int charset = 1
- 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.
- fps is the FPS to assume the video is at. You could just as well just use
- float fps = -1.0
- 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.
- string vfr = ""
VobSub
Adds subtitles from a vob sequence.
- VobSub (clip, string)
- clip =
- Input clip.
- clip =
- string =
- Path to subtitles file, only .idx and .sub files supported.
- string =
MaskSub
Creates a subtitle mask.
- MaskSub (string "file", int "width", int "height", float "fps", int "length", int "charset", string "vfr", string "pixel_type")
- string file =
- Path to subtitles file.
- string file =
- int width =
- int height =
- width and height specify the size of the generated clip, in pixels.
- int width =
- float fps =
- fps specifies the framerate of the generated clip.
- float fps =
- int length =
- length is the number of frames to produce in the clip.
- int length =
- 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.)
- int charset =
- string vfr = ""
- vfr is the path to the VFR timecodes file (format 1 or 2) to use for frame times.
- string vfr = ""
- string pixel_type = "RGB32"
- Pixel type, can be set to:
"RGB32", "YUV420P10" or "YUV420P16"
- Note: With "RGB32" output the mask is flipped vertically, use
FlipVertical()
to correct it.
- Pixel type, can be set to:
- string pixel_type = "RGB32"
TextSubSwapUV
- TextSubSwapUV (bool)
- clip =
- Input clip.
- 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.
- bool = false
Examples
AviSource("Blah.avi") TextSub(file="subtitle.ass")
#Assume clip is 1280x720, 24fps, and 3,000 frames total MaskSub(file="subtitle.ass", width=1280, height=720, length=3000)
AviSource("Blah.avi") VobSub("subtitle.sub")
Changelog
See GitHub releases page: https://github.com/pinterf/xy-VSFilter/releases
External Links
- GitHub - Source code repository (latest version from pinterf).
- GitHub - xy-VSFilter with VapourSynth interface added, based on the source of pinterf's fork
Back to External Filters ←