PDA

View Full Version : Help with YUV-RGB conversion


julioc
6th May 2008, 09:56
We have nearly 300 avi files (UYVY 422 8 bits uncompressed Pinnacle Targa 3000 codec). We need to edit these files with a Matrox Axio LE system (Premiere Pro 2.0).
Video from some of these files becomes clipped when processed in Axio LE (Matrox -field based YUY2- uncompressed SD 8 bit codec). I guess it is caused by the YUV-RGB conversion carried out by Premiere Pro 2.0 for delivering video to Matrox codec (probably Matrox codec admit only RGB input).
It is possible to prevent this with AVISYNTH?
It is possible to process the original UYVY file in order to adjust pixel values so that it can be converted to RGB without clipping?
It is an important work for me (archival footages).

Thanks in advance.

Julio C.
Spain

foxyshadis
7th May 2008, 10:31
Avisynth can easily deal with this. Use Rawsource to load the UYVY files, look up the documentation for all of the required parameters, and then use ConvertToRGB24(matrix="pc.601"), then either load the script in virtualdub and save to rgb avi or use a frameserver to load it directly into Axio/Premier.

julioc
7th May 2008, 15:21
Thanks, I'll try it as soon as possible.

julioc
8th May 2008, 14:55
There's a little problem: RawSource needs a raw YUV input, but my files are avi. Do you know how can I convert from avi OpenDML (2.0) (4:2:2 UYVY) to yuv raw file?

Thank you

foxyshadis
9th May 2008, 02:26
Oh, when you said UYVY I thought you meant raw. If they're AVI then just use AVISource to load them. You have to have the codec installed on the system to do that, or ffdshow vfw with raw decoding turned on.