Log in

View Full Version : UnFilter + dvd2svcd = increase of spead... or not, just test it . here is an example


Clixo
5th July 2002, 21:35
i am allways open it what concerns increase of speed and also good image quality, and this might became handy:

part of the text file that comes with the filter:
***************

Okay, on to business.

UnFilter is a simple and reasonably fast Avisynth Soften/Sharpen filter.

It implements 5-tap user adjustable horizontal and vertical filters designed to
(slightly) reverse previous efforts at softening or edge enhancment that are
common (but ugly) in DVD mastering. Since DVD's were intended originally
for interlaced displays this has caused content providers to vertically filter
them even a bit more to hide interlacing artifacts. I don't know why they
sometimes over do the edge enhancement.

When softening it will attempt to approximate the inverse of a simple 3-tap edge
enhancement filter. When sharpening it will attempt to approximate the inverse
of a simple 3-tap softening filter. For the math and logic involved see
the comments in the UnFilterALL.inc member included in zip file.

The effects are fairly mild but be aware that excessive sharpening makes things
harder to compress and may bring about the dreaded "edge enhancement artifacts"
the people complain about in DVD's from some studios. And while excessive
softness may hide noise it loses detail and generally just looks ugly. So it is
probably best to just try to reverse whatever has already been done to your source.


To use it just:

1) Place the UnFilter.dll in a directory somewhere. You can get it from
www.trbarry.com/UnFilter.zip

2) In your Avisynth file use commands similar to

LoadPlugin("F:\UnFilter\UnFilter.dll")
Avisource("D:\wherever\myfile.avi")
UnFilter(HSharp, VSharp)

Of course replace the file and directory names with your own and supply the integer
values for the amount of horizontal and vertical sharpness. Valid values for each
are from -100 (max softness) through zero (neutral) through +100 (max sharpness).

UnFilter should run on all MMX machines or higher. It has also has some added code
for 3DNOW instructions for when it is running on a K6-II or higher and some SSEMMX
for P3 & Athlon.

Known issues and limitation:

1) Assumes YUV (YUY2) Frame Based input. Use an AVIsynth function to convert first if
needed.

2) Currenty still requires the pixel width to be a multiple of 4. This probably
shouldn't be required but I pilfered the code from some of my other filters.
Sorry, I'll fix it later.

3) So far it has only been tested on SSEMMX machines.

Temporary file locations:

For now, both source, this readme, and DLL should be at:

www.trbarry.com/UnFilter.zip

A copy of this Readme_UnFilter.txt file should be at:

www.trbarry.com/Readme_UnFilter.txt

***************

so i tried it and got good results.
this new filter looks very promissing, and if more ppl test it we could get the proper settings for our encodes,. so if you what to give a trie with this one , report back your results.

sample avisynth:

LoadPlugin("C:\PROGRA~1\DVD2SVCD\Avisynth\UnFilter.dll")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\MPEG2D~1.DLL")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\Avisynth\textsub.vdf")
AVISource("C:\DOCUME~1\svcd\Desktop\movie.avi")
ConvertToYUY2()
AssumeFPS(25,1,True)
UnFilter(15,15)
BicubicResize(352,288,0,0.6)
TextSub("c:\movie.srt")
ResampleAudio(44100)

Jason28
7th July 2002, 02:20
Did you play around with any of the values for it? Does 15 look to be prettty good? I will try to encodes tomorrow when I get a chance.

Also how much of a speed increase did you get from it in reagrds to the regular sharpen filter?

Dreassica
7th July 2002, 21:13
In CCE i got a speed increae from 0.8 to 1.2 by switching from regular sharp command to Unsharp and the quality is just as good!!

gizmau
8th July 2002, 03:31
ever tried to replace

BicubicResize(352,288,0,0.6) and unfilter

by

BicubicResize(352,288,0,0.8) without unfilter?

THIS speeds up encoding... ;-)

Dreassica
9th July 2002, 13:16
No, i only do SVCD and from the look at your resize, u are doing VCD
I have tried a lot of bicubic resize methods (upwards 1.2)and although it does make the picture sharper, it doesn't do it in exact the same way and i liked the way unfilter did it!

