All times are UTC-06:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Mon Oct 25, 2010 1:22 pm 
Offline

Joined: Wed Mar 08, 2006 2:28 am
Posts: 24
Location: Ireland
Hi all,

I'm trying to build mp3 jukebox out of my Efika, but I cannot get mpg123 to work. I'm running crux 2.6

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. Have anyone managed to play mp3 on Efika?

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


Last edited by bvr on Sat Oct 30, 2010 6:47 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 3:10 pm 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1066
I know, it's not an answer for your original question, but if you want to listen to mp3, you should definitely consider EFIKA MX and/or the smartbook. I have a high end Sennheiser headphone, and already used it with Harman/Kardon, JVC and Sony amplifiers, but the EFIKA MX has far the best headphones out compared to anything I used before!

See http://czanik.blogs.balabit.com/2010/08 ... ic-server/

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Mon Oct 25, 2010 10:49 pm 
Offline

Joined: Thu Aug 27, 2009 1:07 pm
Posts: 14
Location: Bohemia
Peter is right – the sound output on the original Efika is just horrible – noise, beeps and scratches are always present. It's a bit better when you don't use the IDE port (which I recommend anyway, since it's broken), but the quality is still very low.

By the way, does the S/PDIF output work in recent kernels? I'm still using 2.6.33, so is there a reason for me to upgrade?


Top
   
 Post subject:
PostPosted: Tue Oct 26, 2010 12:40 am 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1066
The noise problems of the original EFIKA could easily be worked around by playing music from a network share or from a pendrive / USB HDD. Only the IDE HDD had that terrible effect on sound quality.

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Tue Oct 26, 2010 4:05 am 
Offline

Joined: Wed Mar 08, 2006 2:28 am
Posts: 24
Location: Ireland
I played a wav from CF card mounted as the IDE and the sound was ok. I haven't tested it on headphones, though. I'll try my Sennheiser headphones today :)

I was planing to use a SATA hdd with PCI SATA controller, so the IDE issue you are mentioning shouldn't be a problem.

Peter, if I won't get my Efika running I'll get Logitech Sqeezebox, rather than Efika MX. It's a device dedicated as a jukebox and streaming player. Plus, it's just a little bit more expensive than Efika MX.


Top
   
 Post subject:
PostPosted: Tue Oct 26, 2010 1:55 pm 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1066
Well, I don't feel comfortable if I can't hack the machine to the latest bits. I mean ssh root access with full control and a generic Linux distribution. The Sqeezebox has a remote with a display, higher kHz sound output, etc., still the lack of root access (I mean, without breaking the system :-) ), etc. make the EFIKA MX a better choice for me.

BTW: EFIKA MX (Debian / Ubuntu) has mpd, and mpd can also be controlled from an Android mobile. So I have a remote control too :)

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Wed Oct 27, 2010 3:11 pm 
Offline

Joined: Sun Feb 21, 2010 6:58 pm
Posts: 30
Location: Roma, ITALIA
mpg123 works fine on my Efika PowerPC with CRUX PPC 2.6 . It's able to play (from CF) an mp3 320kbit/s stereo 44100Hz with only ~9%CPU.

You need a good tuned kernel and a proper Device Tree Supplement. They were already posted here.

_________________
CRUX PPC user!


Top
   
 Post subject:
PostPosted: Thu Oct 28, 2010 5:41 am 
Offline

Joined: Wed Mar 08, 2006 2:28 am
Posts: 24
Location: Ireland
I used both kernel config and DTS from that post.

I couldn't, however, update firmware to the latest version (is that required anyway?).

