Can't play mp3 with mpg123, but wav with aplay works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm trying to build mp3 jukebox out of Efika, which is an embedded
MPC5200 based board. I got to the stage where I'm able to play a wav
file using aplay. But when I try to play an mp3 using mpg123 it
freezes after decoding a few frames. I spent a few hours trying to get
this work, but I'm slowly running out of ideas.   I'm running crux 2.6

I also tried to used mplayer and play wave and mp3. It does not work either.

Any advice would be appreciated.

Output of mpg123
Code:
mpg123 -vvv -a plughw:0,0 -o alsa Take_Five.mp3
Trying output module alsa.
Using default module dir: /usr/lib/mpg123
Module dir: /usr/lib/mpg123
Module path: ./output_alsa.la
Note: alsa is the last output option... showing you any error messages now.
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
    version 1.12.4; written and copyright by Michael Hipp and others
    free software (LGPL/GPL) without any warranty but with best wishes
Decoder: generic
Note: Disabling all formats.
Note: checking support for 8000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 8000/1 for encodings 0x37ff.
Note: checking support for 11025Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 11025/1 for encodings 0x37ff.
Note: checking support for 12000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 12000/1 for encodings 0x37ff.
Note: checking support for 16000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 16000/1 for encodings 0x37ff.
Note: checking support for 22050Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 22050/1 for encodings 0x37ff.
Note: checking support for 24000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 24000/1 for encodings 0x37ff.
Note: checking support for 32000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 32000/1 for encodings 0x37ff.
Note: checking support for 44100Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 44100/1 for encodings 0x37ff.
Note: checking support for 48000Hz/1ch.
Note: result 0x37ff
Note: Want to enable format 48000/1 for encodings 0x37ff.
Note: checking support for 8000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 8000/2 for encodings 0x37ff.
Note: checking support for 11025Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 11025/2 for encodings 0x37ff.
Note: checking support for 12000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 12000/2 for encodings 0x37ff.
Note: checking support for 16000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 16000/2 for encodings 0x37ff.
Note: checking support for 22050Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 22050/2 for encodings 0x37ff.
Note: checking support for 24000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 24000/2 for encodings 0x37ff.
Note: checking support for 32000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 32000/2 for encodings 0x37ff.
Note: checking support for 44100Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 44100/2 for encodings 0x37ff.
Note: checking support for 48000Hz/2ch.
Note: result 0x37ff
Note: Want to enable format 48000/2 for encodings 0x37ff.

Audio driver: alsa
Audio device: plughw:0,0
Audio capabilities:
(matrix of [S]tereo or [M]ono support for sample format and rate in Hz)
   Â| s16 | u16 | s32 | u32 | f32 | s8 Â| u8 Â| ulaw | alaw |
Â------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
 8000 | M/S | M/S | M/S | M/S | M/S | M/S | M/S | M/S | M/S |
Â11025 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â12000 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â16000 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â22050 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â24000 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â32000 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â44100 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |
Â48000 |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |Â M/SÂ |


playlist in normal order:
Take_Five.mp3


Playing MPEG stream 1 of 1: Take_Five.mp3 ...
Note: ID3v2.3 rev 0 tag of 71914 bytes
Note: ID3v2 TALB frame of size 19
Note: ID3v2 TPE1 frame of size 43
Note: ID3v2 TPE2 frame of size 51
Note: ID3v2 TCOM frame of size 27
Note: ID3v2 TENC frame of size 43
Note: ID3v2 TCON frame of size 11
Note: ID3v2 TLEN frame of size 7
Note: ID3v2 TMED frame of size 7
Note: ID3v2 TPUB frame of size 19
Note: ID3v2 TIT2 frame of size 21
Note: ID3v2 TRCK frame of size 2
Note: ID3v2 TYER frame of size 5
Note: ID3v2 APIC frame of size 68990
Note: ID3v2 MCDI frame of size 10
Note: ID3v2 PRIV frame of size 39
Note: ID3v2 PRIV frame of size 41
Note: ID3v2 PRIV frame of size 31
Note: ID3v2 PRIV frame of size 138
Note: ID3v2 PRIV frame of size 34
Note: ID3v2 PRIV frame of size 39
Note: ID3v2 PRIV frame of size 20
Note: ID3v2 PRIV frame of size 14
Note: ID3v2 PRIV frame of size 17
Note: New output format 44100Hz 2ch, format 208
Title: ÂTake Five           ÂArtist: Dave Brubeck Quartet
Comment:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂAlbum:Â Time Out
Year:Â Â 1959Â Â Â Â Â Â Â Â Â Â Â Â Â Â Genre:Â Jazz
MPEG 1.0, Layer: III, Freq: 44100, mode: Stereo, modext: 0, BPF : 835
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 256 kbit/s Extension value: 0
Frame#Â Â 18 [12500], Time: 00:00.47 [05:26.53], RVA:Â Âoff, Vol: 100(100)


Output of aplay -l
Code:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Efika [Efika], device 0: AC97 Analog stac9766 analog-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: Efika [Efika], device 1: AC97 IEC958 stac9766 IEC958-1 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0


Output of aplay -v -d plughw:0,0 take_file.wav
Code:
Playing WAVE 'take_file.wav' : Signed 16 bit Little Endian, Rate 44100
Hz, Stereo
Plug PCM: Linear conversion PCM (S32_BE)
Its setup is:
 stream   Â: PLAYBACK
 access   Â: RW_INTERLEAVED
 format   Â: S16_LE
 subformat  : STD
 channels  Â: 2
 rate    Â: 44100
 exact rate Â: 44100 (44100/1)
 msbits   Â: 16
 buffer_size : 22052
 period_size : 5513
 period_time : 125011
 tstamp_mode : NONE
 period_step : 1
 avail_min  : 5513
 period_event : 0
 start_threshold : 22052
 stop_threshold Â: 22052
 silence_threshold: 0
 silence_size : 0
 boundary  Â: 1445199872
Slave: Hardware PCM card 0 'Efika' device 0 subdevice 0
Its setup is:
 stream   Â: PLAYBACK
 access   Â: MMAP_INTERLEAVED
 format   Â: S32_BE
 subformat  : STD
 channels  Â: 2
 rate    Â: 44100
 exact rate Â: 44100 (44100/1)
 msbits   Â: 32
 buffer_size : 22052
 period_size : 5513
 period_time : 125011
 tstamp_mode : NONE
 period_step : 1
 avail_min  : 5513
 period_event : 0
 start_threshold : 22052
 stop_threshold Â: 22052
 silence_threshold: 0
 silence_size : 0
 boundary  Â: 1445199872
 appl_ptr  Â: 0
 hw_ptr   Â: 0
--
Wojtek

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux