View Full Version : Uncompressed UYVY into AVISource without conversion to RGB?
ChiDragon
27th July 2015, 20:12
Info() shows that it's being converted to RGB32. How can I make it use YUY2 or YV24 instead?
I could swear I had this working before on a different PC. I've tried setting VIDC.UYVY=huffyuv.dll in the registry, both 64-bit & 32-bit, as I thought that was the fix previously. No change.
I've read that one solution is to setup ffdshow to decode "Raw Formats" in VFW, but I'd rather not do that if I can avoid it.
[Using Win7 x64.]
LoRd_MuldeR
27th July 2015, 21:50
Maybe RawSource() can help out?
http://avisynth.org.ru/docs/english/externalfilters/rawsource.htm
ChiDragon
27th July 2015, 22:57
The settings required ("offset" for that version and "index" for newer versions) are over my head.
FFVideoSource is a reasonable workaround, but the indexing time is pretty bad for big captures.
wonkey_monkey
28th July 2015, 23:23
What about:
avisrouce("file.avi", pixel_type="YUY2")
I may be wrong about this.
ChiDragon
29th July 2015, 22:28
The default value of pixel_type (http://avisynth.nl/index.php/AviSource#Parameters) is such that it would choose YUY2 if the decoder offered that as an option. When forced, it simply complains that "the video decompressor couldn't produce YUY2 output."
Googling that error message finds surprisingly few results. One of them is this German Doom9 thread (https://translate.google.ca/translate?hl=en&sl=de&u=http://forum.gleitz.info/showthread.php?47141-AVI-Caputure-Video-von-der-BM-Intensity-Shuttle-gt-Falsche-Pixel_Type-Zuweisung&) in which Ligh suggests that ffdshow solution I'd mentioned.
wonkey_monkey
29th July 2015, 23:26
Ah. I must have only used it the other way, then, to force RGB instead of YUV out of a misbehaving codec.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.