Bug 65883

Summary: [Gst-vappi-0.4]Vaapidownload can not dump RGB
Product: libva Reporter: Yang Lianyue <lianyuex.yang>
Component: intelAssignee: Zhong Cong <congx.zhong>
Status: VERIFIED FIXED QA Contact: Sean V Kelley <seanvk>
Severity: normal    
Priority: medium CC: lianyuex.yang, ouping.zhang, tienan.liu
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: download-support-RGBx-in-vaapidownload

Description Yang Lianyue 2013-06-18 09:14:08 UTC
System Environment:
----------------------------------------
Platform: HSW/IVB/SNB
Libva:        (master)ffb82f3a85e424b869c2c1ce48251b3305e2cd61
Intel-driver: (master)01f7c2c6c5ae6321f3b3cfebc89f73dcb50b30af
Gst-vaapi:    (0.4)   a732dfa8864746e131bc996e68525d8ab34f8d26


Bug Info:
----------------------------------
Vaapidownload can not dump RGB format.

Reproduce steps:
---------------------------------
xinit&
gst-launch-0.10 filesrc location=H264_640x368_frame300.MP4 ! qtdemux ! vaapidecode ! vaapipostproc ! video/x-surface,type=vaapi,format=\(fourcc\)RGB ! vaapidownload ! video/x-raw-yuv,format='(fourcc)'RGB ! filesink location=HW.yuv

libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/X11R7/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
0:00:00.087207247 17960      0x18722f0 ERROR           GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link vaapidownload0 to filesink0
WARNING: erroneous pipeline: could not link vaapidownload0 to filesink0
Comment 1 Zhao Halley 2013-06-19 01:52:53 UTC
what's the result of 'RGBX'?
RGB is not fourcc
Comment 2 Ouping Zhang 2013-06-19 02:56:46 UTC
cmd:
gst-launch-0.10 filesrc location=/home/gst_AVC_conformance/Mux_Stream/H264_640x368_frame300.MP4 ! qtdemux ! vaapidecode ! vaapipostproc ! video/x-surface,type=vaapi,format=\(fourcc\)RGBX ! vaapisink

It can work, but when using "vaapidownload ! video/x-raw-yuv,format='(fourcc)'RGBX ! filesink location=HW.yuv", it failed with error:
 ERROR           GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link vaapidownload0 to filesink0

(In reply to comment #1)
> what's the result of 'RGBX'?
RGB is not fourcc
Comment 3 Zhong Cong 2013-06-24 10:37:29 UTC
Created attachment 81328 [details] [review]
download-support-RGBx-in-vaapidownload

vaapidownload support RGBx

we can build pipeline like this:
gst-launch-0.10 filesrc location=/xxx.MP4 ! qtdemux ! vaapidecode ! vaapidownload ! video/x-raw-rgb ! filesink location=HW.yuv
Comment 4 Zhong Cong 2013-06-25 08:48:07 UTC
ok,the bug is fixed in commit 3e7aa4a9/branch 0.4
Comment 5 Yang Lianyue 2013-06-25 09:05:13 UTC
step:
gst-launch-0.10 filesrc location=/xxx.MP4 ! qtdemux ! vaapidecode ! vaapidownload ! video/x-raw-rgb ! filesink location=HW.yuv
mplayer HW.yuv -demuxer rawvideo -rawvideo w=640:h=368:format=rgba -fps 5

Test OK. Issue can't be reproduced. Close it.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.