<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>java-media-framework &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/java-media-framework/</link>
	<description>Feed of posts on WordPress.com tagged "java-media-framework"</description>
	<pubDate>Tue, 29 Dec 2009 11:24:34 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Java, Webcam &amp; Linux]]></title>
<link>http://calameda.wordpress.com/2009/10/29/java-webcam-linux/</link>
<pubDate>Thu, 29 Oct 2009 08:32:57 +0000</pubDate>
<dc:creator>Daniele</dc:creator>
<guid>http://calameda.wordpress.com/2009/10/29/java-webcam-linux/</guid>
<description><![CDATA[In my opinion, the interaction between real world and computers is one of the most exciting part of ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In my opinion, the interaction between real world and computers is one of the most exciting part of software development.</p>
<p>To see the world with an electronic eye and be able to add information to reality creating an augmented reality is really amazing.</p>
<p>One of the fields we are strongly focused at Calameda labs is Augmented Reality.</p>
<p><!--more--></p>
<p>The first problem to overcome is how to retrieve an image from your webcam. I&#8217;m a java programmer and I&#8217;m a convinced linux user.</p>
<p>In java, to work with the webcam there is a package named Java Media Framework (JMF).</p>
<p>Java Media Framework has two problems:</p>
<ul>
<li>Is outdated: I don&#8217;t know why but Sun has forgotten about this project and its last update dates back to 2007.</li>
<li>Use video4linux to interact with Linux</li>
</ul>
<p>I want to spent same extra words to explain better the second point</p>
<h3>Linux WebCam Support</h3>
<p>Linux provides the webcam support with a kernel module named Video4Linux.</p>
<p>Video4Linux or V4L (for friends) is a hardware abstraction layer for the webcam&#8217;s world to applications.</p>
<p>Linux is alive, very alive, and over the years, a new version of the Video4Linux was developed: Video4Linux2 (V4L2 for friend <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ).</p>
<p>Although v4l2 is integrated into the standard kernel a number of drivers don&#8217;t support the new v4l2 API yet, so we&#8217;ll likely see v4l and v4l2 coexist for some time.</p>
<p>Obviously v4l and v4l2 is not fully compatible and, since JMF was developed at the time of v4l, you cannot use a webcam that supports v4l2 with JMF on Linux.</p>
<p>In other words if you have a recent webcam that the kernel recognized with v4l2 driver is impossible to use with java with JMF.</p>
<p>This is the situation.</p>
<h3>The Solution</h3>
<p>Fortunately there is a solution: Video4Linux4Java (now you&#8217;re exaggerating with the names:-))</p>
<p>As you can read from the site &#8220;Video4Linux4Java (v4l4j) is a GPL&#8217;d java package providing simple access to the capture interface of the Video4Linux (V4L) API from Java.&#8221;</p>
<p>This library supports both V4L and V4L2 devices and it&#8217;s easy to integrate in your java code.</p>
<p>I recommend it and maybe in some future article I will show you some piece of code that uses it.</p>
<p>That&#8217;s all Folks.</p>
<p>Daniele</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Instalando el Java Media Framework (JMF) en Ubuntu.]]></title>
<link>http://munguis.wordpress.com/2008/04/15/instalando-el-java-media-framework-jmf-en-ubuntu/</link>
<pubDate>Tue, 15 Apr 2008 18:52:02 +0000</pubDate>
<dc:creator>munguis</dc:creator>
<guid>http://munguis.wordpress.com/2008/04/15/instalando-el-java-media-framework-jmf-en-ubuntu/</guid>
<description><![CDATA[Otro tema que no es la mar de impresionante, pero dada la poca información y asistencia que encontré]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;"><a href="http://munguis.wordpress.com/2008/04/07/haciendo-un-cable-mini-din-8-a-db-9-para-un-plc/" target="_blank"><strong>O</strong>tro tema</a> que no es la mar de impresionante, pero dada la poca información y asistencia que encontré, considero que es buena idea hablar al respecto.</p>
<p style="text-align:justify;">El <a href="http://en.wikipedia.org/wiki/Java_Media_Framework" target="_blank">Java Media Framework</a> es una librería de <a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29" target="_blank">Java</a> recientemente lanzada que nos permite manipular con considerable facilidad cualquier contenido multimedia (videos, música, imágenes, interacción con webcams y micrófonos) para integrarlo en cualquier aplicación. En este caso yo necesito de ella para integrar unos videos para un <span style="text-decoration:line-through;">estúpido</span> proyecto de Simulación. Sin más, detallo el proceso de instalación.</p>
<p><strong>Prerrequisitos:</strong></p>
<p>- Un lindo y amigable equipo con <a href="http://en.wikipedia.org/wiki/Ubuntu_%28Linux_distribution%29" target="_blank">Ubuntu</a> instalado.</p>
<p style="text-align:justify;">- La versión más actual del <a href="http://en.wikipedia.org/wiki/JRE" target="_blank">Java Runtime Environment</a> &#8211;JRE, el cual ya contiene la Máquina Virtual de Java&#8211; (el cual es el paquete sun-java6-jre, versión 6-03-ubuntu2).</p>
<p style="text-align:justify;">- La versión más actual del <a href="http://en.wikipedia.org/wiki/JDK" target="_blank">Java Development Kit</a> &#8211;JDK&#8211; (el cual es el paquete sun-java6-jdk, versión 6-03-ubuntu2).</p>
<p><strong>Instalación:</strong></p>
<p style="text-align:justify;">Existen 2 maneras (o por lo menos sólo conozco 2, cualquier otra es bienvenida) de echar a andar este Framework, la 1a no me resultó a mí y sin embargo es la más difundida, por eso decidí con más razón postear sobre esto. En las 2 formas los pasos iniciales son idénticos, por eso hablaré del proceso común y al final de lo que distingue ambos métodos de instalación:</p>
<p><strong><em>Proceso Común:</em></strong></p>
<p>1. Descargar el JMF (obviamente la versión para Linux) de <a href="http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jmf-2_1_1e-linux-i586.bin?BundledLineItemUUID=UyJIBe.oHDAAAAEZO5YxP1NG&#38;OrderID=uGhIBe.oCM0AAAEZK5YxP1NG&#38;ProductID=_SjACUFBHW4AAAEYy9I5AXis&#38;FileName=/jmf-2_1_1e-linux-i586.bin" target="_blank">aquí</a>.</p>
<p>2. Colocar el archivo descargado en tu carpeta home.</p>
<p>3. Abrir una terminal y escribir:</p>
<blockquote><p><em>sh jmf-2_1_1e-linux-i586.bin</em></p></blockquote>
<p style="text-align:justify;">4. Escribir <em>YES</em> a todos los cuestionamientos y listo, tendrás una carpeta llamada JMF-2.1.1e en tu carpeta de home.</p>
<p><strong><em>Método 1.</em></strong></p>
<p style="text-align:justify;">5. Abrir una terminal y escribir los siguientes comandos (esto da de alta las variables de entorno necesarias):</p>
<blockquote><p><em>export JMFHOME=/home/tu_usuario/JMF-2.1.1e<br />
export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}<br />
export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}</em></p></blockquote>
<p style="text-align:justify;">6. Listo. Consulta el siguiente <a href="http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html" target="_blank">applet</a> para saber si tu instalación fue exitosa (el resultado óptimo debería decir: <em>All Java Build &#8211; Native Libraries Found</em>. Si tu instalación no fue exitosa puedes intentar en 2o método. Antes de hacerlo iguala las 3 variables de entorno anteriores a nada (es decir, por ejemplo, <em>export JMFHOME=</em> ).</p>
<p><strong><em>Método 2.</em></strong></p>
<p>5. Abre una terminal y escribe:</p>
<blockquote><p><em>sudo nautilus</em></p></blockquote>
<p style="text-align:justify;">6. Dirígete a tu carpeta /usr/lib/jvm/java-6-sun/jre/lib/ext y dentro de ésta copia los archivos .jar que contenga tu carpeta /home/tu_usuario/JMF-2.1.1e/lib.</p>
<p style="text-align:justify;">7. Dirígete a tu carpeta /usr/lib/jvm/java-6-sun/jre/lib/i386 y dentro de ésta copia los archivos .so que contenga tu carpeta /home/tu_usuario/JMF-2.1.1e/lib.</p>
<p>8. Reinicia tu sistema Ubuntu.</p>
<p style="text-align:justify;">9. Listo. Consulta el siguiente <a href="http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html" target="_blank">applet</a> para saber si tu instalación fue exitosa (el resultado óptimo debería decir: <em>All Java Build &#8211; Native Libraries Found</em>. Si tu instalación no fue exitosa puedes decir -Uh cañito!!- y pedirme ayuda. Gustosamente te atenderé a la brevedad posible.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
