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 11th September 2002, 08:36   #21  |  Link
soujir0u
Registered User
 
Join Date: Oct 2001
Posts: 213
Better quality than Neutral Bicubic yet more compressible than Soft Bicubic? Sweet!
soujir0u is offline   Reply With Quote
Old 11th September 2002, 08:49   #22  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
Have somebody compared the quality of the filter compiled by Nic and the modified avisynth I posted ????

Because my implementation is maybe too simple and has maybe quality problem

I'll have no time to do this, I'll be away from keyboard for the next two days (working at a customer office).
__________________
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 11th September 2002, 09:33   #23  |  Link
HarryM
Registered User
 
Join Date: May 2002
Location: Czech rep.
Posts: 390
another resize algorithms

Do exist any sophisticated resize algorithm, which reduce noise and preserve sharp edges?
HarryM is offline   Reply With Quote
Old 11th September 2002, 09:58   #24  |  Link
HarryM
Registered User
 
Join Date: May 2002
Location: Czech rep.
Posts: 390
Quote:
Originally posted by soujir0u
Better quality than Neutral Bicubic yet more compressible than Soft Bicubic? Sweet!
Compressibility of soft-bicubic (b,c=1/3) is very comparable to bilinear...

I actually use bicubic (b=0,c=0.5), good compromise between quality and compressibility (noise sensitivity).

Avised results of LanczosResize are very hopeful for me (much better compressibility)!
LanczosResize are my futurefavourite resampling function? I must testing...
HarryM is offline   Reply With Quote
Old 11th September 2002, 11:03   #25  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Re: another resize algorithms

Quote:
Originally posted by HarryM
Do exist any sophisticated resize algorithm, which reduce noise and preserve sharp edges?
Some descriptions from the DVD2MPG Squeezer readme. If I remember correctly, my testings showed that the descriptions are correct .

Quote:
Resize Filter = The used filter for resizing the source picture to output
size. The following filters are available:

- Nearest Neighbourhood: This is the fastest one. Not
recommended at all, because aliasing is present
everywhere. A lot of jagged lines and artifacts are
common.

- Triangle Filter AKA bilinear interpolation: After
nearest neighbourghood this is the 'second fastest'. It
provides a decent image with good speed.

- Hermite Filter: Unknown what it does exactly but is
as fast is the Triangle Filter.

- Bell Filter: This filter blurs the image at the same
time it resizes. If you want to smooth the video and
your source video is very noisy use this.

- BSpline Filter: One step further from 'Bell Filter'. A
bit slower and more blurred image but less noisy and
less sharp though.

- Bicubic Filter: Very good quality/ speed ratio. This
filter minimize artifacting and aliasing while
maintaining the speed. This should be the default
setting for almost everyone.

- Mitchell filter: Similar to bicubic filtering but it's
a bit slower. If you want similar performance to
bicubic filtering but your source video is noisy,
try this one.

- Lanczos windowed Sinc: Provides quality similar to that
of Hanning windowing method but it's a bit faster.

- Hanning Windowed Sinc: Provides somewhat better quality
than bicubic filtering but it's rather slow. Try it if
CPU horsepower is not a problem for you.
Hopefully some of the more knowlegable person here can comment on this one...

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 11th September 2002, 11:23   #26  |  Link
Dark-Cracker
Registered User
 
Dark-Cracker's Avatar
 
Join Date: Feb 2002
Posts: 1,195
hi,

here it's a picture with the most common resize algorythm, it was a snap of a picturesoft and un happuly there is not the bicubic picture and the Hanning Sinc.

PS: Nearest Neighbourhood formula was call too Box and the Triangle Filter was call Bilinear. (normaly i was not wrong )

Here was the snap :
__________________

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 11th September 2002, 12:59   #27  |  Link
unplugged
Registered User
 
unplugged's Avatar
 
Join Date: Oct 2001
Location: Italia
Posts: 412
Do not be much sure about Lanczos3 compressibility (to be honest I was sceptical from the first view: this algo is damn detailed ), I have made a little discouraging test with 1 minute LOTR clip (720x424) resized to 640x272:

neutral bicubic (c=0.75) resize 19000 Kb
lanczos3 resize 20200 Kb

Just to describe the content, the clip contains progressive moving parts, moving parts and statical. Content is clear and much detailed itself, entirely taken from daylight scene (LOTR frames from 11481 to 13056).
(avisynth 2.05, mpeg2dec2.dll, Virtualdub fast-repack YUV, XviD)
unplugged is offline   Reply With Quote
Old 11th September 2002, 13:15   #28  |  Link
iago
retired
 
iago's Avatar
 
Join Date: Jun 2002
Location: hollywood
Posts: 1,013
Quote:
Do not be much sure about Lanczos3 compressibility...
@unplugged and all,

I had very similar results here too, with some short tests. First 3746 frames of Matrix, mostly dark content, with both motion and still scenes, resized to 640*272. I used vlad59's dll.

alanczos3 = 49750 kb
sharp (c=0.75) = 49216 kb
neutral (c=0.5) = 47546 kb
soft (c=0.33) = 46460 kb
SimpleResize = 45956 kb
bilinear = 41918 kb

