Log in

View Full Version : How do I deinterlace this video?


Gaby83
15th June 2010, 06:59
Well, I been trying with every deinterlacer I know, (TDeint, yadifmod+nnedi, selecteven, TomsMoComp, etc) and I'm not getting good results, so, here I'm, asking you guys for some help :)

Its a 45min video and I'm encoding it at 700mb size (I use avisynth+xvid codec, 640x480 resize), should be enough, isnt? Well, I think the problem is that I'm not deinterlacing well, because I've never work with this kind of source (R2 DVD source) and I know sometimes R2DVDs have weird things xD

Well, here is the exemple, 37mb .M2V file demuxed from the original vob file.

http://www.mediafire.com/?hmi3hxjggmv

Hope somebody can help me, since I have tried for days and days and no luck :(

Gabriela.

PD. Sorry about my bad english, it's not my native language.

Guest
15th June 2010, 12:17
That is simple pure video, so you should have no problem deinterlacing this.

When you say you're not getting good results can you be more specific?

I used PureVideo on this via DGDecNV and it looked great.

Firebird
15th June 2010, 14:14
Good enough for you?
http://www.mediafire.com/?jthtwwzkugm

Bobbed via TempGaussMC.

Gaby83
15th June 2010, 15:17
That is simple pure video, so you should have no problem deinterlacing this.


Well, I though it was some weird thing, but now I know that I'm the problem xD


When you say you're not getting good results can you be more specific?


These are the "not good results" I mean:

Yadif:
http://img41.imageshack.us/img41/5821/pv01.png

TomsMoComp:
http://img341.imageshack.us/img341/4489/pv02.png

Sorry, I deleted the other tries with TDeint, Selecteven, etc. because they were worst :S

As can you see, the image is pixelated and blury... I've applied filters for sharpening a bit but the result was even worst because of bitrate needs... I know that is hard to explain with only an image, but, I'm not here to complain about my noobness (because I can't encode this properly), I just want some help so I can improve :)


I used PureVideo on this via DGDecNV and it looked great.

What is that? I googled it and notice that DGDecNV is... a software?

EDIT: OOh I c... DGDecNV its like a better/newer version of DGIndex, right? :x


Thank you very much for your help and your time neuron2!

------------------------------------------------------------------------


Good enough for you?
http://www.mediafire.com/?jthtwwzkugm

Bobbed via TempGaussMC.

I do like the result very much! (even if your encoded video is mkv and almost the same size of the vob file) I think you did a good job deinterlacing, I think this video will have better compress than mine, I would like to try it.

I never used TempGaussMC, since I see this filter is advanced for my knowledge, can you give me the script you use it to encode it? so I can learn how to use it faster from it.

Thank you a bunch Firebird!

Guest
15th June 2010, 15:19
Please explain your term "pixelated".

Gaby83
15th June 2010, 16:06
Please explain your term "pixelated".

too many blocks/noise... :o

Firebird
15th June 2010, 16:36
I do like the result very much! (even if your encoded video is mkv and almost the same size of the vob file) I think you did a good job deinterlacing, I think this video will have better compress than mine, I would like to try it.

I never used TempGaussMC, since I see this filter is advanced for my knowledge, can you give me the script you use it to encode it? so I can learn how to use it faster from it.

Thank you a bunch Firebird!
http://forum.doom9.org/showthread.php?p=1395016#post1395016

It's slow at default settings, on your sample i used TempGaussMC_beta2u(1,1,1,edimode="bob").

foxyshadis
15th June 2010, 19:22
Its a 45min video and I'm encoding it at 700mb size (I use avisynth+xvid codec, 640x480 resize), should be enough, isnt?

No, it's not. Your attempts to sharpen it are just making it worse. 700 MB + slow settings on x264 might work, but the video is just too detailed and full of motion to look great in xvid at 700. Yadif will make it worse, Smoothdeinterlacer or TGMC would be better at that rate. You could probably get away with compressing it, then denoising and sharpening on playback (all current players let you do both, older ones only let you denoise).

Gaby83
16th June 2010, 03:42
Thank you very much both foxyshadis and Firebird, I'm doing some tests with TGMC now, this is the AVS I'm using:


LoadPlugin("C:\PLUGINS\DGDecode\DGDecode.dll")
LoadPlugin("C:\PLUGINS\decomb523\Decomb.dll")
LoadPlugin("C:\PLUGINS\EEDI2v092\EEDI2\EEDI2.dll")
LoadPlugin("C:\PLUGINS\leakkerneldeint154\LeakKernelDeint.dll")
LoadPlugin("C:\PLUGINS\masktools-v2.0a44\mt_masktools-26.dll")
LoadPlugin("C:\PLUGINS\mvtools-v2.5.10\mvtools2.dll")
LoadPlugin("C:\PLUGINS\RepairRemoveGrain\RepairS.dll")
LoadPlugin("C:\PLUGINS\RepairRemoveGrain\RemoveGrainS.dll")
LoadPlugin("C:\PLUGINS\VerticalCleaner\VerticalCleanerSSE2.dll")
Import("C:\PLUGINS\TempGaussMC_beta2\TempGaussMC_beta2.avsi")
MPEG2Source("PG01.d2v")
TempGaussMC_beta2(1,1,1,edimode="bob")
crop(16,4,688,472)
Spline36resize(640,480)


I'll make some test with "bob" and "nnedi2" and watch the results. :D

I have another question: is it safe to use cropping and luminance filter with DGIndex instead of using avs commands?

I know that TempGaussMC its a very good filter, so complete, wich settings can I use to make a better use of it? (it doesn't matter if it takes too long for encoding).

Thanks!!
-----------------------------------
EDIT: Is there a way to deinterlace with TGMC at 29fps? Coz it doesn't mater what "eddimode" I use, its always 60fps and it takes forever to compress and I don't know if this affects compression too (like it need double of size than a simple 29fps video).

Sorry about my noobness, I'm trying to learn :3
Gabriella.

--------------------------------------

EDIT2: Forget it, no good results again xD I think the problem is the file is too small and it lacks bitrate. TGMC took forever to encode (3fps but it took 16 hrs every pass :S) and I didn't like the results (it washes/make blur the image too much)... I'm starting to give up this xD.

Gaby83
20th June 2010, 08:14
I just want to tell you that I finally got the results I was waiting for, it was hours and hours of testing (since my comp its a bit old) but I'm finally satisfied with the results :D

This is the script I used:


LoadPlugin("C:\PLUGINS\DGDecode\DGDecode.dll")
LoadPlugin("C:\PLUGINS\decomb523\Decomb.dll")
LoadPlugin("C:\PLUGINS\nnedi3\nnedi3.dll")
LoadPlugin("C:\PLUGINS\masktools-v2.0a44\mt_masktools-26.dll")
LoadPlugin("C:\PLUGINS\mvtools-v2.5.10\mvtools2.dll")
LoadPlugin("C:\PLUGINS\RepairRemoveGrain\RepairSSE3.dll")
LoadPlugin("C:\PLUGINS\RepairRemoveGrain\RemoveGrainSSE3.dll")
LoadPlugin("C:\PLUGINS\VerticalCleaner\VerticalCleanerSSE2.dll")
LoadPlugin("C:\PLUGINS\vinverse.dll")
LoadPlugin("C:\plugins\VSfilter.dll")
LoadPlugin("C:\plugins\Deblock\deblock.dll")
LoadPlugin("C:\plugins\undot.dll")
LoadPlugin("C:\plugins\DCTfilter\DctFilter.dll")
Import("C:\plugins\Deblock_QED_MT2.avs")
Import("C:\PLUGINS\TempGaussMC_beta2\TempGaussMC_beta2.avsi")
MPEG2Source("PG.d2v")
Spline36resize(640,height)
AssumeTFF()
TempGaussMC_beta2(1,1,2,EdiMode="NNEDI3",sharpness=6.0)
selecteven()
vinverse()
Tweak(bright=-15.0,sat=1.2)
src = last
sharp = src.Sharpen(.5)
src_super = src.MSuper()
sharp_super = sharp.Msuper(levels=1)
bvec = src_super.MAnalyse(blksize=16, isb=true, search=5)
fvec = src_super.MAnalyse(blksize=16, isb=false, search=2)
src.MDegrain1(sharp_super, bvec, fvec)
Deblock_QED()
TextSub("P1.ass")
Undot()



I know is too much filtering, and the results are not "perfect" but enough. (Video is 45min lenght and I encoded it to XVID 750mb(with audio mp3 128kbps).

Thanks for everything! Now I know how to use TGMC :D