Quantcast Avisynth: Removegrain + Removedirt - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #21  
09-15-2004, 12:27 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by J-Wo
Any Mpeg2source("",cpu=x) or BlindPP post processing is also much too strong
As I mentioned in my first post, I was wondering about the fact that this PP can be "too much" in this script. As I did all my tests on only one source, the answer was "no, it is not too much". But for sure, as you told, the source does matter.

For the mode=8, I revised my opinion : in the tests I did for avi sources, mode=8 was too bad also. I returned back to default (mode=2).

Quote:
BicubicResize(688, 448, 1/3, 1/3, 0, 8, 720, 464)
I'm just telling my opinion here : I find bicubic standard too soft for my eyes. That is why I always use Lanczos.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
09-15-2004, 12:45 PM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
For the mode=8, I revised my opinion : in the tests I did for avi sources, mode=8 was too bad also. I returned back to default (mode=2).
Then we are in agreement! I think the default is just fine, as the docs say mode=2 is simply a "smarter" undot, and that's true. It compresses a bit more but is also a lot faster than undot.

I think for DVD sources you want to preserve as much detail as possible. So mode=2 is best for me. But maybe for some other material (tv caps?) mode=8 will be just fine. I suppose one will just have to test and see for one's self.

Quote:
Originally Posted by Dialhot
I'm just telling my opinion here : I find bicubic standard too soft for my eyes. That is why I always use Lanczos.
heheh, ya I do know you've mentioned that several times. But to my eyes, I really can't see a difference between bicubic standard/precise vs. lanczos. And this is on a 53" HDTV. Unless more people tell me I'm dead wrong, I'll stick with bicubic standard for now for the higher compression.
Reply With Quote
  #23  
09-16-2004, 01:00 PM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Code:
AviSource("PATH\NAME.avi",false)
BlindPP(cpu=4)
GripCrop(WIDTH, HEIGHT, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
DRemoveGrain()
Deen()
GripBorders()
Hey Dialhot, just wondering if you've made any progress in your new avi script. Any particular reason you're using a RemoveGrain + Deen combo instead of REmoveGrain + RemoveDirt? I'm going to try the latter as it should make the encode run faster (might not compress as well though)

edit: okay I did a little minitest on a 2000 frame clip using the above script. It's a Deen vs RemoveDirt test.

Test 1:
RemoveGrain() + Deen()
size = 21,036 kb
speed = 1.74

Test 2:
RemoveGrain + RemoveDirt()
size = 21,693 kb
speed = 1.96

So in my eyes, RemoveDirt compresses less than Deen only by 3%, but is 12% faster. Results look the same on my computer but I'll burn and test on my standalone (it always shows faults more readily).
Reply With Quote
  #24  
09-16-2004, 03:36 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Well J-WO the problem "when altering just not too much the noise" in your script is that you do a double spatial filter job, thats why your compression gain rises

Removedirt is a spatial denoiser only.
Deen() at default is a spatio-temporal, means 3d denoiser!

So two times spatial smoothed means more details killed - but your eyes will tell you the truth as this now is theoretical.
Removegrain was primary build to give removedirt() a hand on its job.

Removedirt does its fantastic (at right settings individual to the source) job as it seems that its working a bit motioncompensated (but Im not shure).

To get rid out of theese temporal filter artifacts you should look out for depan.dll as its a motioncompensation filter which avoids such temporal artifacts in combination with a temporal denoiser.

Code:
avisource("progressivePALfilm.avi")
#converttoyv12()
data=depanestimate(last,pixaspect=1.094,zoommax=20  ,improve=true)
depaninterleave(last,data,pixaspect=1.094)
YOUR TEMPORAL SMOOTHER HERE()
selectevery(3,1)

Code:
avisource("progressiveNTSCfilm.avi")
#converttoyv12()
data=depanestimate(last,pixaspect=0.911,zoommax=20  ,improve=true)
depaninterleave(last,data,pixaspect=0.911)
YOUR TEMPORAL SMOOTHER HERE()
selectevery(3,1) # not shure if NTSC needs here other values
Reply With Quote
  #25  
09-17-2004, 03:43 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by J-Wo
Results look the same on my computer but I'll burn and test on my standalone (it always shows faults more readily).
And then you will probably understand why I choosed RemoveGrain+Deen and not Removedirt
(even if for DVD sources, it's the opposite).

Quote:
Originally Posted by incredible
Removedirt is a spatial denoiser only.
Deen() at default is a spatio-temporal, means 3d denoiser!
That is exactly that.
My original script add a "temporalsoften" after the Undot+Deen lines. I removed this, and that is probably why RemoveDirt is not enought and Deen is better.

Note: I didn't test RemoveGrain+RemoveDirt+TemporalSoften.
Reply With Quote
  #26  
09-17-2004, 04:00 AM
Uruk-hai Uruk-hai is offline
Free Member
 
Join Date: Apr 2004
Location: Middle Earth
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Removedirt is a spatial denoiser only.
Are you sure? It was said in the very first line of the help file Removedirt.htm that RemoveDirt is temporal:
Quote:
RemoveDirt is a so called temporal cleaner for Avisynth 2.5x.
Reply With Quote
  #27  
09-17-2004, 04:10 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Uruk-hai
Are you sure? It was said in the very first line of the help file Removedirt.htm that RemoveDirt is temporal:
Quote:
RemoveDirt is a so called temporal cleaner for Avisynth 2.5x.


It seems I'm as tired as Inc is . Of course RemoveDirt is purely temporal. (but deen is still more efficient as it is spatio/temporal). So forget my line about testing wiht temporalsoften
Reply With Quote
  #28  
09-17-2004, 04:55 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Yep I AM TIRED

To clearify this (after having 8 cups of coffee *lol ):

RemoveGrain = Spatial Only

RemoveDirt = Temporal Only
Reply With Quote
  #29  
09-17-2004, 06:46 PM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
okay, i'm hoping someone might post an optimal dvd or avi script soon, as i'm getting mighty confused! I just tried a removegrain + removedirt + dctfilter on my Alias DVDs, but I had the same problem as with sci fi sources like Babylon 5. During certain panning shots, you can see pixels "twinkling" in and out. Like if it's a night sky pan, stars will disappear randomly, or if you see a skyscraper in the distance then certain windows will have their lights randomly turning on or off. It's RemoveDirt at fault, because as mentioned it is temporal only. In the past I've experimented with scripts like this:
Code:
(resize here)
removegrain(mode=2)
TemporalSoften(2,4,6,6,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
I'm really hoping someone can provide some more tips!
Reply With Quote
  #30  
09-20-2004, 04:16 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by J-Wo
I'm really hoping someone can provide some more tips!
Kinda answer :
http://www.kvcd.net/forum/viewtopic.php?t=14141
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Removegrain 1.0 - New plugins supermule Avisynth Scripting 25 03-15-2006 07:06 AM
Avisynth: RemoveGrain maurus Avisynth Scripting 3 05-16-2005 06:27 AM
KDVD: Resizing, croping and RemoveGrain digitall.doc Video Encoding and Conversion 1 01-12-2005 05:00 PM
Avisynth: RemoveDirt stopped? Dialhot Avisynth Scripting 16 09-22-2004 03:19 PM
Avisynth: Concern with RemoveDirt Dialhot Avisynth Scripting 13 09-13-2004 12:28 PM




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