digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: How to filter this very grainy video? (http://www.digitalfaq.com/archives/avisynth/9479-avisynth-how-filter.html)

audioslave 05-05-2004 06:40 PM

Avisynth: How to filter this very grainy video?
 
Hi guys,
I'm having trouble with encoding "The Texas Chainsaw Massacre". Well actually it's only the first minute or so. It's VERY grainy, and looks like this (not encoded):
http://www.digitalfaq.com/archives/error.gif
I need to find a filter I can use for frames 1139-1916 ONLY! The clip on those frames are the worst I've ever seen. Looks like Lego when encoded :lol: !
So, please, give me advice on a filter to use + settings.
Thanks :wink: .

kwag 05-05-2004 06:48 PM

Re: Need help to filter this...
 
Quote:

Originally Posted by audioslave
So, please, give me advice on a filter to use + settings.
Thanks :wink: .

How about some sand paper :mrgreen:
( just kidding :cool: )

I would use a VERY strong Spatial filter, so you could try STMedianFilter(8, 8, 0, 0 ) for those frames.
Also, make sure you have Unfilter() and Deen() before the STMedian line.

-kwag

audioslave 05-05-2004 06:51 PM

@ kwag
:lol:
Thanks pal! I'll try those filters right away.

audioslave 05-05-2004 06:54 PM

BTW What values do you think I could use for UnFilter?

kwag 05-05-2004 07:05 PM

Quote:

Originally Posted by audioslave
BTW What values do you think I could use for UnFilter?

I'm not sure Unfilter will really help, in that case.
You really need a strong spatial, and maybe even some temporal filtering.
The easiest way you can make a comparison, if you were lucky and you have MovieStacker, is to click on the "Compare" function.
Then you can interactively change filter values, and compare the input (RAW) video to the output (Filtered) video on the screens. :idea:
That's what I would do, because you can immediately see any changes, and make filter corrections, before you generate your new .avs script.

-kwag

audioslave 05-05-2004 07:34 PM

Well, it didn't help much :cry: . Not quite sure what to do about this...
Thanks anyways, Kwag!

kwag 05-05-2004 07:36 PM

Quote:

Originally Posted by audioslave
Well, it didn't help much :cry: . Not quite sure what to do about this...
Thanks anyways, Kwag!

I don't think there's too much you can do :!:
I mean, that scene looks like a Charlie Chaplin movie from the 1920's, played back 1000 times :lol:

-kwag

audioslave 05-05-2004 09:50 PM

Quote:

Originally Posted by kwag
I don't think there's too much you can do :!:
I mean, that scene looks like a Charlie Chaplin movie from the 1920's, played back 1000 times :lol:

-kwag

You're right about that! :lol:
But, surely, there must be a way of encoding this intro so that it at least looks OK :?: That's what I'm hoping for... :roll:

Dialhot 05-05-2004 09:54 PM

Try edeen, the monster version of deen or why not try the wonderfull filters that were in dustV5.dll ? GoldDust was the heavier one. Try it.

audioslave 05-05-2004 09:59 PM

@Dialhot
Thanks! I never thought of that. :lol:

audioslave 05-05-2004 10:28 PM

Well I'll be damned :lol: . Thank you Dialhot, it worked out great with GoldDust :!: The macro blocks are gone :D . Who said the dust filters were long gone dead?
:wink:

Jellygoose 05-06-2004 06:11 AM

I sure didn't! I use the Dust Filters from time to time, and they're still doing a great job in my eyes! :wink:

incredible 05-06-2004 06:31 AM

@ Our swedish friend Audioslave

I think if I understood that right:
Quote:

I need to find a filter I can use for frames 1139-1916
Then my anser is: You can apply individual Filtering on special determined parts of the movie!
I often use it when having captures incl. different scene qualities, like documentations where diff. video origins are used.
Or maybe you got i.E. only one underwater scene in the movie where a blockbuster makes sense. And by the logic below you can avoid blockbustering/noise adding the whole movie! = keeping better the compression of the whole movie.

Code:

v=Avisource("xxxxxxxxxxx.avi") # or mepeg2source, just a source.

v1= trim(v,0,1000) # first movie partition in frames
v2= trim(v,1001,1500).deen("a2d",3,10,12) # second movie partition which will be individual "pre"-treaten
v3= trim(v,1501,2999) # third movie partition

# Lets merge them again

video=v1+v2+v3

# lets continue using the "normal" script we purposed to use

undot(video) # assigning the "video" variable once in the first filter to become a state as "last"
Asharp(1,4)
Bicubicresize(xxx,yyy,a,b,x,y,xxx,yyy)
StmedianFilter(3,3,1,1)

...etc. etc. etc.

Ist that what was your main purpose :?:
I'm in my office so the script above is just written down out of my head ... but anyhow, you see its logic. :)

PS: load your regular avs in VdubMod and use its script editor ... you can set in VdubMod the markers when previewing&determining the cut points and in the script editor you can see a command in the menue "insert cut points as trims" or so similair. This will output a line in the previewed/loaded script where the cursor is placed within the script .. lets say the end. So you just can cut&paste the trims to the right location in the beginning of the script as explained above.

Boulder 05-06-2004 06:41 AM

You can also use the Avisynth internal function ApplyRange. See the docs for more info :wink:

incredible 05-06-2004 06:49 AM

:lol:
Things can be that easy, right boulder!
They fixed the audio support of ApplyRange() already since vers. 2.53 8O

I should read the Changelist of new releases not only in its "whats new" parts ;-)

@ all
http://www.avisynth.org/index.php?page=Animate
ApplyRange() is a part of the Animate() filter set.

audioslave 05-06-2004 12:00 PM

@ All
Thank you VERY much guys. You've been most helpful :!: :D
I don't know about you, but I sure love this forum. Quick and precise answers - (almost) all of the time :wink: . BTW The Massacre is turning out great :) .


All times are GMT -5. The time now is 04:36 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.