ChromaResample option for upConv

Support forum for DGMPGDec
Post Reply
DAE avatar
Soulvomit
Posts: 10
Joined: Tue Mar 20, 2012 3:33 pm

ChromaResample option for upConv

Post by Soulvomit »

Could ChromaResample be an option when converting to RGB? I would like to use:

Code: Select all

MPEG2Source("1.d2v",upConv=2,chromaresample="point") 
Thank you.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: ChromaResample option for upConv

Post by admin »

Sure, if you contribute the code for it. ;)

You haven't explained why you need that, so how can I give any priority to that?

Have you explored using Avisynth for the color space conversion?
DAE avatar
Soulvomit
Posts: 10
Joined: Tue Mar 20, 2012 3:33 pm

Re: ChromaResample option for upConv

Post by Soulvomit »

I request this because it preserves hard edges, meaning there won't be any blending between colors like you get converting with AviSynth, VirtualDub, and of course DGMPGDec currently. This is important for encoders that only work with RGB, where if you transcode video that has been converted using chromaresample="bicubic", the resulting video will have its color edges spreading and bleeding out, while with "point" it won't and will be identical to the source.

I already use the Helix YV12 decoder with progressive video for this purpose, however, I would like to work with interlaced video as well. AviSynth 2.6.0 can convert interlaced with "point", however, it currently shifts the chroma in the process. I've addressed it here but I'm not sure when it'll get fixed. It would be great to see this properly implemented to DGMPGDec in the meantime.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: ChromaResample option for upConv

Post by admin »

I see. Thank you for the explanation. Let me think this over a while. It may be better to make a filter for Avisynth, rather than embed it in DGMPGDec.
DAE avatar
Soulvomit
Posts: 10
Joined: Tue Mar 20, 2012 3:33 pm

Re: ChromaResample option for upConv

Post by Soulvomit »

That would be even better. Thank you, Donald.
DAE avatar
Soulvomit
Posts: 10
Joined: Tue Mar 20, 2012 3:33 pm

Re: ChromaResample option for upConv

Post by Soulvomit »

I got a respond to my post in the Doom9 thread about this.

Code: Select all

ConvertToYV24(interlaced=true, chromaresample="point")
MergeChroma(PointResize(width, height, 0, 2))
ConvertToRGB32()
It doesn't always look right for editing depending on the material as certain areas are better off being upsampled progressively. Regardless, it is the RGB equivalent of interlaced YV12.

What do you think about AutoYUY2 with "point" RGB output?
Post Reply