Log in

View Full Version : Simple script please


Holomatrix
31st October 2006, 14:25
Converting an AVI to SVCD and have been away from the scene for a while. I used to use Deen.Undot but with all the new filters now, just looking for a quick better alternative. Looking to get rid of the noise, clean it up a bit and sharpen. Any suggestions?
Thanks

Pookie
31st October 2006, 22:36
SeeSaw -


http://forum.doom9.org/showthread.php?t=104701&highlight=SeeSaw

Holomatrix
31st October 2006, 23:36
Ok, I'll try it. I could use;
a= last

b=a.Deen()

SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16)

Correct? What resizer should I use with it?
Would this be good for any amount of compression I'm using?

Pookie
1st November 2006, 02:51
That's up to you. I'm not a big Deen fan myself, mainly because it is so strong. I would try


a= last

b=a.RemoveGrain(Mode=17)#Try 11,25,4,1 as well

SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16)



That'll run pretty fast. DegrainMedian(mode=1) is a good combination with SeeSaw as well - slightly slower, but nice results.
There are a ton more suggested combinations in the thread.

As far as a resizer, BicubicResize(480,480) should be OK for SVCD, especially if your source is larger than 480x480.

Holomatrix
1st November 2006, 03:46
Ok, thanks for the info

Holomatrix
5th November 2006, 20:14
I like how the second pic in this thread of the mountain and water is clean :) http://forum.doom9.org/showthread.php?t=104701&page=2&highlight=SeeSaw
without mcnr. What is lsf and mcnr? That thread has to many options for me to try do you think the script you posted above is the best to use? Also, is it well rounded for action flicks and Anime?

Pookie
5th November 2006, 20:32
Holomatrix - sounds like you're overly complicating things. Post a 10-15 second sample of your video and we'll make some suggestions. RapidShare.com will host the clip for free. MCNR is a completely different function, used as a denoiser for very grainy sources.

Holomatrix
5th November 2006, 20:41
Ok, sorry, most of my suff is from DVD

Holomatrix
5th November 2006, 20:49
Would this be a valid script?
[AVISYNTH_BicubicResize]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=Import(!SeeSaw.avs)
2=a=last
3=b=a.RemoveGrain(Mode=1)
4=SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16))
5=AddBorders(^BorderLeft,^BorderTop,^BorderRight,^BorderBottom)
^b_value=0.0
^c_value=0.6
!SeeSaw.avs=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SeeSaw\SeeSaw.avs

Pookie
5th November 2006, 21:47
Post a clip of your source file and we'll help you write the script. You can use an app like Mpeg2Cut2 to copy a 15 second segment. http://www.geocities.com/rocketjet4/ Or if your source is AVI, use VirtualDub, set it to Video--->DirectStreamCopy, and snag a chunk for posting.

If you want closer to MCNR results, you'll have to be willing to deal with some slow encoding speeds. It takes a lot of CPU power to do motion compensated denosing.

You'll need MVtools http://avisynth.org.ru/mvtools/mvtools-v1.5.8.zip

backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1)
a=last.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=1)

b=a.removegrain(mode=25)

SeeSaw( a,b, NRlimit=5, NRlimit2=6, Sstr=1.5, Spower=7, Sdamplo=2, Szp=16)

Holomatrix
6th November 2006, 00:09
Amime clip of Monster House 10meg - http://w11.easy-share.com/671000.html


Action clip of MI3 10meg - http://w10.easy-share.com/671008.html

Pookie
6th November 2006, 04:14
DegrainMedian works well on both of them, although the SeeSaw settings are slightly different. A shame you're reducing to SVCD size, since some of the magic will be destroyed at the lower resolution and bitrate. I pushed the settings more to compensate for that a bit, you'll see the two Xvids linked at the bottom will be a tad on the strong side, they'll look fine when you're at 480x480 and encoded with Mpeg2. I don't know DVD2SVCD, but I hope you can run SeeSaw before you have to downsize

Download DegrainMedian http://avisynth.org.ru/degrain/degrainmedian.html

Mon_House:

a=last
b=a.degrainmedian(mode=1)
SeeSaw(a,b, NRlimit=7, NRlimit2=8, Sstr=1.5, Spower=8, Sdamplo=6, Szp=16)

MI_3

a=last
b=a.degrainmedian(mode=1)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Spower=7, Sdamplo=6, Szp=16)

5.5MB Download

http://w10.easy-share.com/671179.html

Holomatrix
6th November 2006, 04:32
Why would I run SeeSaw before I downsize? I'm actually resizing to CVD 352X480 to alocate bitrate better.

