PDA

View Full Version : script usage...really stupid question


EuropeanMan
20th March 2007, 00:10
HERE is my complete script:

tweak(sat=1.1,cont=0.9,bright=1.0)
vaguedenoiser()
temporalcleaner() <---here i was recommended later to put (5,10) ?
limitedsharpenfaster()

I used these filters to get the desired results below.
When I plug these into DVD-RB...

Do i need to put in lines to load them?
ie.
LoadPlugin(vaguedenoiser)?

Yes, stupid question...but what is the correct way to write the WHOLE script? Thanks in advance...that was my question.

Oh yes, this is what I have brought to you...screenshots of original dvd9 on the left, and avi script editor on the right SS...using those filters I mentioned in THIS post. I was too stupid and forgot to load them in DVD-RB...

last question, are the above filters the best possible i can use to get the desired output as you see below...perhaps there is a better solution the experts can come up with....thanks
http://i167.photobucket.com/albums/u148/FarooqBhai/gadarbeforeafter2.jpg

neuron2
20th March 2007, 00:32
last question, are the above filters the best possible That's easy to answer. See number 12 here:

http://forum.doom9.org/forum-rules.htm

EuropeanMan
20th March 2007, 02:30
Okay fine...I read it...sorry.

What are some of the better possibilities of filter combinations to produce the end result in SS#2...? Just some suggestions would be fine. Thanks. I realise people do things differently... would love a variety of opinions. Thanks.

My MAIN question still remains...when I put those filters in an AVI Synth script dialogue box...must I also write lines to say LoadScript? yes or no? I have seen elsewhere people having those lines...that's why I ask...

AND IF those lines are written does that automatically speed up the time? or no...

Pookie
20th March 2007, 02:53
That's easy to answer. See number 12 here:

http://forum.doom9.org/forum-rules.htm

LOL :D

EuropeanMan - It looks pretty good, but his skin looks a little "baked". Maybe remove:

vaguedenoiser()
temporalcleaner()

Replace with:

fft3dfilter(sigma=1,plane=0,degrid=1.0)
limitedsharpenfaster(smode=4)

EuropeanMan
20th March 2007, 03:23
Thanks for that suggestion...will run it through AVS Script preview window.

Ok, I don't know if YOU specifically use DVD-RB or not...but those 2 lines by themselves...would you insert ONLY those 2 lines, or something like the following. {I have been googling all over for a proper way to write AVIsynth scripts...and they say there are 2 ways...which way a process works faster I have no idea}

The ONE way I am questioning is this: (yes it might be wrong, but you will get the drift)

LoadPlugin(Avisynth2.5.6/fft3dfilter.dll)
LoadPlugin(..../lsf.dll...)
fft3dfilter(....)
lsf(...)

so instead of 2 lines only, i have 4 lines...does the Loading speed up encoding in DVD-RB pro, i have no idea...but really I want to know the correct way to put it into DVD-RB...that's all.

For whatever reason, MY 4 lines shown in OP really messed up the encoding and end-result was downsizing to 3.6GB instead of what I wanted...4.35GB. {now i have figured out how to put a line in rebuilder.ini for CCETARGETSECTOR sizing} so i hope that isn't a problem anymore.

I appreciate YOUR time very much...thanks.

EDIT: 3 LINES...I guess I am keeping my tweak filter line:)

Pookie
20th March 2007, 03:53
I don't use DVDRB anymore (although it was one of the 2 apps that got me interested in Avisynth - AutoGK was the other). Can't help you with the syntax for that program, although I'm certain it has been discussed many times in the DVDRB forum.

EuropeanMan
20th March 2007, 03:59
3 lines though right? with my tweak(...) filter...

Serbianboss
20th March 2007, 09:22
Sorry for maybe offtopic, just one question:

If we in script have noise reduction filters, sharpen filter, where to put Tweak filter(if we want to correct color) ?

EuropeanMan
20th March 2007, 17:03
Tweak comes first, then noise then sharpen.

I'm hoping Pookie or anyone else can confirm post #7...please.
Also do I need to write "LoadPlugin" lines in the script as well? thanks

Pookie
20th March 2007, 17:18
Does it look better putting tweak before the other filters?

Then put it on top

Does it look better putting tweak after the other filters?

Then put it on the bottom

Your eyes are the only thing that matters. I'll put tweak after the other filters, because it usually requires weaker settings at the end. It is more controllable.

So Europeanman, the only rule is to put the noise reduction filter above the sharpening one.


Tweak()
FFt3dfilter()
LSF()

or

FFt3dfilter()
LSF()
Tweak()

EuropeanMan
20th March 2007, 17:23
Will look at that tonite...

And what about 'loadplugin' lines? Must I also include that in script as well? Thanks so much for your help...

I love you! j/k...but you know what I mean.

BTW my mum gave me that nickname when i was little...pookie.

