This tutorial describes how to run Intel® INDE Media for Mobile sample application for Android* on a device right from Eclipse* IDE.
1. Make sure you have ADB driver for your Device installed and USB debugging is turned on on the Device.
2. In Eclipse IDE add DDMS perspective to manage the Device and add Console and LogCat views in your Java perspective. These will help you monitor the status of running application.
3. Select SamplesMainActivity project, go to Run menu and select Run. Here’s an example of a regular log in Console view:
4. Here’s what you’ll see on the Device:
5. Samples are essentially a single Android application with several screens (mapped to activities in the source code). When run the application shows a menu of samples. Most samples have very intuitive interface and are easy to run.
6. Let’s look at the Transcode Video sample as an example.
- Touch “folder” button and select a video file to transcode
- Touch Transcode
- Select required frame size and bitrate
- Touch Start
- Then either touch Stop or wait until the whole file is transcoded
- Touch OK on the message “Transcoding finished”
- Touch Play button to playback the transcoded video.
7. However, the streaming samples (Camera streaming, Game streaming and Media File streaming) are somewhat more complicated so here are some hints to run them:
- Pre work: set up your own streaming server using Wowza* Streaming Engine software.
- Run any of the streaming samples.
- Configure the following parameters: Host, Port, Application Name and Stream Name. Stream name must be in the following format: “mp4:yourStreamName”:
- Make sure your network allows connection to the specified port.
- Touch Start.
- Watch the video using “Play Video Stream” sample from the Media for Mobile installed to another device, using players supplied with Wowza Streaming Engine or some other 3rd party player..
8. Here are the steps required to run the “Content Recognition” sample using Audible Magic* library:
- Download the Big Buck Bunny movie from http://www.bigbuckbunny.org/ (direct link here), rename it to “bunny.mp4” and put it to “Movies” folder on your Android* device.
- Open “Recognition” menu and click on “Content Recognition” item. The app should display “Listening for audio” message on the screen:
- Play the Big Buck Bunny movie on some external device (e.g. on laptop using some media player) and place your Android device close to that external device to let it hear the audio.
- Once the content is recognized, sample application will start video playback from the recognized position:
- Please note that the “Content Recognition” sample application requires Internet connection to check Audible Magic license.
- To use another content you need to download Audible Magic SDK (http://developers.audiblemagic.com/). There is a tool what lets to index any media content into audible magic database.