PDA

View Full Version : How to get an interlaced XviD video to play as true interlaced?


Daft
18th August 2005, 17:36
Ok I want to know if I can playback an XviD video that has been encoded from an interlaced DV source as true interlaced like on a TV set but on the computer. I'll try to explain best I can. When I playback a raw DV video clip ripped from my camcorder in Windows Media Player it looks very smooth and fluid motion. When I open up the same video clip in say VirtualDub you can clearly see that it is interlaced. It's just that WMPlayer plays it as a true interlaced source. Now when I playback the same video encoded with XviD, it plays it the same way VirtualDub does; you can see the interlaced jaggy lines. I want to know if it is possible to playback an XviD encoded video in WMPlayer (or another other player) the same way it plays back raw DV videos. I tried ffdshow and used deinterlacing. It got rid of the jaggy lines but it doesn't play as smoothly as the DV source.

To show you exactly what I mean, I have provided a few video samples. The first one is a raw DV sample. Please play these in WMPlayer and you'll notice how fluid the motion is. The second video is encoded with XviD, keeping the interlacing. You'll quickly see that it plays differently. Now if you open these video files in VirtualDub you'll notice they are exactly the same, frame by frame (minus a few compression artifacts of course). So my question is, how do I play XviD encoded interlaced videos in WMPlayer (or any player for that matter) as smoothly as the DV source video?

Please right click and "save target as".
DV source video: http://www.daftproductions.com/videos/dvsample.avi [46mb]
XviD encoded video: http://www.daftproductions.com/videos/dvsample_xvid.avi [15mb]

Any and all help is greatly appreciated thanks.

deets
18th August 2005, 22:12
my DV codec played it as interlaced as well as the xvid version.

anyway, just load the clip into vdub and add a de-interlace filter :)

jon.schaffer
19th August 2005, 00:25
anyway, just load the clip into vdub and add a de-interlace filter :)
Depending on the filter used, it won't help Daft who wants to keep the smoothness of the DV, which is allowed by an on-the-fly deinterlacer (Bob method?).
If you apply a filter, you must chose a technique which doubles the framerate (since the DV has 2*25 fields per second). A Bob filter can do the trick.
But, XviD should do it by itself. Have you used the "Interlaced encoding" in the Profile settings? Verify that the XviD codec decodes the video, and not another codec/filter which wouldn't support interlaced content.

Daft
19th August 2005, 01:06
Depending on the filter used, it won't help Daft who wants to keep the smoothness of the DV, which is allowed by an on-the-fly deinterlacer (Bob method?).
If you apply a filter, you must chose a technique which doubles the framerate (since the DV has 2*25 fields per second). A Bob filter can do the trick.
But, XviD should do it by itself. Have you used the "Interlaced encoding" in the Profile settings? Verify that the XviD codec decodes the video, and not another codec/filter which wouldn't support interlaced content.
Yes this is exactly what I want. I am new to using ffdshow so here is a screenshot of it. Also of the XviD configuration. I don't have this "interlaced encoding" or "profile settings" you speak of. Maybe I have a different/old XviD codec? Still trying to solve this problem, let me know any solutions please!

http://www.daftproductions.com/pics/ffdshowprop.gif http://www.daftproductions.com/pics/xvidconfig.gif

midnightsun
19th August 2005, 01:37
the "interlaced" option jon.schaffer was referring to is when you ENCODE to xvid, not when you decode. The screenshot you attached is of the xvid decoder. Open your dv video in virtualdub and under compression choose xvid, then configure. You'll find "interlaced" there.

Daft
19th August 2005, 02:06
Oh I see the interlaced option now. This option doesn't do anything since the source is already interlaced, but I just tried it now anyway and it still playsback the same way. What is this Bob filter you speak of?

celtic_druid
19th August 2005, 03:03
The option lets XviD know that the source is interlaced so that it can preserve the fields correctly.

From recollection there was a modified XviD dshow filter with de-interlacing. It (de-interlacing) never made it to the cvs though. Check ffdshow's de-interlace settings.

Didée
19th August 2005, 08:55
Another problem is that XviD currently seems not able to decode its own content correctly if it had encoded it interlaced: "chroma bug", long standing now.
ffdshow decodes interlaced' XviD correctly.