IRR IU Task Group
rev. Tue Nov 9 17:13:25 EST 2004
Steven D. Johnson

D-interlacing in xine  - Steve Johnson

I have been experimenting with xine options for de-interlacing in the hopes of improving the frames captured from the DVD clips. De-interlacing is activated with the -D option to the xine command. The software release includes several methods.

The default configuration file (~/.xine/config) generated on my desktop includes the line:

  #gui.deinterlace_plugin:tvtime:method=LinearBlend,\
                                        cheap_mode=1,\
                                        pulldown=0,\
                                        use_progressive_frame_flag=1
In each test, I added the parameter chroma_filter=1. According to commentary in xine source file src/post/deinterlace/xine_plugin.c:
Chroma_filter: DVD/MPEG2 use an interlaced image format that has a very poor vertical chroma resolution. Upsampling the chroma for purposes of deinterlacing may cause some artifacts to occur (eg. color stripes). Use this option to blur the chroma vertically after deinterlacing to remove the artifacts. Warning: cpu intensive.
So a representative innvocation looks like:
xine -Dtvtime:method=LinearBlend,chroma_filter=1,pulldown=0,use_progressive_frame_flag=1 VOB file
I have not yet varied the other parameters, such as pulldown to see the effect.

none 1 2 3 4 5 6 7 8 9
Default (-D) 1 2 3 4 5 6 7 8 9
LinearBlend 1 2 3 4 5 6 7 8 9
Greedy2Frame 1 2 3 4 5 6 7 8 9
ScalarBob 1 2 3 4 5 6 7 8
Vertical 1 2 3 4 5 6 7 8 9
Weave 1 2 3 5 7 8 9

Observations (so far):

This is on-going experimentation, and I'll update this index as I learn more. I hope that we won't need these grainy .VOB files too much longer, but right now they are the closest thing we have to representative footage. I hope to use xine for visualization and instrumentation later on.