digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Is there a filter for increasing compression even more? (http://www.digitalfaq.com/archives/avisynth/4643-avisynth-filter-increasing.html)

audioslave 07-22-2003 02:23 AM

Is there a filter for increasing compression even more?
 
Hi guys!
I was sondering if there's a filter I could add to the MA script to increase compression even more? I'm having trouble with fitting some movies to one CD. Probably beacuse I'm mostly encoding PAL movies. Perhaps there's a filter like Dust or Convolution3D for AviSynth 2.5x? Suggestions and settings are appreciated. :wink:

kwag 07-22-2003 02:30 AM

Hi audioslave,

Have you tried the Vaguedenoiser :?:

-kwag

audioslave 07-22-2003 02:55 AM

Hi kwag,

No, I haven't. What setting do I use and where do I put it in the script :?:
And the most important point: Where can I download it (the latest version)?
Thanks! :wink:

EDIT: Maybe there's another filter that I could add to the script too. Besides VagueDenoiser?

Dialhot 07-22-2003 04:16 AM

I used Dup(threshold=1,blend=true) a couple of time. It does a good work but the effects are sometimes visible during travelling movements of the camera. Don't use the default parameters as they are too high !

You can use also DCTFilter(1,1,1,1,1,1,0.5,0)

Else did you try to use an overscan of 2 before adding any filter ?

audioslave 07-22-2003 04:28 AM

Hi Dialhot,

I will try with DCTFilter. Will quality be effected in a visible way?
About the overscan, the highest overscan I can use is 1. Otherwise I see the right border on my TV. :cry: At a higher resolution than 480x576 I might get away with overscan=2 but I haven't tried yet...

audioslave 07-22-2003 04:41 AM

Is there another filter or a way to crank up the CQ even more? It's so boring to have to encode movies at 352x288 or 352x576. I would really like to able to encode those movies at least at 480x576 resolution. I know that adding such a filter would probably decrease the quality of the movie, but still...

Dialhot 07-22-2003 04:56 AM

DCTFilter does'nt affect the "visible" part of the picture so you can try it.

For the overscan, I'm in the same case than you in fact :-)

Now if you want to increase the CQ, one of the best filter is... blur.
Increase the value used for the luma in the MA script (MergeLuma(Blur(0.1), try 0.2 or 0.3, no more).

An other thing : if you mux in SVCD you can use virtually all the resolutions you want. Make a try with 480*480, even at PAL fps (that is 25). It works on my pioneer (not sure : I did so much tests with it...)

audioslave 07-22-2003 06:09 AM

@ Dialhot,

Does it make a big difference with and without the DCTFilter? I know it differs from movie to movie, but on average?

Didn't you post an optimization of the MA part of the script - with TemporalCleaner instead of TemporalSoften? Could you point me to that post or post that line again? How much difference is it between TempClean and TempSoft, again, on average? And what about difference in picture quality?
Sorry for being a pain in the you-know-what... :(

Dialhot 07-22-2003 07:14 AM

Quote:

Originally Posted by audioslave
Does it make a big difference with and without the DCTFilter? I know it differs from movie to movie, but on average?

Let say 100 Kb on a sample of 12 Mb. Thats makes 6Mb on the total 800 Mb.

audioslave 07-22-2003 07:23 AM

Always something! :D
Now, how about my question about TemporalCleaner...?

jorel 07-22-2003 07:29 AM

Quote:

Originally Posted by audioslave
Always something! :D
Now, how about my question about TemporalCleaner...?

let me jump here audioslave!
:lol:
a few minutes ago i did a encode using this script
with temporalcleaner like Phil ajusts...the result? fantastic:

nf=0
GripCrop(480,480,overscan=1,source_anamorphic=fals e,dest_anamorphic=false)
GripSize(resizer="BiCubicResize")
Undot()
Asharp(1,4)
STMedianFilter(8,32,0,0)
MergeChroma(blur(1.58))
MergeLuma(blur(0.1))
SwitchThreshold=(Width<=352)?4:(Width<=480)?3:2
ScriptClip("nf=round(YDifferenceToNext())"+chr(13) +"nf >=SwitchThreshold?unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))):TemporalCleaner(6+nf,11+nf)")

GripBorders()
Letterbox(0,0,10,10)

function fmin(int f1,int f2){return(f1<f2)?f1:f2}

:wink:

audioslave 07-22-2003 07:39 AM

Hi jorel,

Have you noticed any visual difference between TemporalSoften and TemporalCleaner? And what about size difference?
Nice that you posted your script. Now I can see where to put TempClean and how the script should look! :D

jorel 07-22-2003 07:47 AM

Quote:

Originally Posted by audioslave
Hi jorel,

Have you noticed any visual difference between TemporalSoften and TemporalCleaner? And what about size difference?
Nice that you posted your script. Now I can see where to put TempClean and how the script should look! :D

after compare the results i got:
short final size with the same CQ!
general image got more details in background,more sharpness,less blocks!

i use the same source and encode it twice,
one with the best script and another with that script posted
that give :arrow: 10% less final size :!:

:wink:

audioslave 07-22-2003 08:00 AM

Wow! 8O
That's great! :D
Looks like I'll be using TemporalCleaner from now on. :wink:

Dialhot 07-22-2003 08:31 AM

And the better is than I took something like 25 min to encode a sample (the same sample I use for all my tests) versus 31 min with temporalsoften !

audioslave 07-22-2003 08:49 AM

:mrgreen:

KingTuk 07-22-2003 09:42 AM

Jorel or Dialhot

So is the above script using temporalcleaner complete?
why are you not using
limiter()

audioslave 07-22-2003 09:47 AM

Hi KingTuk,

The complete script should/could read:
Quote:

nf = 0

Mpeg2Source("Your_D2V_Source_Here")

Undot()
Limiter()
ASharp(1, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0)
MergeChroma(blur(1.50))
MergeLuma(blur(0.1))

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
Unfilter(-(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100))) : \
TemporalCleaner(fmin(round(3+nf), 7), fmin(round(8+nf), 15)).VagueDenoiser(method=1, threshold=2.5, nsteps=6, chroma=true)")

DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
The only thing I'm not sure about is VagueDenoiser. You might have to add "filter=7" to the parameters :?:

Jellygoose 07-22-2003 10:03 AM

I'm going to give TemporalCleaner a try too! Again :D !

Dialhot 07-22-2003 10:06 AM

Quote:

Originally Posted by KingTuk
Jorel or Dialhot

So is the above script using temporalcleaner complete?
why are you not using
limiter()

Because Jorel applied all my setting, and I decided to not use limiter.

Why ? 3 reasons :

1/ it takes time. Ok ok, it's not very serious, I'm kidding.
2/ Limiter turns true black to dark gray (Luma below 16 is clipped to 16) and pure white to very light gray (Luma above 236 is clipped to 236). Ones will say that is under human perception, thats true
3/ TMPGENC limits the value itself by default ! (Quantize Matrix Tab, Special settings, "Output YUV as Basic YCbCr" is uncheck by default)

I really don't see the purpose of having avisynth doing what TMPGenc already do.

But that is my opinion, my choice.


All times are GMT -5. The time now is 01:59 AM  —  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.