Bad quality sound on SPDIF and no AC3-passthrough
Here is my conf : Debian Sarge with Kernel 2.6.8-smp on P4P800
Seams that drivers are ok because if I do mplayer dvd:// -ao alsa:device=spdif -ac hwac3 or even with a DivX movie the DD or DTS stream passtrough the SPDIF connector and I get AC3 stream in my DD/DTS receiver. But if I start Totem (sound on AC3 output of course)clicking the icone or try with Mplayer I get bad sound quality and no AC3 stream. Stéréo has bad sound too. It looks like all streams are transcoded in stéréo and badly. I'd like to have DTS and DD and 2 stéréo (depend on the source file) set in this order as default stream through SPDIF. Even original stream (except MP3) 'always' sent through SPDIF connector. I tried to create a .asoudrc and a /etc/asournd.conf file but it seams to have no effect at all. For the record everything is installed correctly : alsa libs,driver, mixer. Volume control has 'Digital' slider and I get sound only if it's on and in the gnome volume control if I put ICE958P on sound gets off. ICE958 has no effect at all. |
First play the DVD movie and find out which aid has AC3 encoded. You may have to do 'mplayer dvd:// -identify -frames 0'. Next you can use spdif to output AC3 but specify -aid option with the value that you used. It could be:
mplayer dvd:// -ao alsa:device=spdif -ac hwac3 -aid 128 For DTS, it could be mplayer dvd:// -ao alsa:device=spdif ac hwdts -aid 137 I am just taking information from http://gentoo-wiki.com/HOWTO_Dolby_D...t_(AC3,_SPDIF). I do not have a spdif to analog converter to test my sound card's, Audiotrak Prodigy 7.1, spdif outputs. The $HOME/.asoundrc or /etc/asoundrc should work. If you run aplay -L it will include the lines that are in those files even though they may not be the correct syntax. I suggest using aplay to play a wav file to test your setup. BTW, You should upgrade the kernel and as well upgrade ALSA. |
Hi,
I can't play AC3 or DTS on my system. Mplayer plays the movie and outputs the sound somewhere, but I haven't been able to found out where yet. It's not to my receiver and not to my normal monitor speakers. My Receiver can handle DD5.1 and DTS so that's not the problem. I can play the Dolby Surround 2.0 track from a DVD without problems, just using: mplayer dvd:// This outputs to both my receiver and monitor speakers. I think there must be something missing in my alsa setup. I'm running Ubuntu-5.10 with the supplied alsa-1.0.9b4 (or something like that). My sound card uses the snd_intel8x0 driver (it's an nForce4 chipset motherboard from Asus). My .asoundrc looks like Code:
# ~/.asoundrc or /etc/asound.conf mplayer dvd:// -ao alsa:device=spdif (or digital, iec958, digital-hw) Mplayer outputs, but not to my receiver or normal speakers. Can anybody figure out, what's wrong with my setup? Another thing is the number of channels used. If I pass the option -channels 6 to mplayer it keeps playing 2 channels. Why is that? I hope someone can help me out here :) Ooh, one last thing. In order to get my spdif to work, I need to open the alsamixer and change the IEC958 to PCM. On each reboot it automatically changes itself to Analog In (where my spdif doesn't work). It doesn't help to do "alsactl store". Any ideas on how to fix this also? Please help :) Anders |
Your setup shows that it should output to the analog connectors. You will need to adjust PCM in alsamixer to get the sound. You may also have to adjust DAC if have them in the mixer. Third some sound cards need external amplifier unmuted in order to get analog outputs working. Not all sound cards have these mixer options.
Every DVD movie is different, so you have to specify the aid option that has AC-3. Mplayer have to be re-compiled if it does not have DTS support. If it is not, only AC-3 can be used. If you run 'mplayer dvd:// -identify -frames 0' it will show you different aid tracks and no it will not play because of the frames option. You may want to run mplayer by doing mplayer 'dvd:// -ao oss -channels 2' to see if outputs to analog. Probably your ~/.asoundrc or /etc/asound.conf is screwing up your ALSA setup. Back up them and clear out those files and try using spdif again. Try upgrading to 1.0.11 of ALSA. ALSA version 1.0.11 fixes a lot of problems. My A/V Reciever is Technics SA-AX7. It does not have have digital or optical inputs, so I am unable to test my SPDIF with my sound card. If you know where to find a SPDIF to analog converter, I could help you further. I am just giving out what I would do. |
Thanks for your answers.
My setup doesn't only output to the normal analog outputs. My receiver is connected via a Coax cable to my soundcard and when I play normal sounds (Music, Movies (not AC3 or DTS) etc) I hear sounds both in my normal speakers as well as from my receiver. So ALSA outputs both to the analog and SPDIF outputs. I have tried all the available aid's on the DVD's. Still nothing. Mplayer is compiled with DTS. Before my .asoundrc file I didn't get any output to SPDIF, no matter what I did! Only with this .asoundrc file have I been succesful. It's taken from http://www.mythtv.org/wiki/index.php/DigitalSoundHowTo (I've changed device 1 to device 2 somewhere). If I could just find out, how I only send sound to the SPDIF. As I wrote earlier didn't mplayer dvd:// -ao alsa:device=spdif (plus extra options) help. As for my mixer settings, they are (output from amixer): Code:
Simple mixer control 'Master',0 Anders |
For myself I'd like to have everything through SPDIF with preferred stream DTS, if not present DD if not present Stéréo with audio files directed to SPDIF as well and everything converted to stéréo on analog outpout at the same time. Does anyone have this kind of asound.conf ?
Totem an player plays AC3 stream correctly, everything is there if I execute the right commande in the shell but front-end gui is configured awfully. Audio and movies in totem has really bad sound quality (don't even think of AC3) and in mplayer it freezes or I get bad sound as well. I didn't even try xmms. I just want a simple conf file to set everything default for all applications. |
All times are GMT -5. The time now is 03:03 AM. |