PDA

View Full Version : X264 and Vista (32bit) - problems with Avisynth


lchiu7
26th May 2007, 09:15
Just put together a brand new machine with Vista Home Premium Only load the basic OS, ffdshow for the codecs and Avisynth (and Virtualdub). Avisynth is version 2.5.7

With a file like this called video.avs with contents

directShowSource("c:\downloads\Video filename.avi")
LanczosResize(480,272) # FW 3.3
Tweak(sat=1.7, bright=17, cont=1.1)
ChangeFPS(23.98) #

which is a xvid encoded file

X264 issues the message

avis [error]: unsupported input format (YUY2)
x264 [error]: could not open input file 'video.avs'

Yet if I open that same avs file in Virtualdub it loads the avi file fine. Interestingly if I try to open the avs file in WMP, WMP dies with an unknown error but Media Player Classic can open and play the avs file.

Also if I try to open the avi file in WMP it plays okay and notes that the codec used is ffdshow

Does anybody have any idea what could be going on? Seems something to do with X264 and Avisynth but have no idea what.

Thanks

Larry

bond
26th May 2007, 10:25
the directshow decoder you are using is outputting yuy2 video. it needs to be yv12 tough

try changing the output mode in the decoder or add converttoyv12() to your avs script

lchiu7
26th May 2007, 10:54
Thanks. That did the trick. The directshow decoder I am using is ffdshow which worked fine on my XP box. Checking the options in ffdshow in the Output area, it seems to be outputting YV12 for planar YUV and for packed YUY YUY2. But I unchecked the YUY2 box for packed YUY2 and without the converttoyv12() it still fails. Since I have a solution it's not so important but just wondering how I can change ffdshow to output yv12 instead.

Thanks