[yocto] Adding mp3 support to gstreamer

Chris Tapp opensource at keylevel.com
Fri Oct 14 12:25:17 PDT 2011


On 14 Oct 2011, at 17:17, Joshua Lock wrote:

> 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,


It does. Thanks.

However, I'm now even more confused ;-)

I've got it working by using the gstreamer recipe from 5.0.1 (I'm  
building under 4.0.1). However, bitbake -e still reports as above and  
I can't see ffmpeg in any context other than

RECIPE_STATUS_pn-gst-ffmpeg="red".

Still, it's working :-)

Chris Tapp

opensource at keylevel.com
www.keylevel.com






More information about the yocto mailing list