Question about YV12 color conversion

Locked
User avatar
rubyeye
Joined: Wed Sep 05, 2001 1:45 pm
Org Profile

Question about YV12 color conversion

Post by rubyeye » Tue Jan 18, 2005 2:13 am

This is something that's only mentioned a couple times but I just wanted some clarity:
The optimal scenario involves only 2 colorspace conversions:

1) - MPEG2 from DVD in YV12, processed with Avisynth in YV12 and then converted to RGB32 ready for editing.

2) - RGB export from editing program using Huffyuv in RGB mode and then converted to YV12 ready for the final video compressor.
If this is my final avisynth script for encoding in either XviD or Mpeg-1/2...

AVISource("C:/folder/file.avi")
ConvertToYV12() <-(?)
AssumeFPS(23.976)
Crop(8, 0, -8, -0)
LanczosResize(512, 384)

...do I still need to convert the colorspace even if I am not doing any filtering? Do encoders like XviD and TEMPGEnc only work in YV12 colorspace? All my filtering was done in Pre-Processing.

User avatar
AbsoluteDestiny
Joined: Wed Aug 15, 2001 1:56 pm
Location: Oxford, UK
Contact:
Org Profile

Post by AbsoluteDestiny » Tue Jan 18, 2005 3:17 am

You can leave it out and have xvid an tmpg do the yv12 conversion for you.

For xvid, there will be absolutely no change. For TMPG, it's less certain becuase it can oddly have trouble with yv12 input despite the fact that the mpeg1 or mprg2 it creates will be yv12.

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Post by Tab. » Tue Jan 18, 2005 5:00 pm

AbsoluteDestiny wrote:For TMPG, it's less certain becuase it can oddly have trouble with yv12 input despite the fact that the mpeg1 or mprg2 it creates will be yv12.
TMPG accepts all input as RGB32, as far as I know.

User avatar
rubyeye
Joined: Wed Sep 05, 2001 1:45 pm
Org Profile

Post by rubyeye » Tue Jan 18, 2005 6:20 pm

Well, my video is in RGB24. So I guess XviD and Mpeg automatically converts it to YV12 color space.

Locked

Return to “Video & Audio Help”