PDA

View Full Version : VLC Linear Deinterlace


MajinNinja
10th May 2006, 14:25
Hi All,
I've been trying to deinterlace a PAL source using the standard Gknot avisynth plugins without much success. So I tried playing the source in VLC and skipping through its deinterlacers to find an appropriate one. The 'Linear' deinterlace looks amazing, (much better than what I've been able to achieve) but I haven't been able to find a script with performs this function in avisynth. Can anyone help?

Thanks
:thanks:

Daodan
10th May 2006, 15:11
Probably you need to do a restore24 or equivalent. At least that's what had to do with all interlaced PAL stuff I have.

MajinNinja
11th May 2006, 02:05
Cheers. I'll give it ago :)

:thanks:

tritical
11th May 2006, 05:34
VLC's linear deinterlace is simply a dumb bob using linear interpolation. Not sure if you tried Avisynth's built in bob(), but it would be a close equivalent. The differences would be that it uses cubic interpolation and doesn't strictly preserve one field. There is also an external filter called IBob which I think exactly duplicates a dumb bob w/ linear interpolation.

scharfis_brain
11th May 2006, 06:35
bob(0,1) strictly preserves the original fields and just fills the missing lines.

tritical
11th May 2006, 08:43
I'd never thought about it before but you're right. bob(0,1) preserves the original fields for yuy2 and preserves the luma but not the chroma for yv12. The filter coefficients with b=0 and c=1.0 give you 0 at x=1.0/2.0 and 1 at x=0, which with the +-0.25 shift occur on the original field locations. Then you get a very crisp cubic filter with -1/8 5/8 5/8 -1/8 coefficients on the x=0.5/1.5 taps on the other field. However, since the shift on the chroma planes is only 0.125 for yv12 the taps don't end up on exactly the same distances.

MajinNinja
12th May 2006, 08:50
Right-o, here's what I've tried.
I tried Restore24, Crestore and Mrestore which didn't give great results. I tried bob() which gave excellent (same as linear in VLC) results for vertical scrolling text (credits), but nothing else. TIVTC give very decent results for everything except the vertically scrolling text.
Here are my samples I've uploaded to my site.
Bob Test (http://www.ids.org.au/~jad/DeintTest/Bob%20test.avi)
TIVTC Test (http://www.ids.org.au/~jad/DeintTest/TIVTC%20test.avi)
Actual Vob used for test (http://www.ids.org.au/~jad/DeintTest/VTS_06_1.VOB)
The first two are encoded in Xvid. The test section is the credits of a Coupling episode. The vertically scrolling text shows the most interlacing and the stationary text and tree image at the end indicate the deinterlacing in the normal footage.

Could someone please take a look and tell me what they think?

:thanks:

scharfis_brain
12th May 2006, 12:42
MajinNinja: You should read manuals before using brute force methods. The restore-script CANNOT work here, because they are meant to work with field blended video. Your scrolling credits are true interlaced 50i WITHOUT blends.

Use TDeint(mode=1, type=3) or leakkernelbob() or smoothdeinterlace or securedeint() or mvbob()

all are able to put out full framerate.

MajinNinja
12th May 2006, 14:14
Wow, truely MVbob is the script to use for the truly noob-like, such as myself. My sincerest thanks scharfis_brain, Daodan, and tritical. If any of you ever find yourselves in Hobart, Tasmania drop me a line and I'll be only to happy to buy you a beer.

Cheers

:thanks: