Mplayer build guide fixes, and gstreamer guide

Eoff, Ullysses A ullysses.a.eoff at intel.com
Wed Jan 16 18:47:24 PST 2013


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.com at lists.freedesktop.org [mailto:wayland-devel-bounces+ullysses.a.eoff=intel.com at lists.freedesktop.org] On Behalf Of nerdopolis
Sent: Friday, January 11, 2013 4:56 PM
To: wayland-devel at lists.freedesktop.org
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






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130117/c38e56f6/attachment-0001.html>


More information about the wayland-devel mailing list