{"id":52,"date":"2008-03-09T23:44:01","date_gmt":"2008-03-10T02:44:01","guid":{"rendered":"http:\/\/labs.morpheuz.eng.br\/blog\/09\/03\/2008\/xine-4-maemo\/"},"modified":"2008-03-09T23:44:01","modified_gmt":"2008-03-10T02:44:01","slug":"xine-4-maemo","status":"publish","type":"post","link":"https:\/\/blog.morpheuz.cc\/?p=52","title":{"rendered":"xine 4 Maemo ?"},"content":{"rendered":"<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>\n<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>\n<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>\n<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>\n<p align=\"center\">\u00a0int write_size = number_of_frames \/ this-&gt;bytes_per_frame;<\/p>\n<p>\u00a0After 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>\n<p>So, if you are interested in helping me with this task, you&#8217;re welcome \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<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; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[30,32,50],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-maemo","tag-maemo","tag-mplayer","tag-xine"],"_links":{"self":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":0,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.morpheuz.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}