LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-26-2005, 01:34 AM   #1
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Rep: Reputation: 16
How to play music using all of your 5.1 system?


Many friends of mine have 5.1 systems, and - how else should it be - windows, and can play music on all 6 channels. well.. in my alsamixer i got the possibility to play stereo content on 4 channels, thats nice, but not what i want... what i want is to get the music to the subwoofer...

is there any possibility for me to get the XMMS output to all 6 channels? or is there any program that can output stereo content to them? ("upmix")

thx for all anwers.........
 
Old 06-26-2005, 07:16 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
the alsa controlls are specific to your soundcard so we need hardware details
it is possible you just need a better mixer
 
Old 06-26-2005, 08:35 PM   #3
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 16
it's a Terreatec Aureon 5.1 PCI (C-Media PCI CMI8738-MC6)
 
Old 09-20-2005, 10:48 AM   #4
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Hi guys!

Unfortunately I'm suffering from the same problem and this is realy frustating! I'm using the same soundcard and have Ubuntu Linux 5.10 running. Can anyone help me out?

Thanks to everyone reading/answering this.
 
Old 09-20-2005, 02:51 PM   #5
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 16
Um... well, I found a solution to that problem, but it seemed as if there was a loss of quality, at least with my sound system..

There's a possibility to setup filters for alsa, so that certain things are done with the output, like, for example, route 2 channels to 6 channels. That can be done in the file ~/.asoundrc (some info).

I hope thats gonna work:

Code:
# (~/.asoundrc)
# Route 2 channels to 6
pcm.two2six {
    type route
    slave.pcm "hw:0,1" # It's not always this device, but as we have the same soundcard...
    slave.channels 6

    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
    ttable.0.4 0.5
    ttable.1.4 0.5
    ttable.0.5 0.5
    ttable.1.5 0.5
}
Now just tell whatever program you wanna use to output sound via the two2six alsa-device...

I think there were some programs like MPlayer or XMMS that didn't like the 0.5 in the last 4 lines... if so, replace them by:

Code:
ttable.0.4 1
ttable.0.5 1
Or something like that. But try to avoid it cause only the sound of one of the two channels will be routed to the center and the subwoofer...

Last edited by DeNayGo; 09-20-2005 at 02:54 PM.
 
Old 09-22-2005, 07:35 AM   #6
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
I tried all of this but it just didn't work :/ Any suggestions?
 
Old 09-23-2005, 04:54 AM   #7
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 16
Did you make sure that your sound system and sound card work properly? If not, try "speaker-test -c6 -D plug:surround51" and hear if every speaker outputs something.

If so, I probably made a mistake in that .asounrc file above. You can find more info on how to write it at www.alsa-project.org.

Last edited by DeNayGo; 09-23-2005 at 12:37 PM.
 
Old 09-23-2005, 08:38 AM   #8
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
I tried "speaker-test -c6 -D plug:surround51" and it just worked perfectly! But, unfortunately, I'm still not able to listen to music/watch my movies in 5.1 and enjoy this great subwoofer. I've been reading alsa-project.org for several times now (at least 10 times in the last 5 days) but it seems to me as if I'm just not able to follow these instructions. I tried several .assoundrcd-files (some made by friends, one from alsa-project.org and this one of you) but it just does not work.
 
Old 09-23-2005, 12:43 PM   #9
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 16
Um.. are you absolutely sure you told whatever program you tested to output via "two2six"? And are you sure that programs didn't show any errors? Cause if you are, the only thing you could test right now is to change slave.pcm to "surround51" (in case I was wrong about the device).
 
Old 09-23-2005, 02:22 PM   #10
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
No, I am not sure (what a great sounding answer). If i understood correctly I simply have to use the correct device in xmms, which is "hw:0,2" (it's just the only one of them that works without an errormesssage AND produces sound). I'm sorry but I'm afraid I have to ask for an answer which is a little bit more precise.

Regards
 
Old 09-23-2005, 10:20 PM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Just a note. You do understand that MP3s are stereo, which means they have only two channels. You can put those two channels out of 6 speakers but it won't sound as good as something like a DVD which has 6 channels...
 
Old 09-24-2005, 02:13 AM   #12
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Yea, I understand. But I'm even not able to listen to real 5.1 files in the correct way. So that's the problem
 
Old 09-24-2005, 03:25 AM   #13
DeNayGo
Member
 
Registered: Jun 2005
Location: Aachen, Germany
Distribution: Debian
Posts: 74

Original Poster
Rep: Reputation: 16
Well, ok, concerning 2ch output:
If I tell XMMS to use the ALSA device hw:0,1, only the 2 rear speakers play music. You have to type in "two2six" where you can choose between hw:0,1 and hw:0,0. I suggest you try "mplayer -ao alsa:two2six song.mp3" and send me the output...

And concerning 6ch output:
Does
Code:
mplayer -channels 6 -ao alsa sixchannelmovie.avi
work? (If you get some error like "alsa" doesn't exist, try alsa1x..)

Last edited by DeNayGo; 09-24-2005 at 03:30 AM.
 
Old 09-24-2005, 05:44 AM   #14
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
If you want to upmix a file with stereo sound to 5.1, you can do it with mplayer like this:

mplayer -ao alsa:device=surround51 -af surround,sub=100:5,center=4 -channels 6 file.avi
 
Old 09-25-2005, 05:24 AM   #15
TopasPV
LQ Newbie
 
Registered: Sep 2005
Location: Büdingen, Germany
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Quote:
I suggest you try "mplayer -ao alsa:two2six song.mp3" and send me the output.
Code:
 mplayer -ao alsa:two2six Celldweller\ -\ Switchback.mp3
MPlayer dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for Debian.


Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing Celldweller - Switchback.mp3.
Cache fill:  0.00% (0 bytes)    Audio file detected.
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
Could not parse arguments at the position indicated below:
two2six
^

-ao alsa commandline help:
Example: mplayer -ao alsa:mmap:device=hw=0.3
  sets mmap-mode and first card fourth device

Options:
  mmap
    Set memory-mapped mode, experimental
  noblock
    Sets non-blocking mode
  device=<device-name>
    Sets device (change , to . and : to =)
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
Quote:
And concerning 6ch output:
Does

code:

mplayer -channels 6 -ao alsa sixchannelmovie.avi


work? (If you get some error like "alsa" doesn't exist, try alsa1x..)
Because of not having any sixchannelmovie.avi I used the files of a dvd (which supports 5.1 - you can choose between 5.1 and stereo in the audiomenu of the dvd). The following output was given:

Code:
 mplayer -channels 6 -ao alsa vts_03_1.vo b
MPlayer dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for Debian.


Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing vts_03_1.vob.
Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  7800.0 kbps (975.0 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [dvdpcm] Uncompressed DVD/VOB LPCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16be, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dvdpcm] afm:dvdpcm (Uncompressed DVD/VOB LPCM)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16be -> 0Hz/0ch/??...
alsa-init: 1 soundcard found, using: default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Big Endian
AO: [alsa] 48000Hz 2ch s16be (2 bps)
Building audio filter chain for 48000Hz/2ch/s16be -> 48000Hz/2ch/s16be...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
Thanks for your effort!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can play music only as root. zahadumy Linux - Software 3 06-03-2005 05:01 AM
How to play music over network? Halli Linux - Networking 3 08-01-2004 08:09 AM
cant play music king kong killa Fedora 2 06-11-2004 09:36 PM
Why can't I play Music CD's sgtbob Linux - Newbie 12 01-30-2004 06:28 PM
my music won't play JamDunc Linux - Newbie 4 08-03-2003 07:30 AM


All times are GMT -5. The time now is 12:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration