I’m integrating audio & video transcoding and manipulating to the ACS platform. The goal is to easily enable Android developers to perform complex image, video and audio processing on the cloud as if they were on their phone. To demonstrate this, I’m building a simple music player that feeds on 8tracks.com, a cool community driven internet radio. I’ll discuss how we built this Android application with ACS in another post. For now, I want to focus on Xuggle. The best media processing tool is ffmpeg. This is a powerful, fast and complete tool and there’s no need to recreate it. Xuggle is a Java wrapper around ffmpeg nased on its native libraries.  Installation is pretty straightforward for this type of project, just follow the simple guide on their site. The real power of Xuggle is in the way it exposes ffmpeg features. It has a simple API as well as an advanced one, both completely compatible and integrated. Let’s take a look at a simple transcoding sample :

// create a media reader   IMediaReader reader = ToolFactory.makeReader("videofile.flv");     // add a viewer to the reader, to see the decoded media   reader.addListener(ToolFactory.makeWriter("output.mov", reader));     // read and decode packets from the source file and   // and dispatch decoded audio and video to the writer   while (reader.readPacket() == null)     ;

That’s it! You create a reader, a writer listening to the reader’s packets and you loop through all packets. Xuggle supports about any audio & video formats and provides a myriad of powerful tools to modify audio and video as they are processed. Have a look at this toolbox. Easy A&V processing might be useful on Android (or any Java projects).

gabriel bélanger

Previous post

Les contextes pouvant influencer la qualité (en)

Next post

Succeeding with Scrum – Take the chance to view the private conference with Ken Schwaber (en)