PDA

View Full Version : Deinterlace Help(PAL)


cockpit
26th September 2006, 21:27
I need some suggestion to the best way to deinterlace this movie, I'm assuming there's more than 1 type of pal interlacing and I'm not familiar with any of them. please look the clip and help me determine the proper way to do it.
thank you for your time.

Clip (http://www.dodgethe.net/VTS_04_1.VOB)(ca. 25mb)

neuron2
26th September 2006, 22:58
Please do not ask what's best, per forum rule 12.

You have blended fields. Search for "blended fields".

Scharfi is good at this stuff.

cockpit
27th September 2006, 00:21
ok, I will wait for the "brain"

LoRd_MuldeR
27th September 2006, 00:29
Well, for stupid me this looks like "normal" interlaced footage.
I'd use KernelDeinterlacer/LeakKernDeint or TDeint for deinterlacing.

cockpit
27th September 2006, 00:48
I hope you're wrong mulder. :)
I set the leakkernel threshold all the way down to 10 and it's still not picking up everything.
besides, I trust neuron has seen blended fields before.

LoRd_MuldeR
27th September 2006, 01:17
Well, I use KernelDeinterlacer for a long time now.
And IMHO a threshold of 10 is pretty high.
With my TV captures it's normal to go down to 3 or 2 until all artifacts go away.
And this still gives much better results than any other Deinterlacer I tested.
Except TDeint, which works great for me too.

I think this should definitely work to remove all artifacts from your video.
But of course there might be a better method to deinterlace this special type of Interlace.
Let's wait for the experts...

manono
27th September 2006, 01:42
Hi-

It was converted from NTSC to PAL by blending. Use Restore24 (or one of the other unblenders) to return it to progressive 24fps.

LoRd_MuldeR
27th September 2006, 01:54
Hi-

It was converted from NTSC to PAL by blending. Use Restore24 (or one of the other unblenders) to return it to progressive 24fps.

http://forum.doom9.org/showthread.php?s=&threadid=75432

cockpit
27th September 2006, 02:57
ok, I downloaded the pack that one of the latest post refer to. but I dont know anything about configuring this properly.

edit:
when I use restore24() the picture looks fine, but then I add crop to the mix. and now the picture have been really minimized in vdubmod and I have to stretch them back down. and now the picture is all smeared out all over.

neuron2
27th September 2006, 04:38
LoRd is right that 10 is a high threshold for LKD(). I use 5-7 if there are static areas I'd like to preserve and 0 if not.

You might be happy just deinterlacing, if you can stand the blends. Otherwise, go with manono's suggestion.

cockpit
27th September 2006, 05:19
ok, I assumed it was low, I've only used it once and then I used 40.

still need to figure out how to crop it without screwing up the video with restore24

foxyshadis
27th September 2006, 05:40
Post your full script. Also, if you're using 2.57 you might need a SetLegacyPlanarAlignment() somewhere, depending on which filters you use. Or maybe just an align=true in the crop.

cockpit
27th September 2006, 06:04
I use 2.5.6

import("D:\progs\Restore24\Restore24.avs")
mpeg2source("d:\pusher\pusher.d2v")
Restore24()
crop(6,4,-14,2)

Didée
27th September 2006, 08:10
crop(6,4,-14,2)

Your're cropping a segment that's 2 pixel in height. You want to put "-2" there, to crop 2 pixels from the bottom border. :)

edit ... BTW, that version of Restore24 is considered outdated. There's a newer one (http://forum.doom9.org/showthread.php?p=774197&highlight=restore24#post774197) floating around ... neither finished nor official, but when it works, then it works better than the old one.
(blended 25i -> 24p is fine, 25i -> 30p probably too. Blended 30i -> 24p I would not trust ...)

cockpit
27th September 2006, 08:31
wow, how did I miss that? lol problem solved.

anyway is there a lot of filters involved in restore24?
not sure what I should I add to it. usually I use YlevelsS,Tweak and HybridFuPP.


edit:
tried a brief encode with just restore24() and the video is kinda nice, but the playback is jerky.

Didée
27th September 2006, 09:54
With the "old" or the "new" version?

Didn't check your sample, can't say if R24 is suited at all. There are cases of "regular" blending where it works close to perfectly, and there are case of "irregular" blending where it will not work.

In any case: it's not recommended to do any sort of filtering after R24. The script makes heavy usage of Avisynth's conditional environment, and even one single filter after R24 might cause that R24 will output nonsense.

(It depends ... some things will work behind R24, and some things will just not. That's an, erh, "special feature" of AvisynthConditionalEnvironment + CertainFilters ... there's nothing I can do about. Only save way is Restore24 -> compress /w lossless codec, then lossless file ->filtering-> final compression. Sorry, but it's not my fault.)

foxyshadis
27th September 2006, 10:13
Or, thanks to years of thankless work by teams of scientists at the Tritical Labs underground bunkers, we have the RequestLinear (http://forum.doom9.org/showthread.php?p=804225&highlight=requestlinear#post804225) filter, now included free of charge in the TIVTC package for a limited time. All 2006 filter models must go, major blowout sale!

Didée
27th September 2006, 10:17
... which just crashed for me last time (first time & only time) I tried it ...

edit:
BTW, it's not only a problem of requesting/accessing frames. I've seen cases where putting a filter behind R24 caused that some internal variables of R24 were not updated with their per-frame calculated values, but instead just stayed at zero. Hah, funny. Conditional environment is very ... particular.

By means of Restore24, probably I could fill several pages with Avisynth bug reports. Problem is the "provide the simplest possible script to show the error" requisite. You know that script ... I've no clue what the simplest possible case is, and have neither motivation nor time to search for it.

Your_Idol
27th September 2006, 10:41
for pal i just use FieldDeinterlace(blend=false)

Mug Funky
27th September 2006, 11:44
@ Didée:

2 computers and TCPdeliver? :)

i haven't worked up the nerve to make a script slow enough or unstable enough yet, but i will eventually...

Didée
27th September 2006, 12:13
@Mug Funky:

Good idea! ... but not a practical advice for the average user. "Script doesn't work? Buy a 2nd PC and connect both!"

cockpit
27th September 2006, 16:04
With the "old" or the "new" version?


In any case: it's not recommended to do any sort of filtering after R24. The script makes heavy usage of Avisynth's conditional environment, and even one single filter after R24 might cause that R24 will output nonsense.


used the new version, the only filter I used was crop.

foxyshadis
27th September 2006, 19:52
No 2nd PC needed, two scripts on the same PC work. Or, cut out the TCP/IP middleman and just use Avisource() on the R24 script, which is how I dealt with conditional weirdness before RequestLinear. (Too bad it crashed! I'll give it a shot with R24 sometime and see if I can spot the problem, if tritical hasn't by then.)

cockpit
28th September 2006, 04:10
for pal i just use FieldDeinterlace(blend=false)

this also makes jerky playback

foxyshadis
28th September 2006, 20:16
Do you just load the script up and play? Or do you encode and watch? The second is how you must do it, unless you're looking for realtime playback, in which case leakkerneldeint is your best choice.

cockpit
28th September 2006, 21:14
encode and watch of course. I never expect the preview to play back at a correct framerate when lots of filters is applied. :)