AnsweredAssumed Answered

How to use mpg123 on imx6ull14x14evk board

Question asked by Mannsik Chung on Apr 20, 2017
Latest reply on Apr 21, 2017 by Mannsik Chung

I added mgp123 to local.conf as this

CORE_IMAGE_EXTRA_INSTALL += "\
mpg123 \
alsa-lib \
alsa-plugins \
alsa-state \
alsa-utils"
LICENSE_FLAGS_WHITELIST="commercial"

But, running mpg123 shows error as below

 

root@imx6ull14x14evk:~# mpg123 Happy.mp3

[../../../mpg123-1.22.4/src/output/pulse.c:84] error: Failed to open pulse audio output: Connection refused

[../../mpg123-1.22.4/src/audio.c:645] error: failed to open audio device

[../../mpg123-1.22.4/src/audio.c:180] error: Unable to find a working output module in this list: pulse

[../../mpg123-1.22.4/src/audio.c:545] error: Failed to open audio output module

[../../mpg123-1.22.4/src/mpg123.c:913] error: Failed to initialize output, goodbye.
root@imx6ull14x14evk:~#

For more information, I can play a wav file using aplay (one of alsa-utils).

 

How can I use mpg123 ?

Outcomes