Bug 552363 - Pulseaudio does not handle Dolby Digital passthrough (mplayer -ac hwac3)
Summary: Pulseaudio does not handle Dolby Digital passthrough (mplayer -ac hwac3)
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 19
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-04 19:49 UTC by Scott Doty
Modified: 2015-02-18 13:25 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-18 13:25:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Scott Doty 2010-01-04 19:49:04 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6 GTB6

It seems as if pulseaudio doesn't have the hooks necessary to pass dolby digital from (say) an .avi file out an hdmi cable to a digital audio tuner.

For example, I have to use the following script to play a file with dolby digital w/ac3 passthrough:

#!/bin/sh
killall pulseaudio \
	&& exec mplayer -ac hwac3 -ao alsa:device=hw=0.3 \
	$*


Reproducible: Always

Steps to Reproduce:
1. try to play back a file with ac3 passthrough using pulseaudio

Actual Results:  
Playing South.Park.S13E09.720p.HDTV.X264-DIMENSION.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
shm_open() failed: Permission denied
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
Couldn't find matching filter/ao format!


Expected Results:  
This example is with alsa -- while it gives a warning about "unknown pcm", this does work, and the tuner recognizes and plays the DD stream.

Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:4484:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:4617:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hw:0,3,AES0=6
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
Starting playback...


This is my media PC, a Zotac itx mobo w/NVidia sound & video chipset.

I've also had to use alsamixer > f6 > select HDA sound device > unmute second SPDIF device, to get sound (pcm or ac3) to play through the HDMI cable...but that's another issue.

This is an extremely major feature of alsa that doesn't seem to exist with pulseaudio.

Comment 1 Rafał Miłecki 2010-04-19 19:11:53 UTC
Upstream bug: http://www.pulseaudio.org/ticket/167

Too bad ppl seem to do not care about it :(

Comment 2 Didier 2010-04-30 22:33:30 UTC
As AC3/DTS are basic sound features in this age and time, I guess PA's deficiency renders Fedora quite useless as an HTPC platform (say XBMC) ?

Comment 3 Ademar Reis 2010-10-24 23:41:44 UTC
Does anybody know a workaround? I'm stuck with this... I managed to play a few files directly via alsa (mplayer -ao alsa) but the behavior seems erratic (trying several different pulseaudio settings, eventually it works, but I can't reproduce the same steps more than once).

The original workaround doesn't work for me either (pulseaudio automatically respawns itself on Fedora 13):

#!/bin/sh
killall pulseaudio \
 && exec mplayer -ac hwac3 -ao alsa:device=hw=0.3 \
 $*

Any idea is very welcome.

Comment 4 Scott Doty 2010-10-25 04:26:26 UTC
Hi Ademar,

Take a look at pasuspender -- "man pasuspender" for more info.

It's in the "pulseaudio-utils" package.

Comment 5 Tomasz Torcz 2010-10-25 20:40:19 UTC
There are AC3 passthrough patches floating on pulseaudio mailinglist. You can help advance by testing them and providing feedback.  When those patches will be good enough to be integreated in upstream PA, AC3 passthrough will came to Fedora.

Comment 6 Bug Zapper 2010-11-04 01:51:37 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Bug Zapper 2010-12-04 00:51:53 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Tomasz Torcz 2010-12-04 12:19:33 UTC
Still not integrated.

Comment 9 Tomasz Torcz 2011-09-13 09:04:34 UTC
Upstream fixed it in PA 1.0.

Comment 10 Fedora End Of Life 2013-04-03 20:09:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 11 Fedora End Of Life 2015-01-09 21:41:47 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2015-02-18 13:25:05 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.