Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd October 2009, 10:31 PM
msilveira Offline
Registered User
 
Join Date: Feb 2009
Posts: 3
linuxfedorafirefox
Cool Pulseaudio surround with a52 (Dolby Digital)

Hi all.

I'm amazed not to find any post with the keyword "a52" in this forum!

So, I'd like to invite everyone trying this setup or those who had successfully got it working to this discussion.

Goals:
  • First and the mother of all problems: Output encoded 5.1 to the digital out of the sound card, to a DTS/Dolby Digital capable receiver.
  • Have a52 encoded sound like DD (Dolby Digital) Live working on Windows
  • Be as compatible as possible for multiple programs (alsa dmix style)
  • Achieve a successful setup with both ALSA and Pulseaudio if possible

First Notes:
  • The a52 plugin requires access to the sound hardware
  • Pulseaudio already handles the mixing and rate conversion over alsa
  • My setup is with an ALC883(HDA-Intel) (Gigabyte GA-EP45-UD3P)

Let's begin with my current setup (for testing):
.asoundrc
Code:
pcm.pulseaudio {
  type pulse
}
ctl.pulseaudio {
  type pulse
}

pcm.pulsea52enc {
  type a52
  @args.0 {
    type integer
    default 0
  }
}
ctl.pulsea52enc {
type hw
card 0
}
pcm.pulseaudioplug {
  type plug
  slave.pcm "pulsea52enc"
}

pcm.!default {
  type upmix
  slave.pcm "pulsea52enc"
#  slave.pcm "pulseaudioplug"
  channels 6
}
ctl.!default {
    type pulse
}
The tail of my default.pa
Code:
load-module module-alsa-sink device=pulsea52enc rate=48000 channels=6 tsched=0 sink_name=alsa_a52
set-default-sink alsa_a52
My changes into default.pa (by default, everything is commented)
Code:
realtime-scheduling = yes
disable-lfe-remixing = no
default-fragments = 5
default-fragment-size-msec = 25
Linux, ALSA, programs just don't cease to amuse me...
Testing using xine with alsa as sound plugin and into pcm.!default I use slave.pcm "pulsea52enc", the sound distorts a bit, but if i change the slave to slave.pcm "pulseaudioplug" the "distortion" isn't there any more.
Changing the audio plugin to pulseudio, quality is good for both slaves.

If you get a message that audio device is no available, wait 2sec and try playing again.

Some notes:
  • mpg321 with -ao alsa09 is unable to spawn pulseaudio
  • audacious simply doesn't work (sound is "pausing"), using either pulse or alsa as output plugin
  • xmms works with pulseaudio plugin only; alsa plugin seems to try to use direct hardware access (damn ool unmaintained codes!)
  • Looks like amarok works fine!
  • Xine works fine, both stereo, ac3, dts, all works fine.
  • Totem didn't work
  • Not sure, but it looks like xine doesn't remember volume!?
  • I'm still trying to get pulseaudio device chooser/volume manager to work
  • Will try later with 4 channels instead of 6

I believe that pulseaudio already creates a 6 channel stream with this config, thus, making the pulseaudioplug and upmix pcms useless or might be guilty to some extent.

That's it for the moment, I hope those who want the same setup participate, so we may find the guilty for all this a52 mess... any component might be buggy: alsa-a52-plugin, pulseaudio or alsa. And surely there will still remain bugs in the programs we use.

Later, I will upload some audio samples recorded from my cell phone for you to compare with your results.

Last edited by msilveira; 2nd October 2009 at 10:32 PM. Reason: fix descriptions
Reply With Quote
  #2  
Old 14th December 2010, 01:00 PM
boxxy Offline
Registered User
 
Join Date: Nov 2010
Posts: 30
linuxfirefox
Re: Pulseaudio surround with a52 (Dolby Digital)

can someone confirm if workaround from msilviera working? thanks
Reply With Quote
Reply

Tags
a52, dd live, dolby digital live, pulseaudio, surround

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lenovo Y530 Dolby Surround Sound Problem larende Hardware & Laptops 2 24th April 2009 11:33 PM
ALSA, pulseaudio and 5.1 surround alarm9k Using Fedora 1 12th March 2008 04:29 PM
Dolby Digital Play back Fedora 5 tseufert Using Fedora 1 1st June 2006 06:21 PM
DVD playback and Dolby Digital 5.1 on Linux F for Fragging Using Fedora 5 26th October 2005 06:04 AM
Sound Fusion CS46xxx Dolby Surround ichiko Hardware & Laptops 8 23rd June 2005 11:23 AM


Current GMT-time: 16:36 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat