Log in

View Full Version : Resizing first and after Denoising?


VoidShell
3rd August 2007, 16:50
Q1. Resizing first and after denoising is more efficient than opposite way? If it is like that and is the reason what?

Q2. I use color filter ColorYUY2, Tweak, HDRAGC.

Case1
ColorYUY2(levels="TV->PC", interpolation="411->422R", interlaced=true)
SeparateFields()
Tweak(hue=1.05, sat=1.05)
HDRAGC(max_gain=0.2, min_gain=0.2, coef_gain=0.2)
Weave()

TFM(order=-1, mode=1)
TDecimate(mode=0, cycle=5)


Case2.
TFM(order=-1, mode=1)
TDecimate(mode=0, cycle=5)

ColorYUY2(levels="TV->PC", interpolation="411->422R")
Tweak(hue=1.05, sat=1.05)
HDRAGC(max_gain=0.2, min_gain=0.2, coef_gain=0.2)

Is the what kind of case more effective?

Q3. It will not know the difference which tries to apply Interpolation="422" and and Interpolation="422" but. Is the concrete difference what?


Read to thanks :)

Dark Shikari
3rd August 2007, 17:02
I like to denoise before resizing because the interpolation of resizing can blur the noise, making it harder for the denoiser to do its job.

It takes more CPU though obviously (or GPU in the case of FFT3DGPU).

adoniscik
3rd August 2007, 17:44
Denoise before anything else, so you work on the original image.

Terranigma
3rd August 2007, 18:14
I like to denoise before resizing because the interpolation of resizing can blur the noise, making it harder for the denoiser to do its job.
Ok, so you're saying you'd do the same with a hd source such as 1080i/p? :devil:

VoidShell
4th August 2007, 15:19
Thanks to all reply. But Q2, Q3 are not answered yet. Help me please :)

Dark Shikari
4th August 2007, 15:31
Ok, so you're saying you'd do the same with a hd source such as 1080i/p? :devil:
Oh yes. :cool:

Terranigma
4th August 2007, 16:46
Thanks to all reply. But Q2, Q3 are not answered yet. Help me please :)
Well sorry to deter your post OT, but I don't use tweaks; I prefer to keep the video's colorimetry the same as the source and just use
Colormatrix(hints=true)

Oh yes. :cool:

That's interesting. Could you try doing a ssim test for denoising before and after resizing? Use Spline36 as the resizer too. This should be interesting in seeing how much they'd differ from each other.:)

TheRyuu
5th August 2007, 06:32
Colormatrix(hints=true)

Just make sure to use info=3 (it's 3 right?) on mpeg2source to get the info for hints=true.

As for tweaks. I only really use them if the source is really bad. And even at that, not very powerful ones. Personally, I've only really ever used colorYUV and tweak and even with those, I rarely use them. I'm trying out HDRAGC and this new Autolevels filter in the development thread.

For Q2 I'd use case 2 since then you'd be working with progressive frames.

For Q1, it would depend what would look more appealing based on source. Some people say resizing before to a higher resolution blows up the noise, however I think it blurs it, therefore if I'm blowing up an image I'll resize after. If I'm making an image smaller, it really wouldn't matter to me.

VoidShell
5th August 2007, 14:49
Oh, thanks to reply all. However I always use colormatrix. I don't write this, my mistake sorry.
ColorYUY2 and Tweak are needed really bad source, and that my source is really bad source! :)

VoidShell
5th August 2007, 15:06
For Q2 I'd use case 2 since then you'd be working with progressive frames.

I hear someone that ColorMatrix use to good before deinterlaced like this
ColorMatrix(mode="Rec.709->Rec.601", d2v=D2VPath, interlaced=true)

Accurately, it is good that there is ColorMatrix rightly after mpeg2source like this
D2VPath="F:\Encoding\Source\LOVE_LETTER\VTS_02_2.d2v"
MPEG2Source(D2VPath)
ColorMatrix(mode="Rec.709->Rec.601", d2v=D2VPath, interlaced=true)

