Log in

View Full Version : Unable to load UYVY


leoenc
29th October 2007, 13:29
I'm trying to load an AVI with AVIsynth.
The AVI was captured with Blackmagic and is reported by Vdub as YUV 4:2:2 (FourCC UYVY).
When using this script:

AVIsource("c:\test.avi")
info()

But AVIsynth reports it as RGB32! So I was trying this:

AVIsource("c:\test.avi", fourCC="UYVY", pixel_type="YUY2")

But it didn't help. I also tried with different FourCC's, using DirectShowSource and OpenDML, either it doesn't open or colors are all green and pink.

Any ideas?
I really want to avoid converting the colorspace.

IanB
29th October 2007, 21:53
RawSource()

leoenc
30th October 2007, 11:06
RawSource()

Tried that but picture is scrolling from top to bottom:

RawSource("c:\test.avi",pixel_type="UYVY")

also tried all other pixel types, they produce wrong colors.

squid_80
30th October 2007, 11:11
Do you have the blackmagic codecs installed?

foxyshadis
30th October 2007, 11:36
You have to explicitly specify the width and height if you want useful results from rawsource. You'll probably also need offset since it's in an avi. If it's muxed with audio, it probably won't work at all though.

IanB
30th October 2007, 12:18
Also transcodeing (Fast Recompress) with a recent VirtualDub, should repack the bytes from UYVY into normal YUY2 .AVI (Could also Huffyuv or other lossless codec compress it)

leoenc
30th October 2007, 12:27
Yes I have the Blackmagic codecs installed.
Also tried with width & height, but it does have audio so I guess I will need to drop this and convert the colorspace.

Thanks anyway everyone