digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Interesting Avisynth resizing thread at doom9.org (http://www.digitalfaq.com/archives/avisynth/8149-interesting-avisynth-resizing.html)

incredible 03-13-2004 06:16 PM

Thanx a lot Fupp! Can't wait to test! :)

kwag 03-13-2004 06:16 PM

Simulcasting Inc :?: :lol:

-kwag

FuPP 03-13-2004 06:19 PM

Quote:

Originally Posted by kwag
You got it FuPP :!:
I just scrolled through the section where the artifact was showing, and it's gone bye bye :D

Thanks,
-kwag

:P

FuPP 03-13-2004 06:21 PM

Quote:

Originally Posted by incredible
Thanx a lot Fupp! Can't wait to test! :)

Please do ! And let me know...

Regards,
FuPP

kwag 03-13-2004 06:28 PM

Anyone out there running MUTE, you'll find a very small sample called HybridFuPP_084_ffvfw_KDVD_sample.m2v
Or just search for KVCD, and you'll see it plus some of the old samples ;)
Can't wait :?:, get it here: http://www.kvcd.net/HybridFuPP_084_f...DVD_sample.m2v (It's only 637KB)

-kwag

audioslave 03-13-2004 06:44 PM

Great work FuPP - again! :D Will start testing right away.

P.S. Nice clip kwag! :wink:

kwag 03-13-2004 10:33 PM

Ok guys, here we go :D

I made three sample encodes, one with FuPP, another with Deen and one with modified MA script.
All samples encoded MPEG-2 (KDVD) at 704x480 using KVCD Notch Matrix, and TMPGEnc at a CQ of 70.

This are the scripts used:

FuPP script:
Code:

Mpeg2Source("K:\RED_PLANET\VIDEO_TS\red.d2v")
BicubicResize(704, 272, 0, 0.6, 11, 60, 698, 360)
HybridFuPP(704, 272, Preset="High", Chroma=True )
AddBorders(0, 104, 0, 104)
LetterBox(16, 16, 16, 16)

Deen script:
Code:

Mpeg2Source("K:\RED_PLANET\VIDEO_TS\red.d2v")
BicubicResize(704, 272, 0, 0.6, 11, 60, 698, 360)
deen()
AddBorders(0, 104, 0, 104)
LetterBox(16, 16, 16, 16)

Modified MA script (reduced to a single line) :
Code:

Mpeg2Source("K:\RED_PLANET\VIDEO_TS\red.d2v")
BicubicResize(704, 272, 0, 0.6, 11, 60, 698, 360)
ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)  ")
AddBorders(0, 104, 0, 104)
LetterBox(16, 16, 16, 16)

The results are interesting :!:
Code:

FuPP - File Size: 2,444KB - Encode Time: 1m:16s
Deen - File Size: 2,410KB - Encode Time: 1m:13s
MA -  File Size: 2,342KB - Encode Time: 0m:48s

Edit: Don't trust encode times, because I have many things running in my PC :!:
But file sizes are correct and consistent, no matter what CPU overhead there is.


Here are the samples:
http://www.kvcd.net/red-fupp.m2v
http://www.kvcd.net/red-deen.m2v
http://www.kvcd.net/red-ma.m2v

-kwag

jorel 03-13-2004 10:52 PM

cool!
i'm downloading to see the quality of each script!

seems off topic but :
i like too much of the deen filter with this parameters:
deen("a3d",3,4,1,4) # light cleaning
why don't use in MA and/or FuPP :?:

kwag 03-13-2004 11:05 PM

Quote:

Originally Posted by jorel
cool!
i'm downloading to see the quality of each script!

I see the quality of FuPP slightly better than MA, and Deen and MA about the same.
If this difference is notable on a TV, I'm not so sure.
But for file size, specially on a long and very active (action) movie, I'm sure the MA will have the smallest file size.
On a drama type movie, the results of file size will probably be about the same with FuPP or MA, but quality of FuPP will be better.
Quote:

seems off topic but :
i like too much of the deen filter with this parameters:
deen("a3d",3,4,1,4) # light cleaning
why don't use in MA and/or FuPP :?:
I just wanted to do a test by stripping down a many components as I could.
Really, the MA, is this single line of code:
Code:

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)  ")
:)

-kwag

jorel 03-13-2004 11:25 PM

i see different:

