Mplayer build guide fixes, and gstreamer guide
nerdopolis
bluescreen_avenger at verizon.net
Fri Jan 11 16:56:04 PST 2013
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/20130111/0fd005cf/attachment-0001.html>
More information about the wayland-devel
mailing list