Pookie
6th November 2006, 04:43
It isn't absolutely necessary, but it gives the function more pixels to work with, resulting in a cleaner image when you downsize.

The advantage to SeeSawing after you downsize is the speed increase.

Here are the two files in 480 res and mpeg encoded to 2400 bitrate

http://w11.easy-share.com/671196.html

Holomatrix
6th November 2006, 04:50
I'm getting an 'Invalid floating point' error in DVD2SVCD. When I have more time to troubleshoot I'll try it.
I thought usually downsizing first is what adds crap to the file so then needs to be cleaned. not sure if I need to 'clean' the DVD before hand.

Thanks

Pookie
6th November 2006, 07:20
Google:

+DVD2SVCD "Invalid floating point"

Holomatrix
6th November 2006, 20:55
What version of AVIsynth should I be using now?

beviet
14th February 2007, 16:12
That's up to you. I'm not a big Deen fan myself, mainly because it is so strong. I would try


a= last

b=a.RemoveGrain(Mode=17)#Try 11,25,4,1 as well

SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16)



That'll run pretty fast. DegrainMedian(mode=1) is a good combination with SeeSaw as well - slightly slower, but nice results.
There are a ton more suggested combinations in the thread.

As far as a resizer, BicubicResize(480,480) should be OK for SVCD, especially if your source is larger than 480x480.


Pookie,
I am using DVDRebuider with AVISynth, could you help me write the whole AVISynth script for see -saw and Degrainmedian combination please?
Thanks.
I am confused what is a=last, b????

Pookie
14th February 2007, 17:28
a=last
b=a.degrainmedian(mode=1)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Szp=16)

Lemme know if you need more info :)

fatxy
16th June 2007, 19:03
Hi Pookie

with this script

LoadPlugin("D:\Programme\AviSynth 2.5\plugins\degrainmedian.dll")
Import("D:\Programme\AviSynth 2.5\plugins\SeeSaw.avs")
DGDecode_mpeg2source("D:\test.d2v")
crop( 6, 134, -6, -134)

a=last
b=a.degrainmedian(mode=1)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Szp=16)

Spline36Resize(1280,544)

trim(409, -3305)

i always get an unknown systemexception, but i dont know why :confused:

using avs 2.5.7

any ideas?

HisDivineShadow
16th June 2007, 19:19
probably your negative trim value?

should it be:
trim(409,3305)

gzarkadas
16th June 2007, 22:39
Try to put a "return last" statement in order to try to isolate the line with the error (say after the line "a=last"), then copy and paste it one line below at a time, until you get the error.

If it is in degrainmedian or SeeSaw, probably is a wrong plugin dll version issue. If it is in Spline36Resize you may upsizing too much (in that case the low-level resizer routines may throw an error). What is the resulution of your source?

fatxy
16th June 2007, 23:05
probably your negative trim value?

should it be:
trim(409,3305)

nah thats correct, (startframe, -framecount) i get these values from vdub, thats why i use this syntax


Try to put a "return last" statement in order to try to isolate the line with the error (say after the line "a=last"), then copy and paste it one line below at a time, until you get the error.

i get the error after SeeSaw
http://freenet-homepage.de/fatxyz/test.png

and i noticed the colors are all out of order (even when i return last right after loading the .d2v) - is this a result of importing SeeSaw too?

grabbed SeeSaw and the rest from this posting (http://forum.doom9.org/showpost.php?p=758021&postcount=1) , using # SeeSaw v0.3e (02 Jan 2006)

gzarkadas
17th June 2007, 01:50
Ensure that all needed plugin dlls from seesaw are available (MaskTools.dll, RemoveGrain.dll, RSharpen.dll, Repair.dll, DenoiseSharpen.dll) and of the correct version; I have the feeling that the error generated by seesaw is a missing component which on the way out transforms to an "unrecognised exception".

BTW, is "D:\Programme\AviSynth 2.5\plugins" your autoloading Avisynth plugin directory? (this question is relevant to the subject).

fatxy
18th June 2007, 18:45
Ensure that all needed plugin dlls from seesaw are available (MaskTools.dll, RemoveGrain.dll, RSharpen.dll, Repair.dll, DenoiseSharpen.dll) and of the correct version; I have the feeling that the error generated by seesaw is a missing component which on the way out transforms to an "unrecognised exception".

yep i guess you were right, i deleted all plugins and copied them step by step with the current versions available back and its workin now

needed only MaskTools.dll, RemoveGrain.dll, Repair.dll tho

thanks for your help