<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://blogs.forum.nokia.com/styles/rss.css" type="text/css"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns="http://purl.org/rss/1.0/"
>
 <channel rdf:about="http://blogs.forum.nokia.com/rss.php?blogId=26729&amp;profile=rss10">
  <title>David Caabeiro&#039;s Forum Nokia Blog</title>
  <link>http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog</link>
  <description>A Forum Nokia Blog</description>
    <dc:creator>david.caabeiro</dc:creator>
  <dc:date>2009-11-23T21:20:59Z</dc:date>
  <admin:generatorAgent rdf:resource="http://www.lifetype.net" />
  <items>
   <rdf:Seq>
       <rdf:li rdf:resource="http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/28/j2me-mpeg-update" />
       <rdf:li rdf:resource="http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/16/j2me-mpeg-decoder" />
      </rdf:Seq>
  </items> 
 </channel>
  <item rdf:about="http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/28/j2me-mpeg-update">
  <title>J2ME MPEG update</title>
  <link>http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/28/j2me-mpeg-update</link>
  <dc:description>&lt;p&gt;
Some people have shown some interest and asked me to create a repository to make collaboration easier, so I hosted the project at google code. You can check out the code using your favorite Subversion client, or with the command line client: 
&lt;/p&gt;
&lt;p&gt;
&lt;strike&gt;&lt;tt&gt;svn checkout &lt;strong&gt;&lt;em&gt;http&lt;/em&gt;&lt;/strong&gt;://j2me-mpeg.googlecode.com/svn/trunk/ j2me-mpeg&lt;/tt&gt;&lt;/strike&gt;
&lt;/p&gt;
&lt;p&gt;
If you&#039;re interested in participating, feel free to contact me.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Update:&lt;/strong&gt; the project was moved &lt;a href=&quot;http://bitbucket.org/sequencepoint/j2me_mpeg/wiki/Home&quot;&gt;here&lt;/a&gt; 
&lt;/p&gt;</dc:description>
      
    <dc:subject>Java</dc:subject>
     
    
  <dc:date>2008-05-28T12:32:27Z</dc:date>
    <dc:creator>david.caabeiro</dc:creator>
 </item>
  <item rdf:about="http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/16/j2me-mpeg-decoder">
  <title>J2ME MPEG Decoder</title>
  <link>http://blogs.forum.nokia.com/blog/david-caabeiros-forum-nokia-blog/2008/05/16/j2me-mpeg-decoder</link>
  <dc:description>&lt;p&gt;
From time to time switching to other less used languages is a good thing (especially when doing Symbian) 
&lt;/p&gt;
&lt;p&gt;
I recall having seen requests to decode MPEG streams in J2ME (without relying on any media API such as the  MMAPI of course):
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://discussion.forum.nokia.com/forum/showthread.php?t=101607&quot; target=&quot;_blank&quot;&gt;http://discussion.forum.nokia.com/forum/showthread.php?t=101607&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://discussion.forum.nokia.com/forum/showthread.php?t=129788&quot; target=&quot;_blank&quot;&gt;http://discussion.forum.nokia.com/forum/showthread.php?t=129788&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Surprisingly enough I haven&#039;t seen any decoder so far. So this little hobby project aims to provide such functionality for MIDP 2.0 devices (CLDC 1.0).  
&lt;/p&gt;
&lt;p&gt;
The code is self explanatory (I hope) and I set up a page for it on the Wiki: &lt;a href=&quot;http://wiki.forum.nokia.com/index.php/J2ME_MPEG_decoder&quot;&gt;http://wiki.forum.nokia.com/index.php/J2ME_MPEG_decoder&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
As the text states, the main aim was providing a simple example for learning purposes. There&#039;s a  &lt;em&gt;&lt;strong&gt;lot of room&lt;/strong&gt; &lt;/em&gt;for improvement and optimization and it would be really nice to see some collaboration if anyone&#039;s interested. 
&lt;/p&gt;
&lt;p&gt;
Even though you won&#039;t get the performance available with the MMAPI, using a software decoder has some good pros:
&lt;/p&gt;
&lt;p&gt;
* You are in control of the code, which is rather lightweight (The current jar file size with no obfuscation is about 36KB)
&lt;/p&gt;
&lt;p&gt;
This also means not having to deal with differences and limitations in the implementation, bugs, etc, something the MMAPI has been quite good at (limited aspects, missing events, problems with full screen videos are some of the issues I recall in the past) 
&lt;/p&gt;
&lt;p&gt;
* More phones available, as you don&#039;t need to rely on the MMAPI 
&lt;/p&gt;
&lt;p&gt;
* Being in control of the stream(s), allowing to achieve things such as picture in picture, etc.
&lt;/p&gt;
&lt;p&gt;
An obvious improvement would be supporting MPEG-2 streams (H.264 / MPEG4-Part 10 would be the real achievement) and adding streaming functionality (RTP)
&lt;/p&gt;
&lt;p&gt;
A rather obvious problem is that audio is not supported, yet there are many possible use cases for this project (video surveillance being one of them)
&lt;/p&gt;
&lt;p&gt;
Oldest device I got with MIDP2 was a Nokia 7610, where (depending on the video) up to 5 fps was achieved. 
&lt;/p&gt;
&lt;p&gt;
Here&#039;s a screen capture rendering &amp;quot;The Wall&amp;quot;: 
&lt;/p&gt;
&lt;p&gt;
&lt;img src=&quot;http://blogs.forum.nokia.com//data/blogs/resources/26729/mpeg-decoder-wall.png&quot; alt=&quot;MPEG Decoder screen capture&quot; /&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Enjoy.-
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;</dc:description>
      
    <dc:subject>Java</dc:subject>
     
    
  <dc:date>2008-05-16T22:48:35Z</dc:date>
    <dc:creator>david.caabeiro</dc:creator>
 </item>
 </rdf:RDF>