This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1837MOD: streaming audio with mp3 codec

Part Number: WL1837MOD

Tool/software: Linux

Hi,

thank to your tuto :

WL18xx TI Bluetooth Stack AUDM Demo App

I managed to connect my android phone with A2DP.

I used

gst-launch-1.0 -v --gst-debug-level=2 ss1a2dpsrc deccaps=sbcdeccaps ! ss1rtpsbcdepay ! capsfilter name=sbcdeccaps ! ss1sbcdec ! alsasink device="hw:0,0"

It was OK.

The things is to upgrade sound quality with mp3 codec.
I made sure the plugin works by listening to a local mp3 file.

I re-compiled SS1BTPM with BTPS_CONFIGURATION_AUD_SUPPORT_MP3  1

I transfered SS1BTPM and libgstss1bluetooth.so, and I restarted my board.

I inspired from the command line with the SBC codec :

gst-launch-1.0 -v --gst-debug-level=2 ss1a2dpsrc deccaps=mp3deccaps ! ss1rtplatmdepay checkmuxfragments=false ! capsfilter name=mp3deccaps ! mad ! alsasink device="hw:0,0"

but unfortunately my gst pipeline didn't work

gst_parse_perform_link: could not link capsfilter0 to mad0

My question is : can I use mad codec to decode MP3 stream ?

Best regards,

Thomas

  • Thomas,

    Are you positive that the remote device supports MP3 codec over A2DP? If it does not, the connection would revert to the default SBC codec.

    That being said, recompiling with BTPS_CONFIGURATION_AUD_SUPPORT_MP3 is only going to configure the A2DP profile so that it will indicate to the remote device (i.e. smartphone) that it supports the MP3 codec. The AUDM, by default, only uses the SBC codec that is part of the TI dual-mode Bluetooth stack release.

    For using the gstreamer pipeline, please refer to the following demo guide. We have not used MP3 codec in the past, but the AAC example in this demo guide should serve as a good reference.

    http://processors.wiki.ti.com/index.php/WL18xx_TI_Bluetooth_Stack_AUDM_Demo_App#GStreamer


    Best regards,
    Vihang

  • Vihang,

    Thanks for your answer.

    My command Didn't work, without smartphone. 

    gst-launch-1.0 -v --gst-debug-level=2 ss1a2dpsrc deccaps=mp3deccaps ! ss1rtplatmdepay checkmuxfragments=false ! capsfilter name=mp3deccaps ! mad ! alsasink device="hw:0,0"

    I will use SBC for andoird and AAC for iOS.

    Thanks.

    Thomas