Fluendo mp3 decoder: Difference between revisions

From OLPC
Jump to navigation Jump to search
mNo edit summary
(added insructions on how to retrive the plugin from the Journal, if downloaded with Browse)
Line 7: Line 7:
==Installation==
==Installation==


In order to download the codec you have to "buy" the Fluendo mp3 decoder from their store for $0.00 from [https://shop.fluendo.com/ here].
You will need a web browser such as [[Opera]] that allows you to save files to the filesystem, instead of saving to the Journal.

In order to download the codec you have to "buy" the Fluendo mp3 decoder from their store for $0.00 from [https://shop.fluendo.com/ here].


You are then allowed to download the file '''fluendo-mp3-2.i386.tar.bz2'''
You are then allowed to download the file '''fluendo-mp3-2.i386.tar.bz2'''


It is easier to use a web browser such as [[Opera]] that allows you to save files to the filesystem, instead of saving to the Journal. Nevertheless, you can retrieve it from the Journal if you download with the default web browser [[Browse]]:
Unzip it with [[bunzip2]] and [[tar]], then copy the '''libgstflump3dec.so''' file into

$HOME/.gstreamer-0.10/plugins
Go to the datastore:
on your local system.

cd ~/.sugar/default/datastore/store/

and find out which filename is the plugin:

file * | grep bzip2

It's highly like that you will only get one result. Copy the file to your home directory, while giving it a more sensible name:

cp filename_found_in_datastore ~/fluendo-mp3.tar.bz2
Having the file now, unzip it with [[bunzip2]] and [[tar]]:

bunzip2 filename.tar.bz2
tar xvf filename.tar

Create a plugins directory for gstreamer:
mkdir ~/.gstreamer-0.18/plugins
and copy the '''libgstflump3dec.so''' to it:
cp libgstflump3dec.so ~/.gstreamer-0.10/plugins


If you have root access you can instead copy it to
Or you can instead copy it to
/usr/lib/gstreamer-0.10
/usr/lib/gstreamer-0.10


If you use this second position then the plugin will be available to any user logging into this machine.
If you use this second position then the plugin will be lost the next time you upgrade to a new OS build.


Once it is copied over, verify that gstreamer recognises the plugin by doing a 'gst-inspect-0.10 flump3dec'.
Once it is copied over, verify that gstreamer recognises the plugin by doing a 'gst-inspect-0.10 flump3dec'.

Revision as of 18:08, 20 January 2008

This page describes third-party software that does not meet the OLPC standards for software freedom. The use of such software is unsupported; OLPC does not endorse or encourage its use.

The majority of podcasts are made available as mp3 files, which cannot be viewed by the OLPC by default. To enable mp3 playback, an extra codec has to be installed.

Fluendo has made available a free (as in beer) codec, with a free (as in speech) implementation with a paid up license for the Gstreamer code framework. This requires execution of a license agreement for redistribution; unfortunately, the agreement does not permit sub-licensing, so while including it would be convenient and OLPC may choose to execute this agreement in the future, those redistributing our software would still have to execute this agreement to legally redistribute the codec.

Installation

In order to download the codec you have to "buy" the Fluendo mp3 decoder from their store for $0.00 from here.

You are then allowed to download the file fluendo-mp3-2.i386.tar.bz2

It is easier to use a web browser such as Opera that allows you to save files to the filesystem, instead of saving to the Journal. Nevertheless, you can retrieve it from the Journal if you download with the default web browser Browse:

Go to the datastore:

cd ~/.sugar/default/datastore/store/

and find out which filename is the plugin:

file * | grep bzip2

It's highly like that you will only get one result. Copy the file to your home directory, while giving it a more sensible name:

cp filename_found_in_datastore ~/fluendo-mp3.tar.bz2
 

Having the file now, unzip it with bunzip2 and tar:

bunzip2 filename.tar.bz2
tar xvf filename.tar

Create a plugins directory for gstreamer:

mkdir ~/.gstreamer-0.18/plugins

and copy the libgstflump3dec.so to it:

cp libgstflump3dec.so ~/.gstreamer-0.10/plugins

Or you can instead copy it to

/usr/lib/gstreamer-0.10

If you use this second position then the plugin will be lost the next time you upgrade to a new OS build.

Once it is copied over, verify that gstreamer recognises the plugin by doing a 'gst-inspect-0.10 flump3dec'.

Unless this command reports back 'No such element or plugin 'flump3dec' the plugin should be sucessfully installed and you should have access to playing back MP3 files using GStreamer applications.

To playback a file

gst-launch-0.10 playbin uri=file:///path/to/file.mp3