Installing GStreamer Codecs for Moblin OS
Moblin by default doesn’t come with any of the handy dandy codecs you need to play your favorite music or video files (ie. divx, xvid, mpeg, mp3, etc.) and offers no easy way of installing them. (BOO MOBLIN, BOO!)
After hacking away and trying to compile gstreamer codecs on the August 18 release of Moblin OS with little to no success, I finally came across this post on the Intel blogs. It’s still is a pain in the arse, and isn’t nearly as easy to install as using apt-get, but it’ll get the job done. (source: intel software network)
Author: Wang Yang - Intel Compiler Team
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.
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.
Another blog post which may be of help can be found here as it describes an RPM solution.
