Log in

View Full Version : Denoise help


miggs78
5th November 2007, 13:56
I am trying to denoise this small sample clip from an indian movie..
I have linked both the vob sample and xvid converted sample, as you can see the xvid had a lot of noise...

vob file
xvid conversion (http://www.sendspace.com/file/qrnlom)

The script I used... DGDecode_mpeg2source("E:\Documents and Settings\Miggs78\My Documents\megui\rip3.d2v",cpu=4,info=3)
ColorMatrix(hints=true,interlaced=true)
edeintted = last.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
TDeint(order=1,edeint=edeintted)
repal()
vinverse()
crop( 4, 60, -6, -56)
Lanczos4Resize(704,304) # Lanczos4 (Sharp)
#denoise
RemoveGrain(mode=17)
LimitedSharpenFaster(strength=60)

I really need help please.

Irakli
5th November 2007, 15:20
Hi!

If I am correct, it's not noise in xvid file but just horrible blocking :eek:.
I noticed that your xvid file is about 30 times smaller than original vob, and I don't think it is possible to achieve decent quality at such strong compression ratio. I think the best thing to do is to just increase the bitrate (perhaps from your ~370kbps to something like 800kbps) and/or lower resolution.

Regards,
Irakli.

miggs78
6th November 2007, 00:34
Hi!

If I am correct, it's not noise in xvid file but just horrible blocking :eek:.
I noticed that your xvid file is about 30 times smaller than original vob, and I don't think it is possible to achieve decent quality at such strong compression ratio. I think the best thing to do is to just increase the bitrate (perhaps from your ~370kbps to something like 800kbps) and/or lower resolution.

Regards,
Irakli.

I get you, the reason its so small is to remove some noise and blocking in the small sample, so I know when I go ahead and to the whole movie I know it turns out good...

Thats my idea, I am just doing a small sample first, before I can go ahead on a bigger file.. Thanks..

But for blocking, what filters do you suggest ?

Adub
6th November 2007, 00:54
deblock_qed() is one of the best. Just use search and you can find it no problem.

salehin
6th November 2007, 01:33
Also:

o if the source is of rec. 709* then remove the colorcorrection:
ColorMatrix(hints=true,interlaced=true)
*= check using dgindex (press preview and look at the colorimetry info)

o For grain preservation try GrainOtimizer (http://forum.doom9.org/showthread.php?t=130611)- works very well with x264, don't know about xvid

miggs78
6th November 2007, 02:55
Thanks for the suggestions.. to make it more clear, this is what I'm trying to accomplish, its really worse..

http://maxupload.com/img/74715C1A.png
http://maxupload.com/img/0244D9A1.png

R3Z
6th November 2007, 04:15
Its quite simple, up the bitrate. The source doesnt present anywhere near as much blocking (if at all really).

The only simple reason your xvid encode blocks up is that its starved of bitrate.

miggs78
6th November 2007, 04:48
Its quite simple, up the bitrate. The source doesnt present anywhere near as much blocking (if at all really).

The only simple reason your xvid encode blocks up is that its starved of bitrate.

how do I do that.... thanks..

legionator2
6th November 2007, 05:05
Adjust the XviD encoder while using VirtualDub or any other encoder. With low bitrate, 2 passes encoding is a must to achieve good quality.

R3Z
6th November 2007, 05:57
how do I do that.... thanks..

What app are you using to encode mate ?

Adub
6th November 2007, 07:58
Wait a sec.

Salehin, I am pretty sure xvid likes rec. 601. If he has rec. 709, he should could colormatrix in his script.

salehin
6th November 2007, 10:48
Wait a sec.

Salehin, I am pretty sure xvid likes rec. 601. If he has rec. 709, he should could colormatrix in his script.

Sorry merlin. I thought both xvid and x264 requires 601->709 conversion (as broadcast streams were meant only for tvs, not any more)

So does that mean that xvid does the 601->709 conversion automatically?

sorry for the confusion, miggs78. Either way, you should always use AvsP (http://forum.doom9.org/showthread.php?t=129385) (- create two avs scripts- with and without colormatrix- see which one gives a result closer to the color balance of the source)

miggs78
6th November 2007, 11:04
First of all I'm using megui, sorry for not mentioning that..

Thanks all of you, I just dunno what I did, I think I restored the video profiles to default settings (I think so)..

But the video quality was much much better and clearer this time round, and also the output size increased a tad bit..

Script I used DGDecode_mpeg2source("E:\Documents and Settings\Miggs78\My Documents\megui\rip3.d2v",cpu=2,info=3)
ColorMatrix(hints=true,interlaced=true)
edeintted = last.AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
TDeint(order=1,edeint=edeintted)
crop( 4, 60, -6, -56)

LanczosResize(640,272) # Lanczos (Sharp)
#denoise
RemoveGrain(mode=17)
limitedsharpenfaster(smode=3,strength=50,ss_y=1.0, ss_x=1.0,overshoot=1)

sample: http://www.sendspace.com/file/f19qvg

Didée
6th November 2007, 13:21
You should use a quite different kind of processing for this source. If you compare your sample to this one (http://www.sendspace.com/file/hvgspm) - do you notice a difference? ;)

Hint: "MRestore"

miggs78
7th November 2007, 02:24
You should use a quite different kind of processing for this source. If you compare your sample to this one (http://www.sendspace.com/file/hvgspm) - do you notice a difference? ;)

Hint: "MRestore"

Very nice work Didee.. I was comparing to this one...I used a little different script and used repal this time...

DGDecode_mpeg2source("E:\Documents and Settings\Miggs78\My Documents\megui\rip3.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
#deinterlace
assumetff()
tdeint(mode=1)
repal()
#crop
crop( 4, 56, -4, -54)
#resize
Spline36Resize(704,304)

http://maxupload.com/416E8B70

What do you think..