Log in

View Full Version : [Q] Avisynth to AVI (4:2:2 2vuy)


slvrbllt
23rd September 2010, 10:20
Hi all,

I don't know whether this is the right forum to ask...
I've spent several hours trying to create an AVI (4:2:2, 2vuy) out of my Avisynth but I failed miserably.

Is there anyone here that could shed a little light on this subject, please ?

Thanks in advance.
Silver.

pandy
23rd September 2010, 12:03
virtualdub - open your avs with YUY2 format at the output - VDUB "Video" set "direct stream copy" - save as AVI

slvrbllt
23rd September 2010, 13:16
open your avs with YUY2 format at the output

I do not understand how to do the first step. When I select "Video->Direct stream copy", "Color depth" and "Compression" options are grayed out.
I appended "ConvertToYUY2()" to my avisynth script, but AJA Machina still see the avi as RGB 4:4:4.... I'm lost...

Thank you for your help.
Silver.

pandy
23rd September 2010, 14:16
What VDub shows in File Information window?

slvrbllt
23rd September 2010, 15:36
I am using VirtualDub 1.9.10.

I guess that you need just the Decompressor line, which is "Internal DIB Decoder (YUY2)"
It is obviously the same either on the AVS file either on the saved AVI file.

I have also tried to convert the file with Sony Vegas. The resulting clip was properly detected by Machina.

Silver.


Update:

I have also run the 2 clips through MediaInfo.
The source file (ie: AVS->VDub->AVI) is reported to be "YUV 4:2:2 as for UYVY but with different component ordering within the u_int32 macropixel".
The converted file (ie: AVS->VDub->AVI->Vegas->AVI) is instead "Uncompressed 16bpp. YUV 4:2:2 (Y sample at every pixel, U and V sampled at every second pixel horizontally on each line). A macropixel contains 2 pixels in 1 u_int32."

The latter is the format I would like to get out of my AVS script.

pandy
23rd September 2010, 17:01
http://www.fourcc.org/yuv.php - then issue can be in codec not in AVS - but IMO YUY2 from AVS should be ok - it is packed not planar format.