MA and Deen are equal but better matizes,
look the little lights(red,yellow and green)
in the begining of the samples, the color of the skin (face),
the "brown" of the planet and the red light of the "aircraft" (nave,ufo,don't know the name)!

Fupp change the matizes to green and all colors are faded!
(less intensity,washed)
use the same scenes that i used for MA and Deen like posted!

for me, MA and Deen have better matizes than Fupp
:!:

kwag 03-13-2004 11:46 PM

Quote:

Originally Posted by jorel
i see different:

MA and Deen are equal but better matizes,
look the little lights(red,yellow and green)
in the begining of the samples, the color of the skin (face),

DAMN jorel, you have the eye of an eagle :mrgreen:
I hadn't seen that. Here are screenshots of exactly what you mean:

FuPP:
http://www.digitalfaq.com/archives/i.../2004/03/5.png

Deen:
http://www.digitalfaq.com/archives/i.../2004/03/6.png

MA:
http://www.digitalfaq.com/archives/i.../2004/03/7.png
Quote:



the "brown" of the planet and the red light of the "aircraft" (nave,ufo,don't know the name)!

Fupp change the matizes to green and all colors are faded!
(less intensity,washed)
use the same scenes that i used for MA and Deen like posted!

for me, MA and Deen have better matizes than Fupp
:!:
You're correct :!:
I need to go to your eye doctor :lol:

-kwag

jorel 03-13-2004 11:52 PM

:lol:
now you know what means:

"nose on the screen" :0)
in my signature.

:wink:
:cyclops:
:bigooh: :eyes10: :ideasmiley: :nose:

kwag 03-13-2004 11:54 PM

Quote:

Originally Posted by jorel
:lol:
now you know what means:

"nose on the screen" :0)
in my signature.
:wink:

HAHAHA Yes, now I do :rotf:

-kwag

fabrice 03-14-2004 02:56 AM

Hi everyone,

And what about replacing the MA part with this lines?
Quote:

MM = last.MotionMask(thY1= 12, thY2= 25, thSD= 33, y=3, u=1, v=1).Expand()
DM = last.Binarize(threshold=40).Deflate()

Dark = last.blur(1.5)
NoMoNoEdge = last.TemporalSoften( 3, 4, 8, 10, 2)
Motion = last.blur(1.2)

layer1 = MaskedMerge(NoMoNoEdge, dark, DM, y=3, u=1, v=1)
layer3 = MaskedMerge(layer1, Motion, MM, y=3, u=1, v=1)

return layer3
(idea from hybridfupp, but with some modifications)
The speed is a lot better, and I have to compare the quality...

Cu
Fabrice

FuPP 03-14-2004 04:24 AM

Kwag : could you provide me the sample ? I'm quiet surprised about colors as I have used colorYUV(analyze=true) to check that and it was ok !

PS : I was wondering if this sample is not a little bit too dark to have an opinion about quality ?

Oh, and you could do a test putting parameters :
preset = "high", N2 ="deen()", Nresizer = 4

or N2 = temporalsoften(something for still scenes)

or (preset = high, ST_Str = 3) too.

and tell us about compressibility and quality of HybridFuPP for the same scenes in these cases ?

The point is that I use a very very light temporal softening, fluxsmooth()1,-1), while you use probably harder values (deen() is quiet strong for instance).

FuPP

jorel 03-14-2004 10:23 AM

FuPP wrote:
" I was wondering if this sample is not a little bit too dark to have an opinion about quality ?"

i could be wrong FuPP, but don't think so, correct me if i'm wrong:
the color can't change the matizes if was used the same scene that have the same luma
no matter if the source is dark or bright, right?

links to download the samples:
http://www.kvcd.net/red-fupp.m2v
http://www.kvcd.net/red-deen.m2v
http://www.kvcd.net/red-ma.m2v

:!:

FuPP 03-14-2004 10:29 AM

Hi Jorel,

oh, I was not talking about the chroma problem ! I was talking about the overall quality.

About chroma pb, I need the original sample to take measurements !

FuPP

kwag 03-14-2004 10:57 AM

Hi FuPP,

If you mean from the original VOB, here's a 2 second cut:
http://www.kvcd.net/rp2sec.vob

Also take note on the red area I pointed on the screenshot, there's an artifact that looks like an incorrect colored mapped macroblock, on the lower left part, which is not visible on the samples that were created with Deen or MA.

-kwag

FuPP 03-14-2004 11:35 AM

ok, got it.

It is caused by a bug in the internal command blur(), used to smooth chroma !

