vaapipostproc with BGRx input format

Thomas Scheuermann scheuermann at barco.com
Mon Aug 11 03:12:08 PDT 2014


Hello,

I want to use vaapipostproc to convert BGRx to NV12 format which can be
used by vaapiencode_h264.
'gst-inspect-1.0 vaapiposproc' tells me that it understands BGRx at the
input.
Now I've tried the following pipeline:

gst-launch-1.0 videotestsrc !
video/x-raw,format=BGRx,width=800,height=600 ! vaapipostproc ! fakesink
libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapipostproc0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;
ERROR: from element
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data flow
error.
Additional debug info:
gstbasesrc.c(2933): gst_base_src_loop ():
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming task paused, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

It doesn't work.

If I try with YUV input, the pipeline works:

gst-launch-1.0 videotestsrc !
video/x-raw,format=YUY2,width=800,height=600 ! vaapipostproc ! fakesink
libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapipostproc0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:01.936353746
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

How can I convert from BGRx to NV12 with vaapi elements?

Regards,

Thomas
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>


More information about the gstreamer-devel mailing list