Artie is correct. As of writing, gstreamer-vaapi is dependent on the gstreamer-0.10 protocol and components installed by gst-plugins-bad. I have been compiling and using gstreamer-0.10 and gstreamer-vaapi for the past few months.

Though not directly related, Robster submitted a backport patch to upstream gst-plugins-bad for `waylandsink`, which was committed to the 0.10 branch in late November.[1] The gst-plugins-bad `waylandsink` now supports the Wayland 1.0 protocol on gstreamer master, 1.0, and 0.10 branches.

In case it helps, I build-- all on 0.10 branches-- gstreamer, gst-plugins-[base,good,bad], gstreamer-vaapi, and gst-ffmpeg. In that order.

The container specified in the example pipeline has a 'webm' prefix, so presumably it contains a VP8 video stream. In order to use a `vaapisink` pipeline, you must query the VA-API driver (with `vainfo`) to ensure the video stream (in this case, VP8) is supported by your VA-API driver. I use H264 streams (Big Buck Bunny or Sintel) to exercise the vaapisink on my systems, since H264 acceleration is supported. For streams not supported by your VA-API driver, you will need to investigate an alternative pipeline. I believe the libva mailing list could help you there.

[1] gst-plugins-bad: commit 27bd971b743067bce607809e0a5cb26eab5c69a9

Cheers, hth

On 2013-01-16 06:47 PM, Eoff, Ullysses A wrote:

I Haven’t tried this in a while, but it may still be relevant…

http://lists.freedesktop.org/archives/wayland-devel/2012-October/005719.html

I’m fairly sure, though, that gstreamer-vaapi still only works with gst-0.10 and is updated to the Wayland 1.0 protocol.

U. Artie

*From:*wayland-devel-bounces+ullysses.a.eoff=intel....@lists.freedesktop.org [mailto:wayland-devel-bounces+ullysses.a.eoff=intel....@lists.freedesktop.org] *On Behalf Of *nerdopolis
*Sent:* Friday, January 11, 2013 4:56 PM
*To:* [email protected]
*Subject:* Mplayer build guide fixes, and gstreamer guide

Hi.

As for compiling mplayer for Wayland, what mplayer does when it compiles is optimizes itself for the current CPU, which is great if you are running mplayer on one computer, however, for compiling mplayer for a distribution, or for compiling it on a system that is on a USB drive for multiple computers, mplayer will crash, as the binary tries to use CPU features that it doesn't have

I looked at the debian/rules file for Ubuntu's mplayer, and found the configure flags they user

In order to be able to run mplayer on more hardware, you need to add these flags to ./configure on 32 bit machines:

--enable-runtime-cpudetection --target=i586-linux

I was able to test this on my 32 bit distribution, and it worked.

It also seems the Ubuntu debian/rules just add one flag for 64 bit processors, but I have not tested the effect on 64 bit, or if is even necessary on 64 bit:

--enable-runtime-cpudetection

I also got gstreamer working on Wayland with these repos, branches, and configure options. I can't quite remember what I installed for dependencies though...

---------------------------------

gstreamer

git://anongit.freedesktop.org/gstreamer/gstreamer

master

./autogen.sh --prefix=$WLD

gst-plugins-base

git://anongit.freedesktop.org/gstreamer/gst-plugins-base

master

./autogen.sh --prefix=$WLD

gst-plugins-bad

git://anongit.freedesktop.org/gstreamer/gst-plugins-bad

master

./autogen.sh --prefix=$WLD

gst-plugins-good

git://anongit.freedesktop.org/gstreamer/gst-plugins-good

master

./autogen.sh --prefix=$WLD

gst-plugins-gl

https://github.com/ystreet/gst-plugins-gl

wip-platform

./autogen.sh --prefix=$WLD --disable-opengl

gst-libav

git://anongit.freedesktop.org/gstreamer/gst-libav

master

./autogen.sh --prefix=$WLD

Unfortunately, gstreamer-vaapi it seems it is not updated for the lastest Wayland, or gstreamer, and despite many combinations, it seems that it won't build. The master branch tries to find gst-plugins-base 0.10, and other branches fail with out of date Wayland issues. It seems that gstreamer works without it though.

-------------------------------------------------------

For playing a file gstreamer:

$WLD/bin/gst-launch-1.0 playbin video-sink=glimagesink uri=file:///path/to/file/to/play.webm

For showing the gstreamer test:

$WLD/bin/gst-launch-1.0 videotestsrc ! glimagesink

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to