how to attach gstreamer vaapisink to wl_surface

Víctor M. Jáquez L. vjaquez at igalia.com
Wed Feb 3 01:34:59 PST 2016


On 02/03/16 at 09:23am, pawan gupta wrote:
> videoconvert sink does not support X-Surface which is the output of
> videoconvert.
> Is there any other way to play mp4 with h264 encoded data using gsteamer
> where i get frames in application to play with.
> 
> On Tue, Feb 2, 2016 at 7:56 PM, Víctor M. Jáquez L. <vjaquez at igalia.com>
> wrote:
> 
> > On 02/02/16 at 03:33pm, pawan gupta wrote:
> > > i tried using waylandsink with vaapidecode already but i am getting below
> > > error.
> > >
> > > root at localhost:/home/ngiCnct> gst-launch-1.0 filesrc
> > > location=/home/ngiCnct/NGI_Brand_Video_\[001-045\].mp4 ! qtdemux !
> > > vaapidecode ! waylandsink
> > > libva info: VA-API version 0.34.0
> > > libva info: va_getDriverName() returns 0
> > > libva info: User requested driver 'i965'
> > > libva info: Trying to open /usr/lib/dri/i965_drv_video.so
> > > libva info: Found init function __vaDriverInit_0_34
> > > libva info: va_openDriver() returns 0
> > > WARNING: erroneous pipeline: could not link vaapidecode0 to waylandsink0
> >
> > Add a videoconvert before the waylandsink.
> >
> > Obviously, the performance will be decreased sensibly.
> >
> > vmjl
> >
> > >
> > > gst-inspect for waylandsink - sink = video/x-raw
> > > gst-inspect for waylandsink - src= video/x-surface
> > >
> > > i am using gstreamer1.0 version APIs.

I'm confused:

waylandsink as any other sink, only has a sink pad. They don't have a src pad.


I'm not aware of a video/x-surface mime type right now in gstreamer. As far as
I know, those non-standard mime types has been deprecated in gstreamer.

vmjl


More information about the gstreamer-devel mailing list