Log in

View Full Version : x264 CLI 2146 bug with i422 in -> i422 lossless out?


Blue_MiSfit
22nd January 2012, 07:30
Hey guys,

This seems odd. I'm doing some testing of lossless encoding of uncompressed AVI files (via Avisynth), and have run into a snag with YUY2 input + lossless 4:2:2 output.

If I feed in RGB, I can output RGB, 444, 422, and 420 no problem. However, if I feed in YUY2, I can't seem to output anything.

Here's the error I'm getting:

C:\Fraps\Movies>x264 Uncompressed_YUY2.avs --qp 0 --output-csp i422 --output Test_Lossless_422_FromYUY2.mkv
avs [info]: 1280x720p 0:0 @ 60000/1001 fps (cfr)
resize [error]: output colorspace (null) is not supported


I tried omitting --output-csp entirely, and also tried i420. Both report the same error message. I also tried bypassing AviSynth entirely, and let x264's ffms2 handle the decoding. No difference.

Again, if I feed in RGB24, everything works as expected.

This is with x264 CLI rev 2146, 32 bit, 8 bit-depth, from x264.nl.

Am I missing something? This SHOULD work.... right?

Thanks,
Derek

MasterNobody
22nd January 2012, 10:12
Am I missing something? This SHOULD work.... right?
Yes, this should work. It doesn't work due the bug in recent commits. Problem only occurs with packed YUV 4:2:2 (should work with planar YUV 4:2:2). Patch (http://privatepaste.com/90c28ce1c1).

Blue_MiSfit
23rd January 2012, 06:38
Thanks for the note. I'll defer testing until this is fixed.

Blue_MiSfit
18th February 2012, 08:24
In case anyone is wondering, this seems to be fixed in the latest (2164).

Thanks,
Derek