View previous topic :: View next topic |
Author |
Message |
Mnith n00b
Joined: 06 Dec 2006 Posts: 24 Location: Poland
|
Posted: Tue Feb 06, 2007 9:03 pm Post subject: [solved]Surround on mplayer/kplayer |
|
|
Hi,
I've managed to set up surround by using the following script:
Code: | pcm.!dmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
channels 6
period_size 512
buffer_size 1024
}
}
pcm.!default {
type plug
slave.pcm "dmix"
slave.channels 6
route_policy duplicate
} |
It works fine with Amarok (I can hear the music from all speakers while playing 2.0 audio files), but mplayer as well as kplayer still plays sounds from 2.0 movies only with two speakers. Is there any way to solve it?
Furthermore I really dislike aRTS. I would really apreciate any hints about other software that will enable playing sounds from more than one application at the same time. _________________ "To nic! To nic! To nic!
Dopóki sił będę szedł!
Będę biegł! Nie dam się!"
- Edward Stachura
Last edited by Mnith on Fri Feb 09, 2007 11:21 pm; edited 1 time in total |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Feb 07, 2007 10:14 am Post subject: |
|
|
see man mplayer.
it has an -channels switch where you can specify how many channels audio should be up or downmixed to.
You can store the configuration then in ~/.mplayer/config:
# 2: Stereo, 4: 4 Speaker Surround, 6: 5.1 Surround
channels=4
Also take a look at the audio filters -af surround and channels.
HTH and good luck. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
Mnith n00b
Joined: 06 Dec 2006 Posts: 24 Location: Poland
|
Posted: Wed Feb 07, 2007 11:58 am Post subject: |
|
|
My ~/.mpayer/config was already like that:
Code: | ao=alsa
channels=6
alang=pl,en |
But I've just noticed that typing "mplayer filename" plays it with all speakers however everythig works extreamly slow and sound is buzzed. I've checked CPU usage and it's about ~30 %, but at the same time load is between 0.75-1, but while playing it normally (from gui and with 2.0) values are almost the same.
Anyway thanks for your help!
[EDIT]: Btw, do you know any replacement for arts? _________________ "To nic! To nic! To nic!
Dopóki sił będę szedł!
Będę biegł! Nie dam się!"
- Edward Stachura |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Feb 07, 2007 3:54 pm Post subject: |
|
|
Mnith wrote: |
[EDIT]: Btw, do you know any replacement for arts? |
Well, I just turned it off in the KDE settings.
Also, I have compiled KDE (etc) with -arts; it will still be installed as a dependency but at least artsd is not running.
No problems with any apps, they simply play sounds normally through ALSA or OSS.
Not sure about KDE sounds ("Notifications") because I don't use any, they might not work. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
Mnith n00b
Joined: 06 Dec 2006 Posts: 24 Location: Poland
|
Posted: Wed Feb 07, 2007 6:07 pm Post subject: |
|
|
I have it turned off also, but without arts only one program can make any sounds at the time, so I'm looking for somthing similar but less buggy. _________________ "To nic! To nic! To nic!
Dopóki sił będę szedł!
Będę biegł! Nie dam się!"
- Edward Stachura |
|
Back to top |
|
|
Mnith n00b
Joined: 06 Dec 2006 Posts: 24 Location: Poland
|
Posted: Fri Feb 09, 2007 11:20 pm Post subject: |
|
|
Hi,
I was finally able to solve it. I red the man pages and find there necessairy options. Thanks for your hint, nephros. Sorry for the late answer, but I was still during the exam period on my both universities and because of that I had very little of free time.
And the trick looks like that (I post it here in case that somone else would encounter similar problem in the future):
Code: | gmplayer -af channels=6:4:0:0:0:2:1:1:1:3,center=4,sub |
[EDIT]: There is even better way. You can add to ~/.mplayer/config the following line:
Code: | af=channels=6:4:0:0:0:2:1:1:1:3,center=4,sub |
_________________ "To nic! To nic! To nic!
Dopóki sił będę szedł!
Będę biegł! Nie dam się!"
- Edward Stachura |
|
Back to top |
|
|
|