Log in

View Full Version : Need some advice on AviSynth


Satlover
24th February 2004, 17:58
Hi,

I have not used AviSynth for nearly a year so I am a bit outdated on what is new. So far I have updated some stuff that I have found on the forum. Here is what I am using:
AviSynth 2.53, MPEG2Dec3.dll V1.10 and VirtualDubmod 1.5.10.1 (2424), XviD-1.0-RC2-07022004.exe The script below is what I have been using. What I want really is a script that I can use as default for all rips.

Any comments or improvements on the script I am using? I want to keep the sharpening filer but there might be a better one.

Thanks

LoadPlugin("C:\Program Files\DVD\AviSynth plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\UnFilter.dll")
mpeg2source("F:\DVD\Projects\*****\***.d2v")
lumafilter(-2,1)
UnFilter(+40,+40)
Crop(0,10,-0,-10)
LanczosResize(720,400)
#LumaFilter(1, 1.02)

iago
24th February 2004, 21:07
Satlover,

First of all, VirtualDubMod 1.5.4.1 (2066) is the currently recommended version to encode with XviD (RC2). The following versions are considered to be a bit buggy and are likely to cause problems with XviD encoding.

Second, you might upgrade to Avisynth 2.54, which is quite stable imo.

Third, I would suggest using undot() as a default at the end of all your scripts. I have never seen it do any harm.

Next, I would definitely drop unfilter with such high values -or at least use it more reasonably with values such as (+5,+5) or something- since those values in your script would definitely sabotage the compressibility of the source. Instead, for a sharper picture, you might also try quarterpel and/or a high bitrate matrix with XviD.

Finally, lumafilter might also be dropped imo, unless it really serves a purpose.

regards,
iago

Satlover
24th February 2004, 22:57
Cheers Iago,

Thanks for taking the time and for your recomendations. I also see your point about the unfilter, allthough I forgot to mention that I normally go for a final size of 2.2GB to get the best quality possible, bit that might be a big mistake if I dont use the higher bitrate matrixes, to be honest I dont any experience using the matrixes in Xvid.

regards
Satlover

FuPP
24th February 2004, 23:29
if you want to sharpen picture keeping a good compressibility ratio, you also could have a look to HybridFuPP() (see corresponding thread (http://forum.doom9.org/showthread.php?threadid=70734))

FuPP

Satlover
25th February 2004, 13:42
Thanks allot FuPP,

The source looks good, will see what the final conversion looks like :-)

LoadPlugin("C:\Program Files\DVD\AviSynth plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\UnFilter.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\Undot.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\FluxSmooth.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\MSharpen.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\MaskTools.dll")
mpeg2source("F:\DVD\Projects\****\****d2v")
Crop(2,10,-0,-10,align=true)
hybridFupp(720,400, preset="high")
undot()

FuPP
25th February 2004, 14:06
Though the Undot you add will not hurt, it is already done in HybridFuPP ;)

Didée
25th February 2004, 15:31
Originally posted by FuPP
if you want to sharpen picture keeping a good compressibility ratio, you also could have a look to HybridFuPP() (see corresponding thread (http://forum.doom9.org/showthread.php?threadid=70734))

FuPP
**cough** (http://forum.doom9.org/showthread.php?s=&threadid=70916&perpage=20&pagenumber=2)

The syrup just doesn't help ;)

- Didée

FuPP
25th February 2004, 18:57
Didée... :D

Satlover
26th February 2004, 12:30
I did some comparion between my orginal script and HybridFuPP() I cant see any difference in quality, but there is a huge performance drop with HybridFuPP about 50% slower. I suppose HybridFuPP would be good on 1 cd conversions but for high bitrate it does not seem to make any difference.

thanks

Didée
26th February 2004, 13:09
Satlover,

if you think HybridFuPP is slow, then you didn't follow my **cough**!

In fact, HybridFuPP does good work, and it does that in a *very reasonable* processing time. Everything is relative, as usual.

BUT since you seem to insist on strong-sharpened video [unfilter(+40,+40) - wohoo! -- 25% more "perceptual" sharpness will increase bitrate by 100%!!], I'd suggest two things to try:

1. "Fast" version, although much slower than you initial script, too:

LanczosResize(2*ouputsize)
SharpenEvenMuchMore()
Lanczosresize(outputsize) # everything in pseudo-code here

This way, you can achieve the same amount of sharpening, but in a much "finer" way. Pre-existant artefacts won't be enhanced by so much as your initial script will do, and especially the risk of getting or enhancing those evil halos around edges will be noticeably reduced.


2. Slow version:

Look behind the **cough** above (and get an all-new understanding of the word "slow"!)

I'm pretty much sure you will not use it. You will want to kill me for the speed. Probably you will call the madhouse, and point them to me ... perhaps I'll even end up with some nice concrete shoes, :) I'll take the risk. Since, after all, it's interesting to see what can be done.

- Didée

Satlover
26th February 2004, 13:37
Didée,

I bow my head :D

Bitrate is not really a problem for me but I do like a sharp picture i find MPEG2 to be a bit too soft and after conversion it is even softer thats why the unfilter(+40,+40) but it might be over doing it a bit **cough**!

I am pretty much interested in your "Fast" version, what is the SharpenEvenMuchMore() :confused:

LanczosResize(2*ouputsize)
SharpenEvenMuchMore()
Lanczosresize(outputsize) # everything in pseudo-code here

Didée
26th February 2004, 14:35
SharpenEvenMuchMore() <==> sharpen() or unfilter() with even higher values than you would use normally.

As I said: Pseudo-code ;)

- Didée

Satlover
26th February 2004, 16:26
Hey Thanks

Didée, I will try this but could you tell me what it is actually doing? LanczosResize(2*720,428)


LoadPlugin("C:\Program Files\DVD\AviSynth plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\UnFilter.dll")
LoadPlugin("C:\Program Files\DVD\AviSynth plugins\Undot.dll")
mpeg2source("F:\DVD\Projects\****\****.d2v")
Crop(2,74,-0,-74,align=true)
LanczosResize(2*720,428)
UnFilter(+60,+60)
LanczosResize(720,428)
undot()

Soulhunter
26th February 2004, 19:45
Originally posted by Satlover
LanczosResize(2*720,428)
-> LanczosResize(2*720,2*428)

Bye