PDA

View Full Version : mpeg2source/vdub-mpeg2 chroma differences - yv12 display/decoding problem?


davidhorman
5th November 2007, 13:35
Hi, sorry if this has been covered before - I may well be missing something obvious.

I'm working with a file ripped from a DVD. On the left is how it looks loading a simple .avs script loading a .d2v file made with DGIndex, and on the right is the same file loaded straight into VirtualDub-MPEG2:

http://horman.net/hearts.png

If I use upconv=2 in my mpeg2source call, or converttorgb24(interlaced=true), the problem goes away, so that makes me think it's something to do with my yv12 codec (I'm a little fuzzy on this area though). I disabled divx.dll with vcswap (the only one listed for yv12), but the problem remains.

David

neuron2
5th November 2007, 13:51
In the D2V case, VirtualDub receives YV12 and has to upconvert it for display. It uses progressive upsampling where your source used interlaced, causing the problem you see. When you upsample using mpeg2source() or converttorgb24(), it does it correctly. In VirtualDub MPEG2, I assume that the added code for MPEG2 also does the upsampling correctly before handing the data to the main VirtualDub core.

davidhorman
5th November 2007, 13:57
:thanks:

David