My problem was partially solved: I compared debug information from aplay with the one used by speaker-test (it didn't work either). The only difference I could see was the buffer size used for playback, which was smaller in case of aplay. I decreased the buffer size and speaker-test started to work.

I tried to use dmix plugin in asound.conf to set system wide buffer size, but I was unsuccessful.

Lucky there is an option in mpd to set the buffer size, so now mpd works. Other applications don't, but I don't need them, so I didn't investigate.


Top
   
 Post subject:
PostPosted: Thu Oct 28, 2010 10:00 am 
Offline

Joined: Sun Feb 21, 2010 6:58 pm
Posts: 30
Location: Roma, ITALIA
i guess you really need the firmware update.

_________________
CRUX PPC user!


Top
   
 Post subject:
PostPosted: Thu Oct 28, 2010 11:48 am 
Offline

Joined: Thu Oct 19, 2006 7:19 am
Posts: 271
Location: Italy/Greece
i can confirm, mpg123 works ( and really uses ~9%CPU) and it's able to play mp3 with good sound quality altough i prefer to use mpg123+Efika to play shoutcast thematic radio streaming 'cause i've it headless with a 4GB SDHC as hard disk (img).
Code:
acrux@efika:~$ uname -a
Linux efika 2.6.36-efika #1 Thu Oct 28 17:17:58 CEST 2010 ppc G2_LE Efika 5200B PowerPC System GNU/Linux
acrux@efika:~$ crux
CRUX PPC (32 bit) version 2.6
Code:
acrux@efika:~$ mpg123 -vv -@ http://yp.shoutcast.com/sbin/tunein-sta ... ?id=477309
Trying output module alsa.
Using default module dir: /usr/lib/mpg123
Module dir: /usr/lib/mpg123
Module path: ./output_alsa.la
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.12.5; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Decoder: generic

Audio driver: alsa
Audio device: <none>
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 |

Note: Attempting new-style connection to yp.shoutcast.com
Warning: additional info in content-type ignored (charset=ISO-8859-1)
Using playlist from http://yp.shoutcast.com/sbin/tunein-sta ... ?id=477309 ...
Note: Interpreting as PLS (Winamp/Shoutcast) playlist

playlist in normal order:
http://87.230.53.9:9650
http://87.230.53.10:9480
http://80.237.177.217:9800
http://80.237.156.96:4400
http://80.237.156.96:6666

Note: Attempting new-style connection to 87.230.53.9
Info: ICY interval 8192

Directory: http://
Playing MPEG stream 1 of 5: 87.230.53.9:9650 ...
ICY-NAME: METAL ONLY - http://www.metal-only.de - 24h Black Death Heavy Metal Rock und mehr
ICY-URL: http://www.metal-only.de
Note: Junk at the beginning (0xe6bb309d)
Note: Junk at the beginning (0xf7d77b5f)
Note: Junk at the beginning (0xfe50a2ee)
Note: missing 268 bytes in bit reservoir for frame 0
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 2, BPF : 417
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0.
Bitrate: 128 kbit/s Extension value: 0
Frame# 41 [ 0], Time: 00:01.07 [00:00.00], RVA: off, Vol: 100(100)Note: ID3v2.4 rev 0 tag of 22 bytes
Frame# 57 [ 0], Time: 00:01.48 [00:00.00], RVA: off, Vol: 100(100)
ICY-META: StreamTitle='* Otwan OnAir * Folk,Mittelalter,Pagan,Viking Metal *';StreamUrl='http://www.metal-only.de';
Frame# 6633 [ 0], Time: 02:53.27 [00:00.00], RVA: off, Vol: 100(100)
Code:
acrux@efika:~$ mpg123 -v 01-ZZA-zang_tumb_tumb.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.12.5; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
Decoder: generic

Playing MPEG stream 1 of 1: 01-ZZA-zang_tumb_tumb.mp3 ...
[id3.c:345] error: No comment text / valid description?
Title: Zang Tumb Tumb Artist: ZetaZeroAlfa
Comment: 00001A71 00001694 000067FD 00007B82 00035BA5 000382B5 00008000 00008000 000186A0 0001FBD0
Album: La ballata dello stoccafisso
Year: 2007 Genre: Unknown
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 2, BPF : 1044
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 320 kbit/s Extension value: 0
Frame# 142 [13690], Time: 00:03.70 [05:57.61], RVA: off, Vol: 100(100)

_________________
acrux _at_ linuxmail _dot_ org


Top
   
 Post subject:
PostPosted: Fri Oct 29, 2010 4:09 am 
Offline

Joined: Wed Mar 08, 2006 2:28 am
Posts: 24
Location: Ireland
Thanks for your feedback. I'm using kernel 2.6.32 (the one shipped with Crux 2.6), maybe that's the problem. I'll update the kernel to 2.6.36.

EDIT:
Updating to the newest kernel (2.6.36) solved the problem.


Top
   
 Post subject:
PostPosted: Tue Nov 02, 2010 6:47 pm 
Offline

Joined: Thu Oct 19, 2006 7:19 am
Posts: 271
Location: Italy/Greece
Glad you solved your problem.
Anyway the provided files (here) were clearly targeted to a kernel linux-2.6.34 or newer.

_________________
acrux _at_ linuxmail _dot_ org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group