[MPlayer-users] Mplayer can't read a 48kHz/24bit wave. No problem with aplay.

Martijn van Beurden mvanb1 at gmail.com
Tue Feb 24 11:27:04 CET 2009


Dominik 'Rathann' Mierzejewski schreef:
> On Monday, 23 February 2009 at 19:12, Paride Legovini wrote:
>   
>> I have a 24kHz/24bit wave file:
>>
>> $ file antani.wav
>> antani.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 24 
>> bit, stereo 48000 Hz
>>
>> My sound card supports this format, and so I can play it with 'aplay'
>>     
> [...]
>   
>> But I have problems in playing the 24bit/44.1kHz file with mplayer:
>>
>> $ mplayer -ao alsa:device=hw=1.0 antani.wav
>>
>> ==========================================================================
>> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
>> AUDIO: 48000 Hz, 2 ch, s24le, 2304.0 kbit/100.00% (ratio: 288000->288000)
>> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
>> ==========================================================================
>> [AO_ALSA] Format s24le is not supported by hardware, trying default.
>> [AO_ALSA] Unable to set format: Invalid argument
>> Failed to initialize audio driver 'alsa:device=hw=1.0'
>> Could not open/initialize audio device -> no sound.
>>
>> Any clue?
>>     
>
> We need full uncut output of mplayer -v -ao alsa:device=hw=1.0 antani.wav
> Does it work if you don't specify the audio device manually?
> You could also try -format s24le.
>
> Regards,
> R.
>
>   

I have the same problem here, and adding -format s24le wont help. I
think it's because there's a difference between s24le and s24_3le (?)
and I don't know a -format option for s24_3le. Mplayer tries to play
s24le, while my /etc/asound.conf says my device uses s24_3le. If I try
to set asound.conf to s24le alsa says my device doesn't support it.



More information about the MPlayer-users mailing list