| June 29, 2009 1:00 AM PDT | |
How to play mp3, mpeg, flv, mov, h264 etc media files on Mobin? Totem plus Gstreamer may be one of the best choice.
GStreamer is a library for constructing graphs of media-handling components. You can get more information from http://gstreamer.freedesktop.org/
GStreamer is released under the LGPL. The 0.10 series is API and ABI stable. You can download the source from Gstreamer website. For example, get the Gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly and gst-ffmpeg sources from http://gstreamer.freedesktop.org/src .
1. Build the Gstreamer and Gstreamer codecs with gcc
a: extract the tar.gz file
$tar xvf xxx.tar.gz
b: build configuration
$ ./configure –prefix=/usr
c: make the build
$ make
d: su into root and make the install
$ sudo make install
The Gstreamer plugins are installed in /usr/lib/gstreamer-0.10 by default.
If you installed Totem, invoke totem and now you should be able to play lots of media files.
To clean the build, just use "make clean" to clean the environment for repeat builds.
2. Build the Gstreamer and Gstreamer codecs with icc
a: set up the icc build environment
$ source /opt/intel/Compiler/11.1/XXX/bin/ia32/iccvars_ia32.sh
b: build configuration
$ ./configure –prefix=/usr CC=icc
c: make the build
$ make
d: su to root and set the icc build environment
$ sudo –s
$ source /opt/intel/Compiler/11.1/XXX/bin/ia32/iccvars_ia32.sh
e: make the install
$ make install
3 Notes for building gst-ffmpeg plugin with icc
You may need to change the configuration file before step 2.b. For example, for gst-ffmpeg-0.10.7, edit the configure file, around line 17800, add new option “-cc=icc” so that icc is used to build the codec libraries. You may also remove options --disable-ffplay and --disable-protocols so that the binaries, ffplay and ffmpeg, are built for video file playing and converting.
4. If you run the build on an Intel Atom processor based platform, you may add the option “-xSSE3_ATOM” to the CFLAGS environment variable for better performance.
| Optimization Notice |
|---|
|
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice. Notice revision #20110804 |
This article applies to: Intel® C++ Compiler for Linux* Knowledge Base
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (11) 
| October 17, 2009 3:06 PM PDT
McLin |
Hi, did this instruction work under Moblin 2.1? |
| November 17, 2009 9:11 AM PST
R. Isento | Hi, will this work on the latest release of Moblin Netbook/Nettop 2.1-Final (moblin-2.1-final-20091103-002.img) ? |
| December 9, 2009 1:07 PM PST
makeda | Hey, i dont want to be rude.. but how exactly does this work? i tried, but i dont know what to add in the "personal"places like.. for example prefix=/usr? |
| December 14, 2009 5:45 PM PST
Yang Wang (Intel)
| The instructions should work on Moblin2.1. Please let me know if you find any problem on Moblin 2.1 system. |
| December 14, 2009 5:47 PM PST
Yang Wang (Intel)
|
Hi Makeda, If you want the gstreamer to be installed in a personal folder, you can just configure it with prefix, for example, set the option --prefix=/path/to/my/folder Thanks. -Yang |
| December 24, 2009 11:47 AM PST
Danny |
Hi I keep getting the following error configure: error: This package requires GLib >= 2.16 to compile. |
| December 25, 2009 5:59 AM PST
Yang Wang (Intel)
|
Hi Danny, Gstreamer requires some libraries like Glib etc. In such case, please configure your yum to make sure it's working and then use yum install Glib to install the latest glib libraries. Thanks. -Yang |
| January 10, 2010 9:31 PM PST
Bruno |
I use Moblin 2.1 Please, someone release as .RPM. |
| January 11, 2010 10:29 PM PST
Yang Wang (Intel)
|
I also tried 2.1 moblin. Everything works fine. It's not difficult to build it if you are using gcc, with your yum configured for software updates. Thanks. -Yang |
| March 20, 2011 8:57 PM PDT
victor |
hi, yang could you please provide the download link of the compiler used in the articles? |
Trackbacks (2)
- links for 2009-08-08 « いただきます
August 8, 2009 3:05 AM PDT - Uhella Personal Blog - Note 2009-10-13 14:32:28
October 13, 2009 3:35 PM PDT
Leave a comment 
Yang Wang (Intel)
|


sharkcohen
Asus Eee 1005HA
2.6.30.3-4.1.moblin2-netbook