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

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

 



On Tue, 26 Oct 2010 12:04:25 +0100
Wojciech Bober <wojciech.bober@xxxxxxxxx> wrote:

> 2010/10/26 Sergei Steshenko <steshenko_sergei@xxxxxxx>:
> > IIRC ("I got to the stage where I'm able to play a wav file using aplay"), you did manage to play WAV file(s) using 'aplay', so if 'aplay' works, ALSA is
> > clean/kosher, and the issue(s) are with other applications, with their ALSA
> > interface.
> >
> > According to my
> >
> > ~/AFSWD/install/mpg123-1.12.5/binsh/mpg123 --help
> >
> > "-a d Âset audio device", so which devices did you try to set ?
> 
> The device was the same:
> 
> mpg123 -vvv -a plughw:0,0 -o alsa Take_Five.mp3
> aplay -v -d plughw:0,0 take_file.wav
> 
> I also suspected that it's a problem of mp3 decoding, so I tried to
> use mplayer to play a wav file:
> mplayer -ao alsa:device=plughw=0.0 take_file.wav
> 
> But mplayer stops at 0.0 seconds.
> 
> I cannot use hw:0.0 directly, because the sound card seems to accept
> samples only in S32_BE format. The question is what is aplay doing
> that mplayer/cmus/alsaplayer etc isn't?
> 
> Wojtek
> 

If your

aplay -v -d plughw:0,0 

works, then the WAV file number of bits is compatible with with your
card.

What does

file take_file.wav

show ?

...

How about

"--reopen           force close/open on audiodevice"

in mpg123 ?

Regards,
  Sergei.

------------------------------------------------------------------------------
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