Log in

View Full Version : AVST File


nnigam
21st November 2005, 16:50
Some time ago, I found a sample avst file that I used to open my files with. Since my pc crashed, I have lost the format of that. I have the following that I would like to make into an AVST file

Also, is there any way to add the parameters to the avst file as well or can the extracted from the clip. I searched the docs but am unable to find the properties to use to get them. Maybe I am looking in the wrong place. I like the idea of being able to change parameters in one place, and the script works, but would like to add them as parameters so that the same script could be used for any thing.

I am mainly processing my hd video captures to avi of my favorite shows when I am not able to watch them directly.


LoadPlugin("D:\prog\hdtools\dgindex\dgdecode.dll")
LoadPlugin("D:\prog\hdtools\autocrop\AutoCrop.dll")
LoadPlugin("D:\prog\hdtools\fdecim\fdecimate.dll")
LoadPlugin("D:\prog\hdtools\tivtc\tivtc.dll")
LoadPlugin("D:\prog\hdtools\dlace1\SmoothDeinterlacer.dll")
LoadPlugin("D:\prog\hdtools\TDeintv1b4\TDeint.dll")
LoadPlugin("D:\prog\hdtools\leakkerneldeint_050118\LeakKernelDeint.dll")

MPEG2Source(".\t1.d2v",cpu=0)
# If using TIVTC
#tfm(d2v=".\t1.d2v")

# Vars
# vInfo = Information 1=Pre, 2=Post
# vAR = Aspect Ration 1=16:9, 2=4:3
# sSize = Source size 1=1280x720, 2=1920x1088, 3=1920x1080, 4=640x480
# tSize = Target size 1=768x432, 2=852x480, 3=960,544 4=704x480
# 5=640x480 6=720x480, 7=720x576, 8=EnLarge
# tfps = Target Frame rate
# tIVTC = to IVTC or not 1=yes
# sInt = Smooth De Inerlace 1=yes
# tDInt = TDInterlace 1=yes
# gFlds = Field Order 1=BFF, 2=TFF For Testing only
# fOrd = Field Order 0=BFF, 1=TFF
# tCide = Telecide 1=test, 2=decimate, 3=process
# fDec = FDecimate 1=test, threshold=process
# lkDint= Leak Kerneal DeInt 1=TFF, 2=BFF
# vbrite= Percent to increase brightness
# Decim = >1 to decimate by

vInfo = 0 # 1=Pre, 2=Post
vAR = 1 # 1=16:9, 2=4:3
sSize = 1 # 1=1280x720, 2=1920x1088, 3=1920x1080
tSize = 1 # 1=768x432, 2=852x480, 3=960,544
tfps = 23.976 # Output Frame Rate
tIVTC = 0 # 1=yes to IVTC
sInt = 0 # 1=yes to SmoothDeInterlace
tDInt = 0 # 1=yes to TDInterlace 2
GfLDS = 0 # To check 1=BFF 2=TFF set below to process
fOrd = 2 # 0=BFF, 1=TFF
tCide = 0 # 1 to check, 2 to test, 3 to process
fDec = 0 # 1=test, threshold=process
lkDint= 0 # 1 to process, 0=no #1 for TFF, 0 for BFF
vBrite= 0 # Percent Brightness Increase by Tweak
Decim = 0 # >1 to decimate

# Do not need both fdecimate and tdecimate
#fDec > 0 ? tIVTC = 0 : nop() # Give Error ? Need to find why and fix
# No order check when processing
#fOrd < 2 ? gFlds = 0 : nop() # Give Error ? Need to find why and fix

tIVTC == 1 ? tfm(d2v=".\t1.d2v") : nop()
vInfo == 1 ? Info() : nop()

#UnDot() # Uncomment to remove mosquito noise

# BFF means order=0, TFF means 1
gFLDS == 1 ? AssumeBFF().SeparateFields() : nop()
gFLDS == 2 ? AssumeTFF().SeparateFields() : nop()

# First Crop Video to remove borders/noise etc
#AutoCrop(1)
sSize == 1 && vAR == 2 ? Crop(160,0,960,0) : nop() #720p source
sSize == 2 && vAR == 2 ? Crop(240,4,1440,-4) : nop() #1088i source
sSize == 3 && vAR == 2 ? Crop(240,0,1440,0) : nop() #1080i source
sSize == 2 && vAR == 1 ? Crop(0,4,0,-4) : nop() #1088i at 16x9 source

# De Interlace if needed
sInt == 1 ? SmoothDeinterlace() : nop()
tDInt == 1 ? TDeint(mode=1) : nop()
tIVTC == 1 ? TDecimate() : nop()
lkDint == 1 ? LeakKernelDeint(order=ford) : nop()

# Change FPS if needed
#ConvertFPS(50) # Preferred method can slow max 33% Use mode par if more needed
#ChangeFPS(50) # No speed change, audio in synch similar to convertfps
#AssumeFPS(50) # Will change video speed audio synch errors

tCide == 1 ? Telecide(order=fOrd, guide=1, post=0, vthresh=30, show=true) : nop()
tCide == 2 ? Telecide(order=fOrd, guide=1, post=2, vthresh=30, show=true) : nop()
tCide == 3 ? Telecide(order=fOrd, guide=1, post=2, vthresh=30) : nop()


# FDecimate will remove duplicate frames
fDec == 1 ? FDecimate(metrics=true) : nop()
fDec > 1 ? FDecimate(rate=tfps, threshold=fDec) : nop()
Decim > 1 ? Decimate(cycle=Decim) : nop()

# Resise Output for desired format
#BicubicResize(720,468)

#sSize == 4 ? BicubicResize(640,480,0,0.5) : nop()
#vAR == 2 && tSize < 4 ? BicubicResize(640,480,0,0.5) : nop()
tSize == 1 ? BicubicResize(768,432,0,0.5) : nop()
tSize == 2 ? BicubicResize(852,480,0,0.5) : nop()
tSize == 3 ? BicubicResize(960,544,0,0.5) : nop()
tSize == 4 ? BicubicResize(704,480,0,0.5) : nop()
sSize < 4 && tSize == 5 ? BicubicResize(640,480,0,0.5) : nop()
tSize == 6 ? BicubicResize(720,480,0,0.5) : nop()
tSize == 7 ? BicubicResize(720,576,0,0.5) : nop()
tSize == 8 ? Lanczos4Resize(720,576) : nop() # For Enlarging

vInfo == 2 ? Info() : nop()

return last