Log in

View Full Version : how do you improve video with filters?


king22491
19th January 2006, 11:21
Hi

im new to the whole "writing your own script" procedure for encoding. I was wondering what kind of filters i can add to my video to get a better end result (after encoding). Also i would like to know how i can intergrate these filters in my script.

This is a script created by gordian knot. I would like to know where i put these filters which someone might suggest.

# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("P:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("P:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")

# SOURCE
mpeg2source("P:\Xvid encoding\There's Something About Paulie.d2v")

# TRIM
#trim(startframe,endframe)

# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)

# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)

# DEINTERLACING (2)
KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)

# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()

# CROPPING
crop(10,4,696,568)

# SUBTITLES
#VobSub("FileName")

# RESIZING
LanczosResize(512,384)

# DENOISING: choose one combination (or none)
Undot()

# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)

# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)

# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(10,15)

# BORDERS
#AddBorders(left,top,right,bottom)

# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)

# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)

ive been told creating your own scripts gives better results. so id like to know as much as i can :)

thanks in advance :thanks:

onesoul
19th January 2006, 18:45
Something for you to try:

blindpp and deblock which are integrated in dgdecode:
mpeg2source("P:\Xvid encoding\There's Something About Paulie.d2v", cpu2="ooooxx") #blindpp for deringing only, blindpp can be called with mpeg2source and outside
deblock()

Some noisier sources, you could try vaguedenoiser and DctFilter(1,1,1,1,1,1,.5,0)

king22491
20th January 2006, 01:36
just a question. im new to avisynth. do you recommend any websites or documents to help write my own scripts. how did you start??

Scintilla
20th January 2006, 03:13
just a question. im new to avisynth. do you recommend any websites or documents to help write my own scripts. how did you start??
I would personally recommend the AVISynth suggestions contained in the various video-related parts of Ermac and Absolute Destiny's Guide to All Things Audio and Video (http://www.animemusicvideos.org/guides/avtech), especially on the AVISynth postprocessing page (http://www.animemusicvideos.org/guides/avtech/avspostqual.html). That's basically where I first learned all about the various filters.

king22491
20th January 2006, 06:00
i have a problem with creating an avs script.

the instructions say

Making AVISynth Files

First I'll create an AVS file using Notepad - these are just text files containing a few commends. The text files have the extension .avs so you can then run these in programs and it will appear as footage. OK, make a .avs text document. For those who don't understand this part, what I do is in windows I right-click, choose New then "New Text Document". This should create a file called "New Text Document.txt". If you do not see the TXT at the end, then you need to go to Tools->Folder Options in the Explorer menu and turn off "Hide File Extensions for Known Types" under the View tab.

When you've done that you then rename this blank file to blahblah.avs, then open it in notepad. I'll name mine "Believe.avs".

Now within this text file I'll put the following lines:

DirectShowSource("D:\believe.mpg")
BicubicResize(320,240)

Then I can open the file in Windows Media Player, and presto! The video is now playing back in 320x240 resolution and everyone's back to normal. Neat, huh? So how did I do it?

this is from http://www.animemusicvideos.org/guides/avtech/avisyntha.html

then when i opened the avs file it opened windows media player and i get this error. The source is a vob file

Evaluate:Unrecognized exception

Pookie
20th January 2006, 06:50
That can happen for a number of reasons- your mpeg2 codec or version of AviSynth are two things to check. A lot of bugs get worked out in the beta testing of all software, so make sure you're running a standard (non beta) version of your decoder and AviSynth for starters. If that doesn't work, the next thing would be to ensure you have DirectX 9.0c installed.

king22491
20th January 2006, 09:32
ill get the latest version (non beta) and post my results

Scintilla
20th January 2006, 09:36
You shouldn't be using DirectShowSource to serve VOB files, either; you have to index them first with DGIndex and then serve those with the MPEG2Source function found in the DGDecode package. There's a section in the A/V guide that explains that process, too (under the section that covers working with DVD footage), but I'm sure there's also a tutorial here on Doom9 somewhere...

king22491
21st January 2006, 08:48
ok thanks :)