<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MoRpHeUz&#039;s Blog &#187; mplayer</title>
	<atom:link href="http://blog.morpheuz.cc/tag/mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.morpheuz.cc</link>
	<description>Just stuff ;)</description>
	<lastBuildDate>Sun, 29 Aug 2010 14:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>xine 4 Maemo ?</title>
		<link>http://blog.morpheuz.cc/09/03/2008/xine-4-maemo/</link>
		<comments>http://blog.morpheuz.cc/09/03/2008/xine-4-maemo/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 02:44:01 +0000</pubDate>
		<dc:creator>morpheuz</dc:creator>
				<category><![CDATA[Maemo]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[xine]]></category>

		<guid isPermaLink="false">http://labs.morpheuz.eng.br/blog/09/03/2008/xine-4-maemo/</guid>
		<description><![CDATA[I have been thinking about a port of xine to maemo since a long time ago. Maybe you are thinking: &#8220;why have xine when you already have gstreamer and mplayer ?&#8221; Well, the problem is that it&#8217;s very hard to use mplayer as a backend for media players but it&#8217;s actually the best video player [...]]]></description>
			<content:encoded><![CDATA[<p>I have been thinking about a port of xine to maemo since a long time ago. Maybe you are thinking: &#8220;why have xine when you already have gstreamer and mplayer ?&#8221;</p>
<p>Well, the problem is that it&#8217;s very hard to use mplayer as a backend for media players but it&#8217;s actually the best video player for the platform, thanks to Siarhei and some other developers that contribute with the project. It&#8217;s very hard because mplayer was not develop having in mind that it would be used by other applications, it&#8217;s &#8220;just&#8221; an application that accepts commands from the standard input. So, it&#8217;s very annoying to handle errors and send/receive commands to/from mplayer.</p>
<p>If we had xine for the platform, we could still have mplayer as a video player and also have xine as a library so it would be easier for multimedia applications to make use of all the features provided by xine. I&#8217;m specially interested in gapless playback of mp3 files (it&#8217;s a feature that Canola&#8217;s users <em>just want</em>) and to use every optimization that mplayer has, as it&#8217;ll be good for both engines.</p>
<p>I&#8217;ve already started playing around with xine. I compiled it on scratchbox and tried on my brand new n810. The audio was just choppy =/ . So I took a look on mplayer&#8217;s alsa code and discovered that it would need a trick: instead of sending <em>number_of_frames</em> to alsa, I needed to calc the correct amount of data to send to alsa:</p>
<p align="center"> int write_size = number_of_frames / this-&gt;bytes_per_frame;</p>
<p> After that, just good sound out of speakers =) . Of course, video playback was nothing compared to mplayer but it has potential, as both share the same ffmpeg library.</p>
<p>So, if you are interested in helping me with this task, you&#8217;re welcome <img src='http://blog.morpheuz.cc/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.morpheuz.cc/09/03/2008/xine-4-maemo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
