SubtitleEx

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Changelog: add Kai mod and StainlessS mod)
m (Requirements)
 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Subtitling}}
+
{{FilterCat5|External_filters|Plugins|Plugins_x64|Adjustment_filters|Subtitling}}
 
{{Filter3
 
{{Filter3
| [http://web.archive.org/web/20070821222318/http://mvideo.ddpp.net/eng/index.htm basilik]
+
| [http://web.archive.org/web/20070821222318/http://mvideo.ddpp.net/eng/index.htm basilik], [http://hosiken.jp/ Hosiken] {{Author/StainlessS}}
| v0.1.1
+
| v1.51
| [http://www.avisynth.nl/users/warpenterprises/files/subtitleex_5F25_dll_20040819.zip subtitleex_5F25_dll_20040819.zip]
+
| [http://www.mediafire.com/file/amek5sms7fz7csf/SubtitleEx_a25_a26_x86%2526x64_v1.51_20200311.zip/file SubtitleEx_a25_a26_x86&x64_v1.51_20200311.zip]
 
| Subtitling
 
| Subtitling
| Open source (source code N/A)
+
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
|6=}}
+
|6= [https://forum.doom9.org/showthread.php?t=178672 Doom9 Forum]}}
 
<br>
 
<br>
 
== Description ==
 
== Description ==
The SubtitleEx is an AviSynth plugin to show a text over any video clip with one function inside: SubtitleEx. It is an extension of an existing Subtitle function of the AviSynth. Many of the parameters of the SubtitleEx have the same meaning as a original [[Subtitle]] function. See [http://web.archive.org/web/20071025023938/http://mvideo.ddpp.net/eng/subtitleex_plugin.htm official documentation and examples.]
+
The SubtitleEx is an AviSynth plugin to show a text over any video clip with one function inside: SubtitleEx. It is an extension of an existing Subtitle function of the AviSynth. Many of the parameters of the SubtitleEx have the same meaning as a original [[Subtitle]] function.
  
 
<br>
 
<br>
 +
 
== Requirements ==
 
== Requirements ==
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
+
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
* Supported color formats: [[RGB32]]
+
* [x64]: [[AviSynth+]]
 +
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 +
<br>
 +
* [https://www.microsoft.com/en-us/download/details.aspx?id=26368 Microsoft Visual C++ 2008 Redistributable Package (x86 / x64)]
 +
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> is required for <tt>SubtitleEx-x86</tt>
 +
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> is required for <tt>SubtitleEx-x64</tt>
 
<br>
 
<br>
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|SubtitleEx (clip, string, int "x", int "y", int "firstframe", int "lastframe", string "font", string "effects", int "size", int "textcolor", int "halocolor") }}
+
:{{Template:FuncDef|SubtitleEx (clip, string, int "x", int "y", int "firstframe", int "lastframe", string "font", string "effects", int "size", int "textcolor", int "halocolor", int "spc", int "linemargin") }}
 
<br>
 
<br>
 
::{{Par2||clip| }}
 
::{{Par2||clip| }}
Line 24: Line 30:
 
<br>
 
<br>
 
::{{Par2||string|}}
 
::{{Par2||string|}}
:::Text - obligatory parameter; no default value; can be multiline, to split a text into lines a "|" symbol is used.
+
:::Text - obligatory parameter; no default value; can be multiline, to split a text into lines a "|" symbol is used. "||" will print a single pipe "|" character, without a new line.
 
<br>
 
<br>
 
::{{Par2|x|int|-clipWidth * 0.11}}
 
::{{Par2|x|int|-clipWidth * 0.11}}
Line 52: Line 58:
 
::::i - italic
 
::::i - italic
 
::::u - underlined
 
::::u - underlined
 +
::::o - strikeOut/strikethrough
 
::::c - centered
 
::::c - centered
 +
::::w - line breaks with "|" are disabled.
 +
::::n - no anti alias
 +
 +
:::Following letters are used for usage of different filters:
 +
::::e - emboss
 +
::::s - soft blur
 +
::::g - Gaussian blur filter
 +
::::l - Laplacian filter (edge detection)
  
  
Line 62: Line 77:
  
 
:::::inFrames,
 
:::::inFrames,
:::::outFrames),
+
:::::outFrames)
  
 
::::where
 
::::where
Line 79: Line 94:
 
:::::moveOutFrames,
 
:::::moveOutFrames,
 
:::::xPosTo,
 
:::::xPosTo,
:::::yPosTo),
+
:::::yPosTo)
  
 
::::where
 
::::where
Line 87: Line 102:
 
:::::moveOutFrames - number of frames for move-out effect
 
:::::moveOutFrames - number of frames for move-out effect
 
:::::xPosTo, yPosTo - final point after move-out
 
:::::xPosTo, yPosTo - final point after move-out
 
 
::::Following letters are used for usage of different filters:
 
 
:::::s - soft blur
 
:::::g - gaussian blur
 
:::::e - emboss filter
 
:::::l - laplacian filter (edge detection)
 
  
  
Line 109: Line 116:
  
 
:::The color values have the following format (in hex): $TTRRGGBB, where TT stands for a transparency, $00 - opaque, $FF - completely transparent; RR - red color value, GG - green color value, BB - blue color value.
 
:::The color values have the following format (in hex): $TTRRGGBB, where TT stands for a transparency, $00 - opaque, $FF - completely transparent; RR - red color value, GG - green color value, BB - blue color value.
 +
<br>
 +
::{{Par2|spc|int|0}}
 +
:::Specify the character spacing.
 +
<br>
 +
::{{Par2|linemargin|int|0}}
 +
:::Specify the line spacing.
 
<br>
 
<br>
  
Line 122: Line 135:
 
== Changelog ==
 
== Changelog ==
 
<pre>
 
<pre>
 +
Version      Date            Changes
 +
 
  v1.51        2020/03/11      - StainlessS mod
 
  v1.51        2020/03/11      - StainlessS mod
 
                               - Given version number of v1.51 - based on Kai mod
 
                               - Given version number of v1.51 - based on Kai mod
Line 131: Line 146:
 
                               - Add support for all v2.60 Std Colorspaces except YV411.
 
                               - Add support for all v2.60 Std Colorspaces except YV411.
  
  v1.0.0        2008/02/18      - Kai mod
+
  v1.00        2008/02/18      - Kai mod
 
                               - Based on the original SubtitleEx by Basilik Tournadski. Source code
 
                               - Based on the original SubtitleEx by Basilik Tournadski. Source code
 
                                 was released but no longer available. Source code for "DVTimeStampEx"  
 
                                 was released but no longer available. Source code for "DVTimeStampEx"  
Line 151: Line 166:
 
!!width="150px"| Download
 
!!width="150px"| Download
 
!!width="150px"| Mirror
 
!!width="150px"| Mirror
 +
|-
 +
!v1.51
 +
|[http://www.mediafire.com/file/amek5sms7fz7csf/SubtitleEx_a25_a26_x86%2526x64_v1.51_20200311.zip/file SubtitleEx_a25_a26_x86&x64_v1.51_20200311.zip]
 +
|[https://web.archive.org/web/20200520171749if_/https://files.videohelp.com/u/223002/SubtitleEx_a25_a26_x86_x64_v1.51_20200311.zip SubtitleEx_a25_a26_x86_x64_v1.51_20200311.zip]
 +
|-
 +
!v1.00
 +
|[http://dl.hosiken.jp/win/subexkai100.zip subexkai100.zip]
 +
|[https://web.archive.org/web/20161222195754/http://dl.hosiken.jp/win/subexkai100.zip subexkai100.zip]
 
|-
 
|-
 
!v0.1.1
 
!v0.1.1
|
+
|[http://www.avisynth.nl/users/warpenterprises/files/subtitleex_5F25_dll_20040819.zip subtitleex_5F25_dll_20040819.zip]
*[http://www.avisynth.nl/users/warpenterprises/files/subtitleex_5F25_dll_20040819.zip subtitleex_5F25_dll_20040819.zip]
+
 
|
 
|
 
|}
 
|}
 
<br>
 
<br>
 +
 
== External Links ==
 
== External Links ==
 
<br>
 
<br>

Latest revision as of 00:44, 22 May 2020

Abstract
Author basilik, Hosiken StainlessS
Version v1.51
Download SubtitleEx_a25_a26_x86&x64_v1.51_20200311.zip
Category Subtitling
License GPLv2
Discussion Doom9 Forum


Contents

[edit] Description

The SubtitleEx is an AviSynth plugin to show a text over any video clip with one function inside: SubtitleEx. It is an extension of an existing Subtitle function of the AviSynth. Many of the parameters of the SubtitleEx have the same meaning as a original Subtitle function.


[edit] Requirements


*** vcredist_x86.exe is required for SubtitleEx-x86
*** vcredist_x64.exe is required for SubtitleEx-x64


[edit] Syntax and Parameters

SubtitleEx (clip, string, int "x", int "y", int "firstframe", int "lastframe", string "font", string "effects", int "size", int "textcolor", int "halocolor", int "spc", int "linemargin")


clip   =
Input clip.


string   =
Text - obligatory parameter; no default value; can be multiline, to split a text into lines a "|" symbol is used. "||" will print a single pipe "|" character, without a new line.


int  x = -clipWidth * 0.11
int  y = -clipHeight * 0.17
Text position (default values: x = -clipWidth * 0.11, y = -clipHeight * 0.17). Following picture helps to understand how x and y to be defined:
Subtitleex textmetrics .jpg
Top left corner coordinates are (0, 0), x growth to the right, y growth down.
Value A defines vertical text position if (y >= 0) and then y = A
Value B defines vertical text position if (y < 0) and then y = -B
Value C defines horizontal text position if (x >= 0) and then x = C, text is left aligned
Value D defines horizontal text position if (x < 0) and then x = -D, text is right aligned


int  firstframe = 0
int  lastframe = -1
A range to which the text is applied (default values: firstframe = 0, lastframe = -1); if lastframe = -1 then last clip frame number is used.


string  font = "Arial"
Font name (default value: "Arial")


string  effects = "b"
Effects applied to the text.
Following control letter are used for the font and text appearance (order and position in the effects string do not matter):
b - bold
i - italic
u - underlined
o - strikeOut/strikethrough
c - centered
w - line breaks with "|" are disabled.
n - no anti alias
Following letters are used for usage of different filters:
e - emboss
s - soft blur
g - Gaussian blur filter
l - Laplacian filter (edge detection)


Dynamic effects usually have own parameters in the parentheses. Some parameters can be omitted, then they have default values (currently all of them are zeros). Following letters are used for dynamic effects:
f - fading; the effect has following parameters:
f(
inFrames,
outFrames)
where
inFrames - number of fade-in frames
outFrames - number of fade-out frames


m - motion; the effect has following parameters:
m(
moveInFrames,
xPosFrom,
yPosFrom,
moveOutFrames,
xPosTo,
yPosTo)
where
moveInFrames - number of frames for move-in effect
xPosFrom, yPosFrom - starting point of move-in movement
moveOutFrames - number of frames for move-out effect
xPosTo, yPosTo - final point after move-out


The order, in which filters letters are, is important. A filter can be applied several times and previous filter result is used for the current filter. The usage of the effects string is shown in very details in the Examples section.


int  size = 36
Size of the font.


int  textcolor = $00FFFFFF
Text color.


int  halocolor = $00000000
This parameter defines a color of letters border in most of the cases (default value: $00000000). When the emboss filter is applied the parameter defines the darken side of letters
The color values have the following format (in hex): $TTRRGGBB, where TT stands for a transparency, $00 - opaque, $FF - completely transparent; RR - red color value, GG - green color value, BB - blue color value.


int  spc = 0
Specify the character spacing.


int  linemargin = 0
Specify the line spacing.


[edit] Examples

TODO

AviSource("Blah.avi")
#SupTitleEx(TODO)

See examples section here to have a look the possibilities of the plugin.


[edit] Changelog

 Version       Date            Changes

 v1.51         2020/03/11      - StainlessS mod
                               - Given version number of v1.51 - based on Kai mod
                               - Made output same as original SubtitleEx for y=0 and Y=-1. 
                                 (Y=0, Baseline of first line of text is at YCoord 0, Y=-1, 
                                  BaseLine of Last line of text is at YCoord Height-1).
                               - Where "|" inserts a NewLine in text, 
                                 "||" will now print a single Pipe "|" character, without NewLine.
                               - Add support for all v2.60 Std Colorspaces except YV411.

 v1.00         2008/02/18      - Kai mod
                               - Based on the original SubtitleEx by Basilik Tournadski. Source code
                                 was released but no longer available. Source code for "DVTimeStampEx" 
                                 was available and it incorporates SubTitleEx's character display engine,
                                 which was used to rewrite this plugin.
                               - In addition, Japanese characters are now correctly displayed.
                               - The ability to set line breaks and line spacing has been added.

 v0.1.1        2004/09/12      - Latest release by Basilik Tournadski.

 v0.1.0        2004/05/24      - Initial release by Basilik Tournadski.


[edit] Archived Downloads

Version Download Mirror
v1.51 SubtitleEx_a25_a26_x86&x64_v1.51_20200311.zip SubtitleEx_a25_a26_x86_x64_v1.51_20200311.zip
v1.00 subexkai100.zip subexkai100.zip
v0.1.1 subtitleex_5F25_dll_20040819.zip


[edit] External Links




Back to External Filters

Personal tools