<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Ubuntu Mono";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I Haven’t tried this in a while, but it may still be relevant…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://lists.freedesktop.org/archives/wayland-devel/2012-October/005719.html">http://lists.freedesktop.org/archives/wayland-devel/2012-October/005719.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m fairly sure, though, that gstreamer-vaapi still only works with gst-0.10 and is updated to the Wayland 1.0 protocol.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">U. Artie<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> wayland-devel-bounces+ullysses.a.eoff=intel.com@lists.freedesktop.org [mailto:wayland-devel-bounces+ullysses.a.eoff=intel.com@lists.freedesktop.org]
<b>On Behalf Of </b>nerdopolis<br>
<b>Sent:</b> Friday, January 11, 2013 4:56 PM<br>
<b>To:</b> wayland-devel@lists.freedesktop.org<br>
<b>Subject:</b> Mplayer build guide fixes, and gstreamer guide<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">Hi.<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">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<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">I looked at the debian/rules file for Ubuntu's mplayer, and found the configure flags they user<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">In order to be able to run mplayer on more hardware, you need to add these flags to ./configure on 32 bit machines:<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">--enable-runtime-cpudetection --target=i586-linux<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">I was able to test this on my 32 bit distribution, and it worked.<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">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:<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">--enable-runtime-cpudetection
<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">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...<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">---------------------------------<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gstreamer<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">git://anongit.freedesktop.org/gstreamer/gstreamer<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">master<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gst-plugins-base<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">git://anongit.freedesktop.org/gstreamer/gst-plugins-base<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">master<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gst-plugins-bad<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">git://anongit.freedesktop.org/gstreamer/gst-plugins-bad<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">master<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gst-plugins-good<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">git://anongit.freedesktop.org/gstreamer/gst-plugins-good<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">master<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gst-plugins-gl<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""><a href="https://github.com/ystreet/gst-plugins-gl">https://github.com/ystreet/gst-plugins-gl</a><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">wip-platform<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD --disable-opengl<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">gst-libav<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">git://anongit.freedesktop.org/gstreamer/gst-libav<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">master<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">./autogen.sh --prefix=$WLD<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">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.<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">-------------------------------------------------------<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">For playing a file gstreamer:<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">$WLD/bin/gst-launch-1.0 playbin video-sink=glimagesink uri=file:///path/to/file/to/play.webm<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">For showing the gstreamer test:<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0"><span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif"">$WLD/bin/gst-launch-1.0 videotestsrc ! glimagesink<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0">
<span style="font-size:10.0pt;font-family:"Ubuntu Mono","serif""> <o:p></o:p></span></p>
</div>
</div>
</body>
</html>