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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th September 2002, 09:46   #1  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
Lanczos3 Filter Resize.

Hi,

for those who don't know the Lanczos is a resize algo better than bicubic resize. does someone have already worked on this filter ?
i know there is an virtualdub an an aviutl version but does someone have an yuv version of this filter who could work with avisynth script ?

thank u.
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 10th September 2002, 10:30   #2  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
Yep I know it, I know it from a French forum quoting a japanese web page.

I made a test (it's very easy to add in avisynth) : it's slower than bicubic and I didn't see any enhancement but I was perhaps too tired to see anything.

As soon as I get home I'll mail the modified sources to someone in the avisynth team.
__________________
Vlad59
Convolution3D for avisynth 2.0X : http://www.hellninjacommando.com/con3d
Convolution3D for avisynth 2.5 : http://www.hellninjacommando.com/con3d/beta
vlad59 is offline   Reply With Quote
Old 10th September 2002, 10:42   #3  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
hi,

thank u very much if u could help this filter to be integrated to avisynth
i think with a good optimisation we can rush the same speed than bicubic and it's sure that lanczos algo was better for the details than bicubic

PS:i was a little frenchy too (bordeaux).

bye.
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 10th September 2002, 12:06   #4  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
Heres an Intel 6 compile of the lanczos filter (avisynth & VDub)

http://nic.dnsalias.com/lanczos3.zip

in the readme is the link to where I found the filter/source...

-Nic
Nic is offline   Reply With Quote
Old 10th September 2002, 13:58   #5  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Free at last!

Thank, Nic!

There was a time when I bothered everyone, that they should included Lanczos resizing in their programs...

fISH made a resizing filter for VD with many other algos, but the filter, sadly, never leaved the beta stage.

@vlad59

There is a obvious quality gain (first noticed it when using DVD2MPG Squeezer), but all the implementations I used are much slower than bicubic resizing, so there's the question if it's worth it.

There is also a AviUtl, lanczos filter out there:

http://forum.doom9.org/showthread.php?s=&threadid=19075

BTW, for VD, you need only to rename the .dll to .vdf or what? Er, will try that later...

Thanks.

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 10th September 2002, 14:12   #6  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
Quote:
you need only to rename the .dll to .vdf or what?
Yup thats all you do, but I thought giving it the .vdf extension might confuse some into thinking it wasnt fully avisynth compatible...

-Nic
Nic is offline   Reply With Quote
Old 10th September 2002, 14:18   #7  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
I'm still online... Phew...

Thanks for the clarification will, log off and try it right away!

All the best,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 10th September 2002, 15:20   #8  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,296
When adding filters in VDub you can also load dll-files (with the load button).
Wilbert is offline   Reply With Quote
Old 10th September 2002, 15:30   #9  |  Link
toshi
Registered User
 
Join Date: Aug 2002
Location: Japan
Posts: 15
Quote:
Originally posted by Nic


Yup thats all you do, but I thought giving it the .vdf extension might confuse some into thinking it wasnt fully avisynth compatible...

-Nic
Nic, you misunderstood. It can use as Avisynth plugin as it is.
ex.
LoadPlugin("lanczos3.vdf")

Original archive is this.
http://isweb42.infoseek.co.jp/comput...anczos_02a.cab

I explain Lanczos3Resize filter history, because Nic wrote nothing
about it.
Originally, Lanczos3Resize filter was created by MOGI Kazuhiro for AviUtl filter. This Avisynth plugin ported by thejam who created fine ITVC plugin IT.
toshi is offline   Reply With Quote
Old 10th September 2002, 15:35   #10  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,285
LoL...No I didnt misunderstand, I thought other people would be confused if it was called .vdf & people would think it was a VDub filter (Not everyone knows that a .vdf file is just a .dll file)

& I didn't write anything about it because I cant read Japanese , but did give the link to the site where I found it...

Thanks for the info though

Cheers,
-Nic

ps
& I recompiled it to a dll because I thought the intel compiler might help, but I doubt it as it is mainly assembler...
Nic is offline   Reply With Quote
Old 10th September 2002, 15:55   #11  |  Link
toshi
Registered User
 
Join Date: Aug 2002
Location: Japan
Posts: 15
Quote:
LoL...No I didnt misunderstand, I thought other people would be confused if it was called .vdf & people would think it was a VDub filter (Not everyone knows that a .vdf file is just a .dll file)
Oh, I'm sorry. I had misunderstanding...


Quote:
& I recompiled it to a dll because I thought the intel compiler might help, but I doubt it as it is mainly assembler...
Yes. In resize.cpp, most of functions are written by assembler.
So, Compiler doen't matter.
toshi is offline   Reply With Quote
Old 10th September 2002, 16:24   #12  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
@toshi

Are you affiliated with the Aeternitas site? There are so many good japanese sites (for instance http://www.geocities.co.jp/SiliconVa...unnyvale/3109/ seems interesting), that I wish I would have had the patience to learn japanese . Oh, well...

BTW, do you know what happened with thejam79's filter site? I wanted to download his filters, but couldn't find anything to download .

Thanks, and sorry for the little thread drift.

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 10th September 2002, 17:19   #13  |  Link
toshi
Registered User
 
Join Date: Aug 2002
Location: Japan
Posts: 15
Thanks Ookami.
You can get the information about thejam's filter site at
this thread.
http://forum.doom9.org/showthread.php?s=&threadid=32863

But,lately IT 0.051 was released. It contained source code.
http://members.tripod.co.jp/thejam79/IT_0051.zip
toshi is offline   Reply With Quote
Old 10th September 2002, 18:27   #14  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 826
@ookami: Simple way, use Babelfish (http://babelfish.astalavista.com). This page is translated pretty understandable.

Cheers
Belgabor
Belgabor is offline   Reply With Quote
Old 10th September 2002, 18:27   #15  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Thank you very much, Toshi!

And I even got a mail from GuiltyX, where he pointed me, also, to the mentioned thread.

Can someone mail me, or upload somewhere, the ghost filter? I'm only interested in it if it is a ghost removing filter like the Exorcist ( http://www.republika.pl/vander74/virtualdub/ ) for VirtualDub.

@belgabor

In 99% such translations are unusable, especially if you use it for technical pages, but maybe the translations are better now than a few years ago... Thanks for your time.

BTW, did you saw the Avspreview program on the site I mentioned ?

All the best,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 10th September 2002, 18:52   #16  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 826
Quote:
Originally posted by Ookami
@belgabor

In 99% such translations are unusable, especially if you use it for technical pages, but maybe the translations are better now than a few years ago... Thanks for your time.

BTW, did you saw the Avspreview program on the site I mentioned ?
Unfortunately, yes. But in this case it works surprisingly well.

I was just testing this AVSPreview thing. Unfortunately my Screen res of 1152x864 isnt large enough for it to fit. (He tells 1024x768 in his readme, but western and eastern windoze systems often differ in screen metrics).
Anyways, this program is buggy (at least on my western system) so as long as i don't have the source to recompile its a nice idea but unusable.

Cheers
Belgabor
Belgabor is offline   Reply With Quote
Old 10th September 2002, 19:12   #17  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
For those who are interested : I have attached a version of avisynth(the latest CVS) with a built-in lanczos resize :

ALanczos3Resize (Destination width, Destination height) (like BilinearResize)

I choose to name it ALanczos3Resize to allow you to test this filter and the filter compiled by Nic.
I haven't made any quality or speed test between them but since I already have it you can choose the version you want.

EDIT :
It seems that the built in function is faster that Nic's plugin.
I'm too tired to make quality tests.
The sources is available, I'll mail Shodan or Dividee as I don't have CVS access.
__________________
Vlad59
Convolution3D for avisynth 2.0X : http://www.hellninjacommando.com/con3d
Convolution3D for avisynth 2.5 : http://www.hellninjacommando.com/con3d/beta

Last edited by vlad59; 10th September 2002 at 19:23.
vlad59 is offline   Reply With Quote
Old 10th September 2002, 23:14   #18  |  Link
Dali Lama
Registered User
 
Join Date: Jan 2002
Posts: 331
I have been using Lanczos3 Resize filter in my last two encodes with excellent results. I find the detail very high. I will look into the compressability differences between it and Bilinear and Bicubic, although judging from the quality of the one cd encodings, it compresses very well, similar to bilinear.

I actually found this filter, by scouring through the japanese filter sites, they are pretty cool.

Also, many high end photo resizing programs use Lanczos3 to resize photos in high quality, so I figure it can't hurt video resizing.

Dali
Dali Lama is offline   Reply With Quote
Old 10th September 2002, 23:43   #19  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
yes Lanczos resize formula was the BEST ratio quality/size i have make a compressibility test and the result was above bilinear and below the bicubic. i need do more tests but i realy think with a light convolution filter and this resize filter the result will be better than bicubic and near the biliear compressibility.

PS: on a japanese site (http://barururu.virtualave.net/avisynth.html) i have found a script with the file warsharp.dll (seems to be an yuv conversion of the virtualdub filter) does someone have this filter ?
perhaps a japanese man could translate the text about this filter.

thank u
Bye.

PS: for those who are interested Autodub 1.6 will be out in a few day with the support of the lanczos filter ,a compressibility test and the update of the xvid build 10-09-02
__________________

AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec.
AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles.

Dark-Cracker is offline   Reply With Quote
Old 10th September 2002, 23:48   #20  |  Link
unplugged
Registered User
 
unplugged's Avatar
 
Join Date: Oct 2001
Location: Italia
Posts: 412
By few comparisons I have found it very very close to sharp bicubic (0.75), only a bit more sharp... I think with normal view diff. is impossible to perceive.

[Edit] Nice to hear about quality/size. Suprised

Last edited by unplugged; 10th September 2002 at 23:54.
unplugged is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.