-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathd2v_template.avs
34 lines (28 loc) · 924 Bytes
/
d2v_template.avs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Default Avisynth script
# For syntax see https://github.com/labyrinthofdreams/templet
# Available variables: source_path (string), avs_plugins (string),
# deinterlace (boolean), resize (boolean), resize.width/resize.height (int),
# crop (boolean), crop.left/crop.top/crop.right/crop.bottom (int)
SetMemoryMax(128)
PathToVideo = "{$source_path}"
AvisynthPluginsDir = "{$avs_plugins}"
LoadPlugin(AvisynthPluginsDir + "/DGDecode.dll")
LoadPlugin(AvisynthPluginsDir + "/TIVTC.dll")
LoadPlugin(AvisynthPluginsDir + "/yadifmod.dll")
LoadPlugin(AvisynthPluginsDir + "/nnedi3.dll")
MPEG2Source(PathToVideo)
{% if ivtc %}
TFM().TDecimate()
{% endif %}
{% if deinterlace %}
YadifMod(edeint=nnedi3())
{% endif %}
{% if resize %}
# Resize
Spline36Resize({$resize.width},{$resize.height})
{% endif %}
{% if crop %}
# Crop
Crop({$crop.left},{$crop.top},-{$crop.right},-{$crop.bottom})
{% endif %}
ConvertToRGB32(matrix="Rec601")