I'm now trying to find a workaround...

FuPP

FuPP 03-14-2004 12:59 PM

I'm definitevely stupid ! This not a bug : this is normal, and it happens only on very dark scenes. In that kind of scenes, bluring chroma planes can cause that kind of things (not easy to explain in english for me). I'm looking if I can do something...

kwag 03-14-2004 01:09 PM

Quote:

Originally Posted by FuPP
I'm definitevely stupid !

No FuPP, you're very bright :!:
If you were stupid, you would have never designed such a script :D

However, we all bear the :arrow: :imstupid:
and the
:arrow: :douh:

icons, every once in a while.
But just for laughs :lol:

-kwag

jorel 03-14-2004 02:42 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by FuPP
I'm definitevely stupid !

No FuPP, you're very bright :!:
If you were stupid, you would have never designed such a script :D

-kwag

yes FuPP, you did (and will do more) a wonderful work!
:wink:

and FuPP
wrote too:
"oh, I was not talking about the chroma problem ! I was talking about the overall quality."
ok my friend, now i "see" what you mean!
:)
and the tests using Deen like you posted?
somebody test it?

FuPP 03-14-2004 07:37 PM

ok, not completely stupid if you want :wink:

Maybe some of you would like to try HybridFuPP 0.85a... far better chroma smoothing, so colors are a lot less washed in dark scenes.

here it is : http://fupp.chez.tiscali.fr/HybridFuPP/HybridFuPP.avsi

Regards,
FuPP

audioslave 03-14-2004 07:45 PM

You bet! :D Will download the VOB Kwag posted and test the new HybridFuPP 0.85a.

audioslave 03-14-2004 08:19 PM

Yes! The "washed out" picture is gone. Great work, man! 8) :wink: It's looking better than ever.

kwag 03-15-2004 12:19 AM

Well, I really have to say this:
FuPP script is very good, but the time to encode a movie, is almost twice that of the MA script.
I just did a test encode to compare the quality on my Samsung 32" HDTV, and to tell you the truth, there's absolutely "zero" visual difference :!:
I think there's a limit to how much filtering there should be done on source material.
I'll certainly use FuPP for some captures, but not for any DVD sources :!:

-kwag

audioslave 03-15-2004 08:55 AM

Here's the reason why I'd rather use HybridFuPP to encode my movies:

~ Script Comparison ~
http://hea.port5.com/scriptcomp.htm

It's a scene (from Underworld) when most of the background is moving (subway train) but the actress (Kate Beckinsale, mmm... :wink: ) is in focus. With the MA script everything gets blurred but with HybridFuPP only the background is heavily filtered - as you can see from the screenshots. I'm sure there are better examples but this was a scene that came to mind.

Dialhot 03-15-2004 08:59 AM

FYI : Underworld DVD isn't interlaced.

audioslave 03-15-2004 05:59 PM

@Dialhot
Oops, you're right. The FieldDeinterlace line was already in my scripts and I forgot to comment them out. Anyways, the point was the blurring issue.

bman 03-17-2004 03:09 AM

Quote:

Originally Posted by FuPP
ok, not completely stupid if you want :wink:

Maybe some of you would like to try HybridFuPP 0.85a... far better chroma smoothing, so colors are a lot less washed in dark scenes.

here it is : http://fupp.chez.tiscali.fr/HybridFuPP/HybridFuPP.avsi

Regards,
FuPP

Can't download :( :( :(
Site is down ????
bman

bigggt 03-17-2004 09:52 AM

Quote:

Originally Posted by bman
Can't download
Site is down ????

Did you right click and save as

thats the only wat to do it :wink:

bman 03-17-2004 10:02 AM

Quote:

Originally Posted by bigggt
Quote:

Originally Posted by bman
Can't download
Site is down ????

Did you right click and save as

thats the only wat to do it :wink:

I did so but couldn't downloaded file !??
This time it worked for me .
Going to try it
Thank's for help
bman

audioslave 03-17-2004 04:32 PM

Good evening to you all!
This afternoon I made a comparison of two different resizing methods in the HybridFuPP (0.85a) script.

#1
Quote:

Mpeg2Source("D:\DVD Rip\Master\Master.d2v")
Crop(10, 78, 700, 422)
HybridFuPP(448, 304, Preset="High")
AddBorders(16, 136, 16, 136)
This script uses FuPP's (the creator of the excellent script :) ) resizing method with the Crop() line.