(But I can't remember why)

Anyway I can't hear about ColorYUY2 and Tweak where it is good.
But there is common point that they are color adjust filter.
So same principle like ColorMatrix, is it good that there are ColorYUY2 and Tweak before deinterlaced like this?

D2VPath="F:\Encoding\Source\LOVE_LETTER\VTS_02_2.d2v"
MPEG2Source(D2VPath)
ColorMatrix(mode="Rec.709->Rec.601", d2v=D2VPath, interlaced=true)

ColorYUY2(levels="TV->PC", interpolation="411->422R", interlaced=true)
SeparateFields()
Tweak(hue=1.05, sat=1.05)
HDRAGC(max_gain=0.2, min_gain=0.2, coef_gain=0.2)
Weave()

TFM(order=-1, mode=1)
TDecimate(mode=0, cycle=5)

Terranigma
5th August 2007, 15:43
I hear someone that ColorMatrix use to good before deinterlaced like this


Accurately, it is good that there is ColorMatrix rightly after mpeg2source like this


(But I can't remember why)

Anyway I can't hear about ColorYUY2 and Tweak where it is good.
But there is common point that they are color adjust filter.
So same principle like ColorMatrix, is it good that there are ColorYUY2 and Tweak before deinterlaced like this?

D2VPath="F:\Encoding\Source\LOVE_LETTER\VTS_02_2.d2v"
MPEG2Source(D2VPath,info=3)
TFM(d2v=d2vpath)
tdecimate()
ColorMatrix(hints=true)
deinterlace
This would be the correct way to use colormatrix if you choose to ivtc, otherwise you should use colormatrix right after your source type.

VoidShell
6th August 2007, 05:50
TFM(d2v=d2vpath)
tdecimate()
ColorMatrix(hints=true)
deinterlace

Thanks to reply. Thanks.
But it is strange why do deinterlace twice?
TFM is deinterlace filter but you also write "deinterlace" on last line.
What's mean about "deinterlace" on last line?

TheRyuu
6th August 2007, 06:49
Thanks to reply. Thanks.
But it is strange why do deinterlace twice?
TFM is deinterlace filter but you also write "deinterlace" on last line.
What's mean about "deinterlace" on last line?

Probably just something he typed.
I know tfm+tdecimate make a good pair. But I don't think deinterlace exists. :)

Terranigma
6th August 2007, 15:22
Thanks to reply. Thanks.
But it is strange why do deinterlace twice?
TFM is deinterlace filter but you also write "deinterlace" on last line.
What's mean about "deinterlace" on last line?
TFM is mainly an ivtc filter.. The deinterlacer features is just a bonus imo.

Probably just something he typed.
I know tfm+tdecimate make a good pair. But I don't think deinterlace exists.

Yes, I know that tfm's a deinterlacer as well. I wrote deinterlace, because I never use tfm, myself, for the deinterlacing process. With tfm, I set the pp to 1, and for tdecimate I add (expp=true) to use an external deinterlacer/bobber such as securedeint or mcbob. =P

TheRyuu
7th August 2007, 02:27
Yes, I know that tfm's a deinterlacer as well. I wrote deinterlace, because I never use tfm, myself, for the deinterlacing process. With tfm, I set the pp to 1, and for tdecimate I add (expp=true) to use an external deinterlacer/bobber such as securedeint or mcbob. =P

Oh, misread it.
Never mind then.

I get exactly what your saying now :)

VoidShell
7th August 2007, 04:34
Thanks Terranigma and thanks wizboy11.

I know what your saying now Terranigma.
But I don't know exactly where ColorMatrix is good.
(Because you write down deinterlace twice.)
In conclusion, if TFM and TDecimate are only used then where ColorMatrix is good, before TFM and TDecimate or after TFM and TDecimate?

I think that script you write down is where is ColorMatrix before deinterlace, because TFM and TDeciamte are fake and not really process what you say.
(But you don't use "interlaced=true". Why?)

And I like to use "d2v=D2VPath" more than "hint=true".

This is useful when the colorimetry info doesn't change throughout your video (as is almost always the case), because it is much faster than using hints. If it does, it will output an error. If the d2v- file is located in a different folder as the AviSynth script you have to give the full path of the d2v-file.

VoidShell
7th August 2007, 14:56
I find Wilbert's who is developer of ColorMatrix reply that is answerd to almost similar my question.

Alain2: -- If I don't ivtc first but place colormatrix with d2v=.. and interlaced=true immediately after mpeg2source, would that be a worse solution and why ?

Wilbert: Yes, a little bit worse. The chroma of the clip will be blurred more in that case (because it's being treated as interlaced).

Anyway thanks to all reply.
Even Terranigma. Thanks very much :)

Terranigma
7th August 2007, 15:11
I find Wilbert's who is developer of ColorMatrix reply that is answerd to almost similar my question.



Anyway thanks to all reply.
Even Terranigma. Thanks very much :)

Actually, that's why I did'nt have interlaced=true for colormatrix, because tfm turns the interlaced frames to progressive, so interlaced=true should'nt be set. If you choose to ivtc, set the colormatrix afterwards.

VoidShell
7th August 2007, 17:13
Ah~ sorry. I misunderstood your massage.
I read again and then understand it that you use deinterlace process twice.
(I knew your TFM is just a fake.)
Sorry :)