10 bit h264 OMX UVD decode outputs NV12
Submitted by Andy Furniss
Assigned to mes..@..op.org
Description
No idea if this a Mesa OMX issue or UVD or gstreamer -
GPU is R9 285 Tonga.
In theory this should be able to h/w decode 10 bit h264 - and the h/w does seem to process it.
The problem is that something is assuming/expecting/indicating that the output is NV12, so the output is corrupted.
Here's a snip of a debug output from doing -
GST_DEBUG=*:4 gst-launch-1.0 -f filesrc location=A-10bit-h264.mkv ! matroskademux ! h264parse ! omxh264dec ! filesink location=out.yuv
0:00:00.364695565 660 0x22310f0 INFO GST_EVENT gstevent.c:679:gst_event_new_caps: creating caps event video/x-h264, level=(string)4.1, profile=(string)high-10, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, framerate=(fraction)30000/1001, parsed=(boolean)true
<snip>
gstpad.c:5881:gst_pad_start_task:omxh264dec-omxh264dec0:src created task 0x22f85f0 0:00:00.366822661 660 0x2231590 INFO GST_EVENT
gstevent.c:679:gst_event_new_caps: creating caps event video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)30000/1001
Version: git