Log in

View Full Version : Problems to deinterlace video material


wuemura
7th May 2009, 17:34
I use CANOPUS ADVC-100 to capture video from my Set-Top Box (DIgital TV Brazil) by S-video connection. I've noticed that the captured material has a mix of interlace, progressive and telecine witch I have problems to deinterlace.

Here is some samples captured from TV:

interlaced
http://img148.imageshack.us/img148/820/wolverine0000.jpg

interlaced
http://img18.imageshack.us/img18/9740/wolverine0001.jpg

progressive
http://img26.imageshack.us/img26/8862/wolverine0002.jpg

progressive
http://img374.imageshack.us/img374/7098/wolverine0003.jpg

progressive
http://img116.imageshack.us/img116/9661/wolverine0004.jpg

interlaced
http://img116.imageshack.us/img116/2152/wolverine0005.jpg

And goes on....

After a few scenes it changes to progressive for about 5 seconds.

http://img17.imageshack.us/img17/3161/wolverine20000.jpg
http://img413.imageshack.us/img413/9158/wolverine20001.jpg
http://img212.imageshack.us/img212/7753/wolverine20002.jpg
http://img18.imageshack.us/img18/4945/wolverine20003.jpg

Than it goes interlaced for a few seconds and repeats the above examples.

What can be done to deinterlace this type of material?

I use this avisynth script to work most of the videos:
DirectShowSource("F:/sd.avi").ResampleAudio(44100).trim(94,6059).fadeout(10)

# Melhora cor DV
#ReInterpolate411()

# Filter Tests
#PeachSmoother(NoiseLevel=4.838,Baseline=3.501)

#IVTC
#Telecide()
#Decimate(5)

ConvertToYV12()

# Separa campos
#SeparateFields()
#weave()

# Remove Ruídos
#RemoveGrain(mode=2)

# -- Deinterlace --
# Perfeito
AssumeBFF()
FieldDeinterlace()
#FieldDeinterlace(blend=true)

# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)

#FieldDeinterlace()
#FieldDeinterlace(blend=true)
#TomsMoComp(1,5,0)

#Levels(19,1,245,0,255)
#Levels(30,1,255,0,255)
#GreedyHMA(1,0,0,0,1,0,0,0)

blur(-0.3)

# Undot
Undot()

#LanczosResize(544,400)

ERQ
7th May 2009, 19:51
You can use Yadif with varying Field order.

wuemura
7th May 2009, 20:39
You can use Yadif with varying Field order.

Thanks, it does work great with some interlaced material, but it does bad with the progressive scenes, it blurs some parts and add odd artifacts all over the place.

I've tested all modes, 0 and 3 gives a nice result.

I've uploaded a 30s raw material (100MB) from the TV here (http://www.4shared.com/file/103970187/3026568a/wolverine.html).

I'm open to other suggestions also.

Thank you.

ERQ
8th May 2009, 06:31
You can also encode it without any deinterlace filter (leave it interlaced) and use BOB deinterlacing during playback (eg. Vlc).

wuemura
8th May 2009, 14:02
Thanks ERQ!

Some of the material I capture I post on my Youtube account, that is why i need to deinterlace it.
I've used a mixed of Yadif and FieldDeinterlace with very good results, you can have a look here (http://www.youtube.com/watch?v=wWrbDfOQsgk&fmt=35), very nice results.

But tell me something, some people here in Brazil are saying that it's impossible to capture the video that I've just captured with progressive frames, one because is analogic and two because is from an interlaced connection like the S-Video, do you have any logic explanation to this? This is new here, I've never seen something like this before, some times you can have telecine material from DVD's but from the TV is the first time.

Thank you.

2Bdecided
8th May 2009, 15:27
An analogue connection is interlaced as in it consists of fields - but those fields could be genuinely independent (truly interlaced content), or with a 3-2 repeat pattern (telecined), or with some strange repeat pattern - often due to special effects (e.g. speed up / slow down / animation) or a standards conversion.

Whatever you have, you can create a genuine fully progressive version with a good deinterlacer. Sometimes (e.g. for YouTube) the maximum frame rate available is only 30fps, which doesn't maintain the smooth motion of 60i, but unless you host it yourself at 60p, 30p is the best you'll find on line.


With strange pull-down / field repeat patterns, if you're sure the original was 24p, the best option is to force telecide and decimate to keep the original frames. Where the source is mixed (like the one you posted), you either make everything 30p or everything 24p.


I don't know if you've noticed, but the aspect ratio is wrong on your YouTube sample...
http://www.youtube.com/watch?v=wWrbDfOQsgk&fmt=35
...it should be 4x3, not 3x2 - you've made that poor presenter girl look fatter than she is! Video pixels aren't square - resize your 720x480 source to 640x480 before uploading to YouTube.

Cheers,
David.

P.S. Whenever there are documentaries about a new film shown over here (a PAL country) the film extracts are quite weird - it's usually 3-2 pulldown NTSC badly converted to PAL - very blurry and jerky - impossible to fix.

wuemura
8th May 2009, 16:52
...it should be 4x3, not 3x2 - you've made that poor presenter girl look fatter than she is!
Hahahahaha, I will tell her that :devil::)
I did forget to resize, normally I use 544x400 to send stuff to youtube because of file size, this deinterlace process takes much more time to end (I use x264 for video and ffmpeg for audio AAC), at the time the compression ended I tough "What a hell, she is already fat anyway" :p

P.S. Whenever there are documentaries about a new film shown over here (a PAL country) the film extracts are quite weird - it's usually 3-2 pulldown NTSC badly converted to PAL - very blurry and jerky - impossible to fix.

Same happens here, some times I think if they do on propose to avoid "us" to have a "clean copy" of the material.

Thank you 2Bdecided!