#2
Quote:

Mpeg2Source("D:\DVD Rip\Master\Master.d2v")
BicubicResize(448, 304, 0, 0.6, 9, 78, 700, 422)
HybridFuPP(448, 304, Preset="High")
AddBorders(16, 136, 16, 136)
This cript uses Kwag's (the creator of the excellent MA script :wink: ) method of resizing as posted earlier in this topic.

Results
Latest MA script (Nov. 21, 2003): 14 538 kB
HybridFuPP 0.85a with Crop(): 14 661 kB
HybridFuPP 0.85a with BicubicResize(): 14 821 kB

Results are based on a 02:38 sample from "Master & Commander".

This means that HybridFuPP produces files that are very close in size to those of the MA script (when using the Crop() line in the HybridFuPP script). If we're using the BicubicResize line instead we probably screw up the internal resizing algorithms within the HybridFuPP function. In other words the exact same function that FuPP made to get as small filesizes as possible. Please correct me if I'm wrong.
The MA script is of course a lot faster but if you have the time to spare I really think it's worth the wait. That's my opinion. :wink:

incredible 03-17-2004 04:44 PM

I have to agree with KWAG that a little unsharper pic in case of MA you wont notice on a regular TV set. And shurely if you get rid of that second blurring process done by MergeLuma(Blur(..))! as that gives a little over all sharper picture if deleted when using MA.

THE ONLY reason for me to have a close look at HybridFupp() is that it doesnt got that "static foreground object while fast luma moving in the background" - issue! Cause that reults also in a blurry static foreground object as MA does filter the whole frame based on NF where HybFupp does filter only the moving parts.

audioslave 03-17-2004 04:48 PM

Incredible wrote:
Quote:

THE ONLY reason for me to have a close look at HybridFupp() is that it doesnt got that "static foreground object while fast luma moving in the background" - issue! Cause that reults also in a blurry static foreground object as MA does filter the whole frame based on NF where HybFupp does filter only the moving parts.
My point exactly. :) And I agree with both Kwag and yourself about not being able to see the difference with MA's blurrier look on a TV-screen. BUT, it nice to have only the moving parts of a frame blurred... :wink:

fabrice 03-17-2004 11:45 PM

Hi,

So, why not trying to play with maskedMerge, to get a similar effect (blurring the moving part), and replace the MA part? (i already post that before, but I know it's a bit OT...).

We just could begin a new thread for the maskedmerge version of the MA version...

CU
Fabrice

kwag 03-18-2004 12:00 AM

Hi Fabrice,

Did you get my PM this morning about that :?: :roll:

-kwag

fabrice 03-18-2004 12:19 AM

Hi karl,

just answer right now. Don't know why it doesn't popup me today...

CU
Fabrice

incredible 03-18-2004 04:12 AM

I also gave that hint to kWAG some time ago, but there is the compromise between the "simpler" MA compared to a more complex masking routine.

Masking routines do need much more time than a simple "whole" frame filter.

BUT what we can try is to implementate a maskingroutine which only works/performs on the y (luma) channel.

I did some tests this week on noisy captures where I just let run some routines only on luma and other routines only on the chroma channel :arrow: less static grain on moving walls etc. and on the other hand much more faster as the filter do perform more effective according to the Y/C channels.

"Something" like this...

SourceImport("xxxxxxxxxx.avi")
Mergeluma(filter(xxxxx))
Mergechroma(filter(xxxxx))

... just an example....

So that also "could" speed up HybFupp if we let apply for example only the sharpening unfilter on the luma channel, also the spatial filtering of plain surfaces could be done on the luma only.
only! Softresizings on chroma, but according to HybFupps internal masking ... soft/mid/sharp resizing on Luma only.

For explaining:

SoftAction=Bicubicresize(xx,yy,0,0).blur(x)
SharpAction=Lanczosresize(xx,yy).TemporalSoften(xx x)
MergeLuma(SharpAction)
MergeChroma(SoftAction)

There are filters which do have ettings separately on luma and chroma, but I noticed that its a bit diff. case if really some filters do work ONLY on that specific channel, separated by the MergeXXXX command

Dialhot 03-18-2004 04:36 AM

Quote:

Originally Posted by fabrice
just answer right now. Don't know why it doesn't popup me today...

You moved to mozilla or firefox and didn't there is an anti popup feature in them ? :-)


All times are GMT -5. The time now is 07:33 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.