Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
25th January 2003, 02:51 | #1 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
MSmooth for Avisynth 2.5
Here is MSmooth 2.0 beta 1 for Avisynth 2.5. It is a detail-constrained spatial smoother as described in the original discussion thread:
http://forum.doom9.org/showthread.php?s=&threadid=31679 Of course it is not yet optimized for speed as I am just now resurrecting its development. It does however support both RGB32 and YV12. Please see the help file for usage details and the original thread for discussion. |
26th January 2003, 05:59 | #2 | Link |
Registered User
Join Date: Oct 2002
Posts: 82
|
Hi Donald,
Just a quick question or possible bug. When I'm using the strength parameter the speed drops a lot. I know in the readme, you state that it would, but what I'm finding is that there's a large difference (13 vs 3fps) when I do: Msmooth(threshold=11) -> 13fps vs Msmooth(threshold=11,strength=3) -> 3fps Since strength=3 is the default (according to the readme), I would assume they should be the same speeds. I can only get the same speeds while including the strength parameter when using strength=0. Do you have any ideas on this? Thanks, Mr. B |
26th January 2003, 07:14 | #3 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
My testing shows identical timings and the code is definitely defaulted to strength=3. I can think of only two possibilities: 1) you have an msmooth.def that overrides the defaults, or 2) you just did things late at night and got confused. :-)
But seriously, are you sure??? When you leave off the strength parameter are you getting smoothing (strength=0 passes the video through untouched)? |
27th January 2003, 07:13 | #4 | Link |
Registered User
Join Date: Oct 2002
Posts: 82
|
Thanks for the reply Donald. I still can't explain it's behavior, and I don't see a msmooth.def anywhere, nor have i tried to modify the defaults. I can confirm that it is doing strength=0 by default. However, I have checked with some other people and it seems just to be something in my setup as you had said I guess I can deal with manually typing in the strength until I figure it out.
Thanks again, Mr. B |
28th January 2003, 23:54 | #5 | Link |
TotalEclipseOfTheBrain
Join Date: Sep 2002
Posts: 347
|
@Neuron
2 things about latest msmooth : - high value for strength seem to strangely affect chroma - high threshold seem to show a problem with borders 3 pictures (see attached file) pic0 : strenghth = 2, threshold = 2 pic1 : strenghth = 25, threshold = 2 pic2 : strenghth = 25, threshold = 200 my script : ----------- LoadPlugin("C:\video\avsfilters\yv12\MPEG2Dec3.dll") LoadPlugin("C:\video\avsfilters\yv12\Msmooth.dll") mpeg2source("F:\test\vts_01.d2v",cpu=0,idct=2) Crop(20,72,680,432) msmooth(strength=25,threshold=200) bicubicresize(448,320,0,0.6) AddBorders(16,128,16,128) Regards, FuPP |
29th January 2003, 01:19 | #6 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
@FuPP
Thank you for your feedback. A blur cannot be applied at the edges because neighboring pixels are unavailable, so I copy them over from the source. For reasonable strengths (not 25!), you don't notice it. I don't get your chroma point. But anyway, suppose I said: "Noticed problems with my car. With high RPM (20000 rpm) the engine gets real hot. With watered down gas, the engine runs rough." Why in heaven's name would you want to run MSmooth with a strength of 25 and/or a threshold of 2 (or 200)? Last edited by Guest; 29th January 2003 at 01:22. |
29th January 2003, 09:53 | #7 | Link |
TotalEclipseOfTheBrain
Join Date: Sep 2002
Posts: 347
|
I allways do that kind of tests in order to accentuate consequences of a possible bug, which are sometimes less noticeable with default or soft settings.
These settings are therefore only for testing purpose. about chroma : I've just realised that pictures I attached are in the wrong order compared to the description I gave : pic0 (=msmooth0.jpg) : strenghth = 2, threshold = 2 pic1 (=msmooth2.jpg): strenghth = 25, threshold = 2 pic2 (=msmooth1.jpg): strenghth = 25, threshold = 200 if you compare msmooth0 and msmooth2, you should see that picture msmooth2 is more "green" Regards, FuPP. |
29th January 2003, 13:00 | #8 | Link |
Member
Join Date: Dec 2001
Location: somewhere far beyond
Posts: 270
|
I notice the "green-shift", but I notice aswell that these are two pictures with different horizontal resolutions. And they show a different content aswell :P
IMHO you can make decisions easier when you use the same source/picture. Haven't made tests for myself yet, so I can't confirm nor deny anything. CU, lamer_de |
20th February 2003, 01:39 | #12 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Maybe you can provide a one-frame clip for me to download that I can use to see the problem? FuPP gave up on me.
Was your source RGB or YV12? Also please post the script. Thank you. Last edited by Guest; 20th February 2003 at 01:42. |
20th February 2003, 02:22 | #14 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
@digitize
Thank you for the clarification. One thing people need to realize is that with high strengths the radius of the smoothing kernel is large. So if the edge masking doesn't catch all of the edges, the parts of the edges not masked can bleed quite far into the smoothed areas. It is not a bug, just something to be aware of if you want to use high strengths. Generally, strength of 5-7 or below should be more than enough. And if you really want higher strengths, then be a little more conservative with the edge masking (lower threshold). I do plan to work more on MSmooth but I am just about to leave for a month-long vacation to Pondicherry, India, so not much will happen until the end of March. Last edited by Guest; 20th February 2003 at 02:24. |
20th February 2003, 03:06 | #16 | Link |
Registered User
Join Date: Feb 2002
Location: uk
Posts: 157
|
@ neuron2
I've only just 'gone over' to avisynth 2.5, vdubmod and yv12 colourspace - and am impressed with the speed increase But.... i was wondering if you had any plans to make msharpen handle yv12 colourspace natively (i use converttoyuv().mssharpen(xxxx).convertbacktoyuv() ) Thanks again for your filters and enjoy your trip droolian |
14th May 2005, 20:00 | #19 | Link |
Registered User
Join Date: Sep 2004
Posts: 217
|
Mask colours
When "mask" is set to true, what do the colours mean? I assume the darker green means not preserved.
Oh and thanks for the filter(s).
__________________
Specs: Intel Core 2 Quad Q6600(4*2.4GHz), Win XP Pro SP2, 2 Gb DDR2, 1*120Gb HDD, 1*500Gb HDD |
15th May 2005, 00:53 | #20 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
The different colors are an artifact of YV12 space. The background green color is the smoothed area. Any other color is preserved from smoothing. Typically, it is the edges in the picture that are preserved. If you convert to RGB, the map will be all black and white.
|
|
|