[Libva] Fwd: Problem about VAAPI gstreamer plugins

Gwenole Beauchesne gb.devel at gmail.com
Mon Sep 29 07:07:24 PDT 2014


Hi,

2014-09-29 15:51 GMT+02:00 Engin FIRAT <engin.firat at adonissyazilim.com>:

> We have been trying to play a video streaming through a RTSP server by
> using vaapidecode and vaapisink gstreamer elements. But the problem is
> pipeline constructed seems problematic and it does not work. Here is the
> pipeline:
>
>
>
> *gst-launch-1.0 rtspsrc
> location=rtsp://192.168.1.15/media/video1?g726=rfc3551
> <http://192.168.1.15/media/video1?g726=rfc3551>  ! rtph264depay !
> vaapidecode ! vaapisink*
>
>
>
> The error message is as follows:
>
>
>
> *gstbasesrc.c(2865): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:*
>
> *streaming task paused, reason not-linked (-1)*
>
>
>
> And moreover this is the output of the gst-launch:
>
>
>
> *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 live and does not need PREROLL ...*
>
> *Got context from element 'vaapidecode0': gst.vaapi.Display=context,
> display=(GstVaapiDisplay)NULL;*
>
> *Progress: (open) Opening Stream*
>
> *Progress: (connect) Connecting to
> rtsp://192.168.1.15/media/video1?g726=rfc3551
> <http://192.168.1.15/media/video1?g726=rfc3551>*
>
> *Progress: (open) Retrieving server options*
>
> *Progress: (open) Retrieving media info*
>
> *Progress: (request) SETUP stream 0*
>
> *Progress: (request) SETUP stream 1*
>
> *Progress: (open) Opened Stream*
>
> *Setting pipeline to PLAYING ...*
>
> *New clock: GstSystemClock*
>
> *Progress: (request) Sending PLAY request*
>
> *Progress: (request) Sending PLAY request*
>
> *Progress: (request) Sent PLAY request*
>
> *ERROR: from element
> /GstPipeline:pipeline0/GstRTSPSrc:camera/GstUDPSrc:udpsrc3: Internal data
> flow error.*
>
> *Additional debug info:*
>
> *gstbasesrc.c(2865): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstRTSPSrc:camera/GstUDPSrc:udpsrc3:*
>
> *streaming task paused, reason not-linked (-1)*
>
> *Execution ended after 0:00:00.704377971*
>
> *Setting pipeline to PAUSED ...*
>
> *Setting pipeline to READY ...*
>
>
>
> We think we should place a capsfilter before decode element but it did not
> work too. In addition we have placed demuxer elements for an rtsp stream
> such as: rtpptdemux but these did not even work.
>

Have you tried inserting a parser element? This is mandatory with GStreamer
>= 1.0 nowadays. For instance, this would be "h264parse", or
"vaapiparse_h264" should you have any issue with the former. The later is
just the same "h264parse" from upstream master branch with some additional
changes.

Could you please also report the outcome of your command with the following
environment variables in addition?
GST_DEBUG=vaapi:4,GST_CAPS:5 gst-launch-1.0 [...]


> We are sure, vaapidecode and vaapisink elements are working properly. For
> example, following pipeline decodes a 1080p movie on GPU without any
> problems.
>
> *gst-launch-1.0 filesrc location=/my/file/location ! qtdemux ! vaapidecode
> ! vaapisink*
>
>
> For those who think there may be a problem with RTSP content the following
> pipeline also works without any problems:
>
> *gst-launch-1.0 rtspsrc
> location=rtsp://192.168.1.15/media/video1?g726=rfc3551
> <http://192.168.1.15/media/video1?g726=rfc3551>  ! rtph264depay !
> avdec_h264 ! xvimagesink sync=false*
>
>
>
The reason why it works with avdec_h264 is that libavcodec h264 SW decoder
includes a parser element already.


> We are working on an Intel E3845 processor. We are on Ubuntu 14.04 LTS OS
> and driver version is as follows:
>
> libva-intel-vaapi-driver and version: 1.3.0-1ubuntu1. Gstreamer vaapi
> element's name and version is as follows: libgstreamer-vaapi1.0-0 and
> version: 0.5.7-0ubuntu4
>
>
> Could you please help to decode an rtsp stream on GPU by using gstreamer
> vaapi plugins?
>
> Regards.
>
>
> --
> *Engin FIRAT*
> Adoniss Yazılım Bilişim
> Elektronik Araştırma Geliştirme
> Limited Şirketi
>
> +90 506 884 82 07 (Mobile)
> ODTÜ Teknokent, ODTÜ-Halıcı Yazılımevi
> İnönü Bulvarı / ANKARA (Address)
>
>
>
> _______________________________________________
> Libva mailing list
> Libva at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libva
>
>


-- 
Gwenole Beauchesne
Intel Corporation SAS / 2 rue de Paris, 92196 Meudon Cedex, France
Registration Number (RCS): Nanterre B 302 456 199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20140929/26a910a1/attachment-0001.html>


More information about the Libva mailing list