[MPlayer-users] hw passthrough and pulseaudio

Alexander Roalter alex at roalter.it
Sun Jan 26 22:42:37 CET 2014


after some problems with alsa which are not yet solved, I thought to 
give passthrough via PulseAudio a try.

According to 
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Passthrough/

it should be supported at least by the library, maybe some code in the 
application needs fixing.

So I went and played:

mplayer -ao pulse -ac hwac3 FILE.VOB

but all I got was

[...]
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 448000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
[format] Sample format big-endian AC3 not yet supported
[libaf] Reinitialization did not work, audio filter 'format' returned 
error code -2
[libaf] Unable to setup filter system can not meet sound-card demands, 
please send a bug report.
Couldn't find matching filter/ao format!
Audio: no sound
Starting playback...

with -ao alsa:device=hw=0.1 I get sound, but also these messages:
[...]
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 448000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4571:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4704:(snd_config_expand) Parse arguments 
error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM 
hw:0,1,AES0=6
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
Starting playback...


So apparently, in the file the format is Big Endian, and some magic byte 
swapping is being done.

Even if I use dts, I get the following (strage) message:
(mplayer -ac hwdts -ao pulse DTSFILE.m2ts)

Forced audio codec: hwdts
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to DTS, 1536000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
[format] Sample format little-endian AC3 not yet supported
[libaf] Reinitialization did not work, audio filter 'format' returned 
error code -2
[libaf] Unable to setup filter system can not meet sound-card demands, 
please send a bug report.
Couldn't find matching filter/ao format!
Audio: no sound
Starting playback...

Why is it still complaining about little endian AC3 here?

-- 
Cheers,
Alex


More information about the MPlayer-users mailing list