[yocto] Adding mp3 support to gstreamer

Joshua Lock josh at linux.intel.com
Fri Oct 14 09:17:39 PDT 2011


On 10/14/2011 12:18 AM, Chris Tapp wrote:
> On 14 Oct 2011, at 01:26, Khem Raj wrote:
> 
>> On Thu, Oct 13, 2011 at 4:36 PM, Chris Tapp <opensource at keylevel.com>
>> wrote:
>>> I'm trying to add mp3 support to gstreamer.
>>>
>>> I've got a task that RDEPENDS on gst-meta-audio. The image produced
>>> includes
>>> gstreamer, as expected.
>>>
>>> However, there is no mp3 decoder included. I've tried setting:
>>>
>>> COMMERCIAL_AUDIO_PLUGINS = "gst-plugins-ugly-mad", but there was
>>> still no
>>> mp3 support.
>>>
>>> I then tried adding an RDEPENDS on gst-ffmpeg. gst-inspect -b showed
>>> this as
>>> 'blacklisted'.
>>>
>>> So, I then tried gst-fluendo-mp3, but I get a "nothing provides"
>>> error at
>>> build time.
>>>
>>> What do I need to do to get mp3 decoding added to the image?
>>
>> what does COMMERCIAL_LICENSE has in it ?
>> You might want to see that package is part of this variable or not
> 
> bitbake -e reports:
> 
> COMMERCIAL_LICENSE="lame gst-fluendo-mp3 libmad mpeg2dec ffmpeg qmmp"

Right, I'm struggling to find documentation further than what's in the
code[1] and bugzilla[2] (there's probably stuff in the mail archives
too) but, COMMERCIAL_LICENSE is a blacklist - so you have to remove
items from that list to acknowledge that there are likely commercial
implications of using those recipes.

Furthermore, there are white lists of permitted commercially licensed
packages, to which you need to add the output of COMMERCIAL_LICENSE
recipes that you want to include in images (by way of appending them to
default installation targets in various recipes).

COMMERCIAL_AUDIO_PLUGINS, COMMERCIAL_VIDEO_PLUGINS, and COMMERCIAL_QT

Hope this helps,

Joshua

1.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/conf/distro/include/default-distrovars.inc#n29
2. http://bugzilla.pokylinux.org/show_bug.cgi?id=576
-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre



More information about the yocto mailing list