PDA

View Full Version : Help with AVS script (dvd to mkv)


chandragupta
10th September 2007, 05:14
i'm converting lord of the rings- rotk to mkv.(x264&ND-AAC)
the final desired size is 1669MB
heres what my avs script looks like
-----------------------------------------------------
mpeg2source("D:\Proj\lotr.d2v")

RemoveGrain(mode=5)

crop(2,62,-2,-62)
lanczos4resize(704,288)

undot()
DeGrainMedian(limitY=5,limitUV=5,mode=3)
Convolution3d (preset="moviehQ")
FluxSmoothST(7,7)
VagueDenoiser(threshold=2.0, method=3, nsteps=6, chromaT=2.0)
-------------------------------------------------------
please suggest any changes to aid compressibility or any changes otherwise.
vaguedenoiser is too slow....are there any replacements for it... it can't use fft3dgpu...
i have P4 3.0Ghz HT, 1GB RAM, Onboard Graphics :mad:(Intel 915)

thanks!

Dark Shikari
10th September 2007, 07:28
You can use FFT3DFilter if FFT3DGPU won't work.

TheRyuu
10th September 2007, 08:50
I'm seeing like 5 denoisers in that script. Most you probably need is two.

I'd replace lanczos4resize with spline36resize to cut down on ringing.

Also, I'd try and use fft3dfilter.

All scripts will vary based on the source and how you want it to look. Going very basic though I'd come up with this (I have no idea how the original movie looks though...)

#plugins
LoadPlugin(...) #not needed if plugins/scripts are in avisynth/plugin folder, they will be autoloaded then

#import
import(...)

#source
mpeg2source("D:\Proj\lotr.d2v", info=3) #I think it's info=3 for colormatrix info... I forgot)

#deinterlacing
#you probably set dgindex to honor pulldown flags. Thats fine if it's soft telecined and it works for you, if not:
tfm(d2v="D:\Proj\lotr.d2v").tdecimate()

#colormatrix
colormatrix(hints=true)

#resize/crop
crop(2,62,-2,-62)
spline36Resize(704,288)

#filters
#removegrain(mode=2) #only activate if you have like mosquito netting or something like that
fft3dfilter(sigma=2, bt=4, ncpu=2) #you have HT, so why not use 2 cpu's :P
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, smode=4, strength=125, overshoot=1, undershoot=1) #or if you don't like LSF...

#or...
seesaw(denoised=fft3dfilter()) #drop LSF and fft3dfilter from the clip since it's now in seesaw, taken from foxyshadis post

I'm no expert, those are just settings that I personally like. Feel free to change anything.

chandragupta
10th September 2007, 09:52
You can use FFT3DFilter if FFT3DGPU won't work.

yes, but even that is more or less as fast (slow) as vaguedenoiser.
can u tell me one that is a little faster and does the same job or nearabout??

i tried LRemoveDust_YV12(clmode=17,limit=2)
it is fast but removes more detail.. and the other modes in it remove less(2and5) and others are less stable...i hear!

thanks!

chandragupta
10th September 2007, 10:09
I'm seeing like 5 denoisers in that script. Most you probably need is two.

I'd replace lanczos4resize with spline36resize to cut down on ringing.

Also, I'd try and use fft3dfilter.


hi, i thought using lesser settings and more denoisers is better... as some that i have used give fast outputs...please correct me

about resizing.... when is it better to use the different resizers...
like is spline36 better than lanczos for downsampling??
and when is lanczos better??(as some of the automated software....gordian knot , automkv use lanczos by default)

fft3dfilter smooths out the image too much for my liking...and is very slow too(at least on my pc)...are there faster alternatives??

thanks for the reply!

chandragupta
10th September 2007, 10:12
#
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, smode=4, strength=125, overshoot=1, undershoot=1) #or if you don't like LSF...

#or...
seesaw(denoised=fft3dfilter()) #drop LSF and fft3dfilter from the clip since it's now in seesaw, taken from foxyshadis post



does sharpening reduce compressibility?? :thanks:

TheRyuu
10th September 2007, 12:10
does sharpening reduce compressibility?? :thanks:

Yes.
But with your file size I think you should be fine.

I'd at least want to use some sharpening. (strength value in LSF, and sstr value in SeeSaw)