Hi Team,
I m trying to test the audio on imx8mmevk with mpg321. currently compiled yocto version is L5.4.47-2.2.0 .While trying to play mp3 file using mpg321(connected headphones at J401 connector). i m getting below error logs.
==================================================
root@imx8mmevk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: btscoaudio [bt-sco-audio], device 0: 30020000.sai-bt-sco-pcm bt-sco-pcm-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: wm8524audio [wm8524-audio], device 0: 30030000.sai-wm8524-hifi wm8524-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@imx8mmevk:~#
===================================================
root@imx8mmevk:~# mpg321 /mnt/file_example_MP3_700KB.mp3
No default libao driver available.
====================================================
root@imx8mmevk:~# mpg321 -o oss /mnt/file_example_MP3_700KB.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
now maintained by Nanakos Chrysostomos and others.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title : Impact Moderato Artist : Kevin MacLeod
Album : YouTube Audio Library Year :
Comment : Genre : Cinematic
Playing MPEG stream from file_example_MP3_700KB.mp3 ...
MPEG 1.0 layer III, 224 kbit/s, 32000 Hz stereo
Can't find a suitable libao driver. (Is device in use?)
=================================================
please provide any solution to play mp3 file using mpg321.
Thanks in advance...
hi...thanks for the reply...
I can able to play mp3 file using gstreamer commands. but unable to play using mpg321 binary. can you please check above logs and tell us any solution.
Thanks & Regards
Ganesh.K
Unfortunately this mpg321, it is not a tool that we support, so as it mentions it is used at your own risk, I apologize. I really think it is better to used the Gstreamer commands or gplay in order to used our official codecs.