(avisynth 2.05 with alanczos3 resize dll by vlad59, mpeg2dec.dll, VirtualDub fast recompress, XviD Nic's latest build with constant quant 2)

regards,
iago

EDIT: and using MPEG quantization...

Last edited by iago; 11th September 2002 at 13:35.
iago is offline   Reply With Quote
Old 11th September 2002, 13:24   #29  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
@iago
Can you try with the dll compiled by Nic.
To be sure the results are roughly the same.

Thanks in advance
__________________
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 11th September 2002, 13:31   #30  |  Link
iago
retired
 
iago's Avatar
 
Join Date: Jun 2002
Location: hollywood
Posts: 1,013
Quote:
Originally posted by vlad59
@iago
Can you try with the dll compiled by Nic.
To be sure the results are roughly the same.

Thanks in advance
@vlad59

Sure, I'll do that right away and post back the results.

regards,
iago
iago is offline   Reply With Quote
Old 11th September 2002, 13:42   #31  |  Link
unplugged
Registered User
 
unplugged's Avatar
 
Join Date: Oct 2001
Location: Italia
Posts: 412
Quote:
Originally posted by vlad59
To be sure the results are roughly the same.
As result, mine has been obtained with Nic's lanczos dll. (19000 Kb / 20200 Kb)
To mention that Nic's version is only a bit slower than bicubic, almost how happens in my system... (~24fps / ~27fps)

[Edit] I have used fixed quantizer 3 for that test.

Last edited by unplugged; 11th September 2002 at 13:47.
unplugged is offline   Reply With Quote
Old 11th September 2002, 13:49   #32  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
In fact I'm not sure of how works Nic DLL because I found some sources of an Lanczos3 aviutl plugin where you can use to process integer (with MMX) or use float (with SSE or SSE2).

So his version could be more precise (in term of quality) as I use the main resizing engine of avisynth wich deal mainly with integer (except for the resampling pattern of course).
__________________
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 11th September 2002, 14:14   #33  |  Link
iago
retired
 
iago's Avatar
 
Join Date: Jun 2002
Location: hollywood
Posts: 1,013
@vlad59 and all

vlad59's dll: 49750 kb
nic's dll: 49552 kb

(difference: ~0.40%)

regards,
iago
iago is offline   Reply With Quote
Old 11th September 2002, 14:18   #34  |  Link
iago
retired
 
iago's Avatar
 
Join Date: Jun 2002
Location: hollywood
Posts: 1,013
screenshot from vlad59's dll
iago is offline   Reply With Quote
Old 11th September 2002, 14:21   #35  |  Link
iago
retired
 
iago's Avatar
 
Join Date: Jun 2002
Location: hollywood
Posts: 1,013
screenshot from Nic's dll
iago is offline   Reply With Quote
Old 11th September 2002, 14:28   #36  |  Link
HarryM
Registered User
 
Join Date: May 2002
Location: Czech rep.
Posts: 390
Quote:
Originally posted by iago
@unplugged and all,

I had very similar results here too, with some short tests. First 3746 frames of Matrix, mostly dark content, with both motion and still scenes, resized to 640*272. I used vlad59's dll.

alanczos3 = 49750 kb
sharp (c=0.75) = 49216 kb
neutral (c=0.5) = 47546 kb
soft (c=0.33) = 46460 kb
SimpleResize = 45956 kb
bilinear = 41918 kb

(avisynth 2.05 with alanczos3 resize dll by vlad59, mpeg2dec.dll, VirtualDub fast recompress, XviD Nic's latest build with constant quant 2)

regards,
iago

EDIT: and using MPEG quantization...
Damned
Wonders not exist...
HarryM is offline   Reply With Quote
Old 11th September 2002, 14:50   #37  |  Link
unplugged
Registered User
 
unplugged's Avatar
 
Join Date: Oct 2001
Location: Italia
Posts: 412
About resize, does anybody know if last bug of simpleresize.dll concerning chroma/luma shift has been solved?
Haven't find any post by trbarry talking about this... yet.
unplugged is offline   Reply With Quote
Old 11th September 2002, 15:01   #38  |  Link
vlad59
Vlad, the Buffy slayer
 
vlad59's Avatar
 
Join Date: Oct 2001
Location: France
Posts: 445
Yes I remember the problem and I don't think Tom solved it (As far as I remember).

[off topic]Time to go, or I'll miss my train[/off topic]
__________________
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 11th September 2002, 15:08   #39  |  Link
Marc FD
XviD fan
 
Marc FD's Avatar
 
Join Date: Jun 2002
Location: France
Posts: 907
Size tests are good, but quality tests are better.

ie between
Bilinear,Bicubic(soft,neutral,sharp),SimpleResize and lanczos3

The slower is not always the better in terms of quality.
See simpleresize...
Marc FD is offline   Reply With Quote
Old 11th September 2002, 15:23   #40  |  Link
toshi
Registered User
 
Join Date: Aug 2002
Location: Japan
Posts: 15
Lanczos3 resize filter makes bigger image, Because it makes
sharp image.
toshi 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 21:57.


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