[Solved] Stereo to 5.1 upmixing with pipewire

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
moddie
Posts: 5
Joined: 2012-06-15 09:50
Has thanked: 1 time

[Solved] Stereo to 5.1 upmixing with pipewire

#1 Post by moddie »

Hi,

couldn't find anything current like this for debian based systems.

I am running on debian testing and I've been trying to get stereo (and anything below 5.1) to be upmixed to 5.1, or at least play stereo stuff on front and rear L+R not just front L+R.
Bonus for downmixing stuff above 5.1...

This solution seemed promising: https://forum.manjaro.org/t/pipewire-re ... -5-1/84774
but the result was no sound at all. pavucontrol said it cannot connect to pulseaudio. The "sytemctl --user pipewire*" sevices all seemed fine, but no sound. Deleting the new config restored previous functionality.

Unfortunately i am not well versed in linux-audio (or audio in general) related stuff, so my google foo has failed me ;(

Does anyone have an idea how to accomplish this configuration?

greetings
/moddie
Last edited by moddie on 2024-08-23 12:02, edited 1 time in total.

User avatar
ruwolf
Posts: 906
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 89 times
Been thanked: 67 times

Re: Stereo to 5.1 upmixing with pipewire

#2 Post by ruwolf »


User avatar
sunrat
Site admin
Site admin
Posts: 7450
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 134 times
Been thanked: 665 times

Re: Stereo to 5.1 upmixing with pipewire

#3 Post by sunrat »

Pipewire conf is generally distro agnostic, although I did get stumped with one difference in OpenSUSE. Try this answer:
https://forum.endeavouros.com/t/no-upmi ... lved/39430
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

moddie
Posts: 5
Joined: 2012-06-15 09:50
Has thanked: 1 time

Re: Stereo to 5.1 upmixing with pipewire

#4 Post by moddie »

sunrat wrote: 2024-08-23 05:43 Pipewire conf is generally distro agnostic, although I did get stumped with one difference in OpenSUSE. Try this answer:
https://forum.endeavouros.com/t/no-upmi ... lved/39430
many thanks!
something like that worked. had to change the upmix-method from psd to simple to have stereo copied to the rears.
https://docs.pipewire.org/page_man_pipe ... onf_5.html

Code: Select all

channelmix.upmix-method = psd
    3 methods are provided to produce the rear channels in a surround sound:
     - none. No rear channels are produced.
     - simple. Front channels are copied to the rear. This is fast but can produce phasing effects.
     - psd. The rear channels as produced from the front left and right ambient sound (the difference between the channels). A delay and optional phase shift are added to the rear signal to make the sound bigger.
I assume the manjaro solution did not work, cause it wiped out all other settings instead of overriding just what was set in there...

my current config for anyone, who's interested:
/etc/pipewire/pipewire-pulse.conf.d/20-upmix.conf

Code: Select all

stream.properties = {
channelmix.upmix = true
channelmix.upmix-method = simple # none, simple, psd
channelmix.lfe-cutoff = 150
channelmix.fc-cutoff = 12000
channelmix.rear-delay = 12.0
}

User avatar
sunrat
Site admin
Site admin
Posts: 7450
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 134 times
Been thanked: 665 times

Re: Stereo to 5.1 upmixing with pipewire

#5 Post by sunrat »

@moddie Great it works for you! Please mark the post solved to help other users by editing the topic in your first post and add prefix [Solved].
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply