Cannot decode h264 using vaapi builded only with drm support

Víctor M. Jáquez L. vjaquez at igalia.com
Thu Apr 21 17:29:04 UTC 2016


On 04/21/16 at 07:34pm, sonntex wrote:
> I am trying to decode h264 stream using vaapi. As you can see
> gst-plugins-vaapi and libva builded with drm and withou X support:
> 
> sonntex at work ~ $ eix -I gst-plugins-vaapi
> [I] media-plugins/gst-plugins-vaapi
>      Available versions:  (1.0) ~0.6.1 0.7.0
>        {+X +drm opengl wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64"
> ABI_S390="32 64" ABI_X86="32 64 x32"}
>      Installed versions:  0.7.0(1.0)(10:36:37 PM 04/21/2016)(drm -X -opengl
> -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64"
> ABI_X86="64 -32 -x32")
>      Homepage:            https://github.com/01org/gstreamer-vaapi
>      Description:         Hardware accelerated video decoding through
> VA-API plugin
> 
> sonntex at work ~ $ GST_DEBUG=vaapi*:6 gst-launch-1.0 rtspsrc location=rtsp://
> 192.168.50.90 ! rtph264depay ! vaapiparse_h264 ! vaapidecode ! fakesink
> Setting pipeline to PAUSED ...
> 0:00:00.008910189 29483      0x251eaf0 INFO                   vaapi
> gstvaapidisplay.c:119:libgstvaapi_init_once: gstreamer-vaapi version 0.7.0
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0:
> Could not initialize supporting library.
> Additional debug info:
> /var/tmp/portage/media-libs/gst-plugins-base-1.8.1_pre/work/gst-plugins-base-1.8.1/gst-libs/gst/video/gstvideodecoder.c(2582):
> gst_video_decoder_change_state ():
> /GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0:
> Failed to open decoder
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> Is this an error or should I build gst-plugins-vaapi and libva whit X
> support?

I guess you are using Gentoo. I wonder why it is not providing a recent
gstreamer-vaapi. Now gstreamer-vaapi follows the same version as GStreamer, the
latest version is 1.8.1, the same that you have installed.

What does the command vainfo reports you back?

Normally, VA-API should write in the console the version and the loaded
driver, but that is not your case. I wonder what video card do you have.

Can you try, to simplify the test, a local file playback with
GST_DEBUG=vaapi*:5 ?

vmjl


More information about the gstreamer-devel mailing list