config: add OMX.st.audio_decoder.mp3.mad for Bellagio config
authorGurkirpal Singh <gurkirpal204@gmail.com>
Wed, 26 Apr 2017 17:22:17 +0000 (22:52 +0530)
committerJulien Isorce <jisorce@oblong.com>
Sun, 21 May 2017 14:40:11 +0000 (15:40 +0100)
MP3 Software decoder (libmad based) but useful for testing
and to compare with other targets.

GST_OMX_CONFIG_DIR=$HOME/gst/master/gst-omx/config/bellagio/ \
    gst-launch-1.0 filesrc location=mpthreetest.mp3 ! id3demux ! \
    mpegaudioparse ! omxmp3dec ! audioconvert ! pulsesink

Didn't add 'local' in core-name path compared to other components
in that same gstomx.conf file because OMX.st.audio_decoder.mp3.mad
comes with the Ubuntu package 'libomxil-bellagio0-components-mad'.
All other components listed in this gstomx.conf for Bellagio, are
not provided by any Ubuntu packages. It could explain the 'local',
i.e. requiring to build them from source.

dpkg -L libomxil-bellagio0
    /usr/lib/libomxil-bellagio.so.0

https://bugzilla.gnome.org/show_bug.cgi?id=781786

Signed-off-by: Gurkirpal Singh <gurkirpal204@gmail.com>
Signed-off-by: Julien Isorce <jisorce@oblong.com>
config/bellagio/gstomx.conf

index 5ca8ba6..ae76c1c 100644 (file)
@@ -33,3 +33,12 @@ rank=0
 in-port-index=0
 out-port-index=1
 hacks=event-port-settings-changed-ndata-parameter-swap
+
+[omxmp3dec]
+type-name=GstOMXMP3Dec
+core-name=/usr/lib/libomxil-bellagio.so.0
+component-name=OMX.st.audio_decoder.mp3.mad
+rank=0
+in-port-index=0
+out-port-index=1
+hacks=event-port-settings-changed-ndata-parameter-swap;no-component-role;no-disable-outport;drain-may-not-return