gizmau
9th July 2002, 13:21
@Dreassica

sure, you have to replace 352 by 480 and 288 by 576 for svcd - sorry i forgot that! ;-))))

BicubicResize(480,576,0,0.8) ist the pattern i would recommend.

Jason28
10th July 2002, 05:46
@clixomano
I used the unfilter to do some encodes and I was pretty impressed with it. They movies looked better then with sharpen. I also got a big increase of CCE speed.

At some point in the future I am going to do some tests with sharpen, unfilter and Temp smoother. I am going to try to post them somewhere and do a blind test and see what everyone thinks is the best encode. If anyone has some space when I can upload these files then let me know.

On a side note does anyone know how I cut the .bin and .cue files down? Its hard to find chapters that I can use that are less then 1 min. I dont think that you need that long to look at the clip and decide if you like it the best or not. I would like to cut the clips down to like 30 secs and then post them. Also this makes the file sizes smaller and more managable for me. Any Ideas?

gizmau
10th July 2002, 05:50
think about edonkey or use kazaa or the like...

Clixo
10th July 2002, 12:44
@Jason28 what about a personal page in yahoo, it handles 50 mega ..

Jason28
10th July 2002, 23:53
@gizmau, clixomano
Thanks for the suggestions. I will have to look into them.

I just wanted to clear up what I was talking about with the cutting of the .bin and .cue. When I am looking for chapters to encode I use the shortest ones on the DVD. The problem is that most of the chapters are about 1:30 to 2:30. When I encode them the file size is about 18 megs for every min of video. The problem is that I dont think that you would need 1:30 to 2:30 to determine if you think that particular clip is the best of the 3 that I am going to post. I would like to cut the .bin and .cue down to about 30 secs. I think that if you saw a clip that was 30 secs long then that would be plenty if time for you to look and replay it, and make up your mind.

switu
11th July 2002, 15:36
Clixomano, you're right about the speed.
I have done few tests with different movie samples and I have to say I did not notice any quailty lost.
My movie sample were around 8 mb big .
My system is Athlon Xp 1800 512 Meg of ram(DDR) 60 gb hd
Encoding w/DVD2SVCD my speed was .788-.806

this is the AVS script DVD2SVCD produced:

LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
AVISource("C:\Unfilter\test.avi")
ConvertToYUY2()
BicubicResize(480,412,0,0.75)
TemporalSmoother(2,1)
Sharpen(0.10)
AddBorders(0,82,0,82)
ResampleAudio(44100)

Using Unfilter my speed Increase noticeable to 1.185-1.204
and my AVS script:

LoadPlugin("C:\UnFilter\UnFilter.dll")
AVISource("C:\Unfilter\test.avi")
ConvertToYUY2()
UnFilter(20, 20)
BicubicResize(480,412,0,0.75)
AddBorders(0,82,0,82)
ResampleAudio(44100)

My CCE settings in both cases:
MUltipass VBR 4 pass
Avg 2230, Min 300 Max 2530
Image Quality 17
Anti Noise Filter 3

gizmau
11th July 2002, 17:23
before using sharpen-filters, you should aware of what causes the unsharpness.

first, there is surely the reduce resolution from 720 to 480, but thats not really 'unsharp', imho.
second, the resizer used. the output of bicubic differs from i.e. bilinear, because it is more smooth but less sharp as well.
third, the resizing of the player and the tv-set. when the player has a poor resizer and the components arent that good in resizing and signal quality, the sharpness suffers.
4th, the bitrate. cce produces sharper images at a higher bitrate. nevertheless it depends on the matrix used.

i think, that it would be a nice idea to compare a sharpened movie and a noisereduced one...

Clixo
11th July 2002, 21:24
@gizmau : any avisinth script to make a test here ?

magnanimous
12th July 2002, 11:21
This is my first message, just like to say thanks to the writers of the software, I have found it very useful indeed.

I tested the unfilter plugin on several movies and found the outcomes very surprising, I've been editing the avisynth options and putting the unfilter (UnFilter(20,20) after the temporal smoothing (1,1) with very sharp results, give it a try.