Log in

View Full Version : How to deinterlace this pal dvd source properly??


NEOgeo
30th August 2006, 19:46
hi , im new to understanding the concepts of deinterlacing and how to go about doing it properly using avisynth, and i have truly used the search function to search for solutions to this and have tried many plugins/scripts for avisynth to try and properly deinterlace this video, but nothing has done it properly yet , megui told me that the structure of this video was a hybrid of both progressive and interlaced , and the options it auto choose for me made extremly messd up video with really bad artifacts everywere, the result had more artifacts than the interlaced source D: so im assuming this is why i cant get it deinterlaced properly using conventional avisynth plugins either , so im at my last sraw here and im geting pissed off with myself that i cant do soemthing as simple as deinterlace a dvd , so all i can do now is post a section of the video and hopefully some kind soul can havea look at it and come up with an avisynth plugin/script for me to do this properly , i aim to make this dvd to x264 in the end if that makes any difference ? the source is 25fps pal but i suspect its maybe been film > ntsc > pal :/ or soemthing else messy like this.

i uploaded the file to badongo as i cant use rapidshare, it just means u must wait 20 secs after clicking the link then enter a short security code to get the file, also i made this xvid .. i hope this keeps the frame structure intact but i dont know how i could have split a small section from the middle of a vob , i can still see the interlacing tho so hopefully soemone can still work with it .

the source is also anamorphic , so another question is ... can i reencode it to anamorphic to x264 and it will still have a proper DAR flag of 16:9 ? or i MUST resize it myself to 720x405(hmm that aint 16 tho ?)

thanks for your help in advance, im quite stuck here :/

updated link http://www.badongo.com/file/1320378

CWR03
30th August 2006, 20:10
You'll need to upload a sample of the original .VOB - use Cuttermaran to save a small sample.

NEOgeo
31st August 2006, 07:49
hi, thanks for the info, i cut a part of the vob and uploaded it to here

http://www.badongo.com/file/1320378

smok3
31st August 2006, 09:06
did a quick test simply with

TomsMoComp(1,5,1)

and i cant see any special problems?

and yes you can encode anamorfic (i think you need to use the correct sar flag.)

GodofaGap
31st August 2006, 09:19
Doing a separatefields() shows that a lot of fields are blended. Perhaps restore24 can be useful.

manono
31st August 2006, 10:55
Yes, it's the victim of a bad NTSC2PAL conversion, and for best results it needs to be unblended by something like Restore24. Here's an XviD of it:

http://rapidshare.de/files/31412437/Sample.avi.html

No audio. Less than 4 MB.

Search around for the Restore24 threads. I loaded DGDecode, RepairSSE2, RemoveGrain, ReduceFlicker, MaskTools, LeakKernelDeint, TDeint, SmartDecimate, AviSynth_C and Warpsharp. The script was a simple:

MPEG2Source("C:\PAth\To\Sample.d2v")
Restore24(numr=24,deno=50)
crop(0,6,706,566)
LanczosResize(640,352)

NEOgeo
31st August 2006, 11:48
thanks for the replies and effort, this will surly help me alot .. but i cant see that sample u made as i stated in my post i cant use rapidshare (it see's my isp's transparent porxy as my ip and says i have Dled too much :/ )

manono
31st August 2006, 12:11
OK, I took the time and trouble to make it. You have to watch it. :)

http://www.badongo.com/vid/193232/1

NEOgeo
31st August 2006, 12:23
:D well done, nice results , theres 2 artifacts tho but im pretty sure its because i cut up a vob, as were the artifacts apear in the avi .. the vob stutters there when played back .

i downloaded a restore24 "package" and copied the files to my avisynth\pugins dir ... and tried to manually load the plugins needed for restore24 in my avs script, but it couldnt load smartdescimate.dll and also there is "no function named restore24" , im guessing i need a different version of avisynth maybe ? i have version 2.5 right now

EDIT: i managed to load smartdecimate by using "loadCplugin" , but still i get the error "no function named restore24" , does this take alot more setup than im doing ? :/

manono
31st August 2006, 17:31
The artifacts in the XviD are because the vob has artifacts in the same place.

For me, Restore24 works only with AviSynth ver. 2.55, nothing more recent.

The SmartDecimate.dll needs a LoadCPlugin.

The Restore24 function is renamed with an .avsi extension, goes in the AviSynth Plugins folder, and, with luck, gets called automatically when the script is opened. Or you can call it with the Import command. This is the newer version of Restore24 I'm using, not yet released. Beta version, or something.