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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to