Help scripting

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Help scripting

Postby Ryukz82 » Sat May 09, 2009 4:38 am

I´m new at scripting an I realy need some advices from you with my TTGL r2 dvds footage

my script with no filters :
Code: Select all
MPEG2Source("C:\yourfolder\blah.d2v")
TFM(mode=5,pp=7,slow=2)
crop(8,0,-8,0)
LanczosResize(848,480)


examples:
Image
Image
Image
Image

I tried some filters but its still not perfect
script with filters:
Code: Select all
MPEG2Source("C:\yourfolder\blah.d2v")
TFM(mode=5,pp=7,slow=2)
fft3dgpu(bt=3,sigma=3,plane=4,mode=1,precision=2,scutoff=0.8)
VMToon(strength=70, luma_cap=150, threshold=3, thinning=0, sharpen=true, mask=true, ssw=4, ssh=4, xstren=255, xthresh=255)
crop(8,0,-8,0)
LanczosResize(848,480)


Image

can you help me please I think this is a pretty good footage so it will be easy for you xD
User avatar
Ryukz82
 
Joined: 09 Mar 2008

Re: Help scripting

Postby mirkosp » Sat May 09, 2009 6:17 am

Honestly... I don't really see any issue to filter in those screenshots. At most you could try to do something for the red chroma issue, but that's ugh... hard to fix, if even possible at all.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Help scripting

Postby Ryukz82 » Sat May 09, 2009 7:57 am

mirkosp wrote:Honestly... I don't really see any issue to filter in those screenshots. At most you could try to do something for the red chroma issue, but that's ugh... hard to fix, if even possible at all.


I see... so is there any way that i could fix or at least reduce the red chroma issue?
User avatar
Ryukz82
 
Joined: 09 Mar 2008

Re: Help scripting

Postby Scintilla » Sat May 09, 2009 9:01 am

mirkosp wrote:Honestly... I don't really see any issue to filter in those screenshots. At most you could try to do something for the red chroma issue, but that's ugh... hard to fix, if even possible at all.

Wait, what red chroma issue? The whites look fine to me.

But yes, I don't see much that needs fixing either.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Help scripting

Postby Ryukz82 » Sat May 09, 2009 9:49 am

Scintilla wrote:
mirkosp wrote:Honestly... I don't really see any issue to filter in those screenshots. At most you could try to do something for the red chroma issue, but that's ugh... hard to fix, if even possible at all.

Wait, what red chroma issue? The whites look fine to me.

But yes, I don't see much that needs fixing either.


I mean look at yoko´s hair, it seems blocky on the edges, is it some kind of noise or something?
User avatar
Ryukz82
 
Joined: 09 Mar 2008

Re: Help scripting

Postby AaronAMV » Sat May 09, 2009 12:17 pm

Hm, try maybe
Code: Select all
Undot()


The stuff around Yoko's hair is mosquito noise, so you need a filter dealing with that.
Image
User avatar
AaronAMV
eating that e. coli spinach
 
Joined: 22 Jan 2008
Location: (◔ ◡ ◔ )
Status: (◔ ◡ ◔ )

Re: Help scripting

Postby Ryukz82 » Sat May 09, 2009 2:06 pm

AaronAMV wrote:Hm, try maybe
Code: Select all
Undot()


The stuff around Yoko's hair is mosquito noise, so you need a filter dealing with that.


i used undot and i see no big difference is there any other mosquito noise reducer or somtething?
Image
User avatar
Ryukz82
 
Joined: 09 Mar 2008

Re: Help scripting

Postby Vax » Sat May 09, 2009 2:44 pm

Well there's always dedot() and FastLineDarken(strength=?,luma_cap=?,thinning=?)
User avatar
Vax
Sexy black guy
 
Joined: 11 Oct 2008
Location: New York

Re: Help scripting

Postby mirkosp » Sun May 10, 2009 9:20 am

Scintilla wrote:
mirkosp wrote:Honestly... I don't really see any issue to filter in those screenshots. At most you could try to do something for the red chroma issue, but that's ugh... hard to fix, if even possible at all.

Wait, what red chroma issue? The whites look fine to me.

But yes, I don't see much that needs fixing either.


I'm talking about the red chroma upsampling error that you can easily see on the red borders.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Help scripting

Postby Scintilla » Sun May 10, 2009 2:01 pm

Vax wrote:Well there's always dedot()

No. DeDot is only for dealing with dot crawl and rainbowing, and this source appears to have neither.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Help scripting

Postby Qyot27 » Sun May 10, 2009 3:46 pm

I'm just copying from the 'Sampling' page on the AviSynth Wiki, but it seems that the only way to minimize it is to blur the chroma channel.

Chroma Upsampling Error (or CUE)

As previously stated, the Chroma Upsampling Error occurs when you convert from (truly) interlaced YV12 to mostly any other format and the converter thinks the video is progressive. Or, the other way around, if material is progressive (or interlaced encoded as progressive), and upsampled as interlaced. This is however not as bad as the other way around.

When VDub previews your video, it will need to convert it to RGB. Since AviSynth delivers YV12, it asks the codec (for example XviD or DivX) to convert YV12 to RGB. The codec however ALWAYS upsamples progressively. Hence you will get artifacts in VDub preview on interlaced YV12 material. This is however not present in the YV12 video (or in the resulting encoding). To confirm this, let AviSynth do the conversion by adding ConvertToRGB(interlaced=true) at the end of your script.

Correct me if I'm wrong here, but that almost reads like they're saying the error may simply be a problem with VDub's display, similar to but not exactly like not having the display bit depth correctly set to 24bits. And therefore that if it is an issue at all, letting AviSynth resample the colorspace may be the way to solve it.

Correcting video having the Chroma Upsampling Error

You will have to blur the chroma in some way (leaving the luma intact).

For example (using TomsMoComp):

Code: Select all
AviSource(...)
MergeChroma(TomsMoComp(-1,5,0))


Theoretical Aspects

In this section, the chroma placement will be explained, how this is related to subsampling (RGB -> YUY2 -> YV12) and how the upsampling is done in AviSynth.

It should also explain in detail why the CUE occurs. To summarize the latter, the problem is that there is a difference between YV12 progressive and YV12 interlaced, because the chroma is shared vertically between neighboring pixels.

See also this doom9 thread.
http://forum.doom9.org/showthread.php?s ... upsampling
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 0 guests