Log in

View Full Version : 10 bit 4:2:2 UYVY (v210) into x264


Asmodian
24th November 2011, 04:20
I have some raw 10 bit UYVY (v210) captures and I have been unable to feed them into x264 keeping 10 bit and 4:2:2, x264 reports it converts to 4:2:0 then back to 4:2:2 internally.

I don't need to do anything to them, just encode the raw interlaced video.

Of course I do not NEED to do this, casually viewing the video I do not notice if I convert to 8-bit or 4:2:0 but it seems like it should be possible and I am encoding using 10 bit x264 anyway.

Does anyone have any ideas?

If this cannot be done at the moment would keeping 10 bit or 4:2:2 sampling be more useful, assuming interlaced video?

Dark Shikari
24th November 2011, 04:31
This sounds like a bug. kemuri9 might be able to look into it.

Asmodian
24th November 2011, 04:46
Thanks! Here is some more information if it will help.

This gives a normal looking test.mkv:
H:\>x264_x86_10bit.exe --preset slow --crf 17.0 --output-csp i422 --output H:\test.mkv test.avi
ffms [info]: 720x486p 0:1 @ 30001/1001 fps (vfr)
resize [warning]: converting from yuv422p10le to yuv420p
resize [warning]: converting from yuv420p to yuv422p

http://i42.tinypic.com/zx7l3a.png

This gives a messed up video:
H:\>x264_x86_10bit.exe --preset slow --crf 17.0 --tff --output-csp i422 --output H:\test.mkv test.avi
ffms [info]: 720x486p 0:1 @ 30001/1001 fps (vfr)
resize [warning]: converting from yuv422p10le to yuv420p
resize [warning]: converting from yuv420p to yuv422p
x264 [warning]: interlace + weightp is not implemented

http://i40.tinypic.com/11so5mx.png

x264 0.119.2106 07efeb4
(libswscale 2.1.0)
(libavformat 53.10.0)
(ffmpegsource 2.16.2.1)
built on Oct 22 2011, gcc: 4.5.3 (x86.generic.Komisar)
configuration: --bit-depth=10 --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later

And here is my test sample (http://www.gamefront.com/files/21019265/test.7z) (44 frames).

kemuri-_9
24th November 2011, 15:35
This sounds like a bug. kemuri9 might be able to look into it.

Yes, this is a known bug, I finally have some time to try and resolve this.

The decoding part should be a separate issue though...
Asmodian, what are you using to decode the generated video?

Asmodian
24th November 2011, 22:28
I was using LAV 0.40 to get that picture. Testing with CoreAVC 3.0.1 and ffdshow tryouts rev3984 give a black screen.