{I'm working right now at my job...it's why I needed these answers quickly...so I know what to do when I get home...have to plug all this into DVD-RB...can't test filters right now because megui is running, and it's taking alot of resources from CPU already}
oh yes...similar posting in DVD-RB forum here as well from me...you might want to check that out!

Again thank YOU so much - Farooq

Pookie
20th March 2007, 17:45
LoadPlugin is only required if your .dll isn't in the

C:\Program Files\AviSynth 2.5\plugins\

folder (or wherever you've set the plugins location in the Windows registry)

EuropeanMan
20th March 2007, 18:02
Problem Pookie

1st complete script from .avs file
-----
DGDecode_mpeg2source

("C:\GADAR_DOLBY_SCN\VIDEO_TS\VTS_01_1.d2v",cpu=4,info=3)
ColorMatrix(hints=true)
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2

(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
crop( 6, 70, -6, -74)

fft3dfilter(sigma=1,plane=0,degrid=1.0)
limitedsharpenfaster(smode=4)
tweak(sat=1.1,cont=0.9,bright=1.0)
------------
screenshots BEFORE [original dvd9] & AFTER [previewing avs in MPC] (i put tweak both before & after the other 2 filters, SS had same result)
http://i167.photobucket.com/albums/u148/FarooqBhai/dvd9.jpg
http://i167.photobucket.com/albums/u148/FarooqBhai/newscript.jpg

EuropeanMan
20th March 2007, 18:08
This may be unrelated...but I am using Avsynth 2.5.7.

In my other thread over in the DVD-RB forum...re: undersizing when I used the original 4 filters in DVDRB...they (forum people) said maybe I should go back & reinstall avisynth 2.5.6.

So...is THAT an issue here as well? because my other thread addressed "undersizing" output cce dvd5 files

Blue_MiSfit
20th March 2007, 19:19
Try cropping to a mod8 (at least) or mod16 resolution.

~MiSfit

EuropeanMan
20th March 2007, 19:23
Try cropping to a mod8 (at least) or mod16 resolution.

~MiSfit

huh?

I have NO idea what you're talking about...so sorry.

I only presented the above screenshots in contrast to the ones way up there...switched filters...and now the colours bleed sideways...as you see in 2nd set...

How will mod8 change that? I have NO idea...sorry, I am very new to these filters...and scripts...i'm learning on the fly.

Pookie
20th March 2007, 20:09
Your dimensions should always be divisible by 8, preferably 16.

720 width / 16 = 45 = Good

718 width /16 = 44.875 = Bad

704 width /16 = 44 = Good
-------------
480 height /16 = 30 = Good

474 height /16 = 29.625 = Bad

EuropeanMan
20th March 2007, 22:05
ORIGINAL DVD9 UNTOUCHED BELOW:
http://i167.photobucket.com/albums/u148/FarooqBhai/dvd9-1.jpg

FILTER COMBO #1 BELOW
DGDecode_mpeg2source("C:\GADAR_DOLBY_SCN\VIDEO_TS\VTS_01_1.d2v",cpu=4,info=3)
ColorMatrix(hints=true)
#deinterlace
crop( 6, 70, -6, -74)

Lanczos4Resize(640,352) # Lanczos4 (Sharp)
tweak(sat=1.1,cont=0.9,bright=1.0)
fft3dfilter(sigma=1,plane=0,degrid=1.0)
limitedsharpenfaster(smode=4)
http://i167.photobucket.com/albums/u148/FarooqBhai/4filters.jpg

FILTER COMBO #2 BELOW
fft3dfilter(sigma=1,plane=0,degrid=1.0)
limitedsharpenfaster(smode=4)
http://i167.photobucket.com/albums/u148/FarooqBhai/3filters.jpg

FILTER COMBO #3 BELOW
tweak(sat=1.1,cont=0.9,bright=1.0)
vaguedenoiser()
temporalcleaner(5,10)
limitedsharpenfaster()
http://i167.photobucket.com/albums/u148/FarooqBhai/5filters.jpg

FILTER COMBO #4 BELOW
tweak(sat=1.1,cont=0.9,bright=1.0)
limitedsharpenfaster()
http://i167.photobucket.com/albums/u148/FarooqBhai/3filters2.jpg

{Sorry, forgot to put the Lanczos line in the script...that's why the others in post above were messed up.}

PLEASE ADVISE as you can...I will take your suggestions. I have my own idea which of these combinations is best. I guess I would also need opinion based on speed as well ONLY IN CASE, there is no clear-cut answer :) Thank you so much everyone.

foxyshadis
21st March 2007, 07:33
Something you should try is encoding a 1-2 minute segment of each script to the bitrate or quality level you want, then look at the output and the output's size. This will give you a better idea of how to adjust it, whether you need to adjust your idea of how large it should be, or what you might want to save to do on playback. Of course, if you're wavering on different methods of encoding, too, then you end up with permutations of encodings and ouch. (Although a single first pass might be all you need with multiple second passes.)

Since you've explored many of the possibilities, we can't tell you what the best option is, that's entirely up to you to decide. ;)