Multiple audio outputs


#1

Hi there,

is it possible to setup more that one audio output from Mopidy? I want to stream to the icecast server and play over the HDMI (ALSA) simultaneously.

I need use alsasink and lamemp3enc ! shout2send mount=mopidy ip=127.0.0.1 port=8000 password= together :slight_smile:

Thank you.


Using mopidy-mpd with audio_output
#2

You should be able to do this by adding a tee gstreamer element. There are some examples in the gstreamer documentation.


#3

Yeah, thank you :slight_smile:

If someone wants same thing - config for mopidy:

[audio]
output = tee name=t t. ! queue ! alsasink t. ! queue ! lamemp3enc ! shout2send mount=mopidy ip=127.0.0.1 port=8000 password=yourpassword


#4

Hi there,

to open the question again: Might it be possible to extend mopidy to play multiple audio streams on different audio sinks simultaniously?
I’m thinking about extending Mopidy core to handle multiple Audio- and Tracklist-Instances but I’m not quite sure if there are issues I haven’t found so far…

And yes, I know that one solution is to start multiple mopidy server instances, but a “native” solution would offer more control and possibilities (e.g. control all audio stream from one web-extension…)

Cheers,
Alex


#5

Wouldn’t it be much easier to implement just the web interface that can handle multiple mopidy instancies ?