Editing Multiroom Audio

From Chaosdorf Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 34: Line 34:
Linux kann Audio direkt per Loopback Souddevice an den Snapserver schicken (siehe Abschnitt Generisch). Das klappt z.B. mit ffmpeg oder pw-cat. Mehr Infos folgen.
Linux kann Audio direkt per Loopback Souddevice an den Snapserver schicken (siehe Abschnitt Generisch). Das klappt z.B. mit ffmpeg oder pw-cat. Mehr Infos folgen.


==== ''pw-cat'' ====
Windows
Mit dem CLI-Tool ''pw-cat'' lässt sich ein simpler PipeWire-Client erzeugen, der ein Signal von PipeWire empfangen und dann über ''stdout'' (mit optionalem Resampling) an den ''stdin'' eines beliebigen Prozesses weitergeben kann. In Kombination mit ''netcat'' (siehe "Generisch") lässt sich dann ein einfacher TCP-Streamer bauen.
 
Der einfachste Befehl, um das zu implementieren wäre wohl folgender:
pw-cat -r - | nc server.snapcast.chaosdorf.space $zielport
 
Hierbei ganz praktisch ist, dass die Defaults von ''pw-cat'' (Samplerate, Bittiefe, Channelcount) genau den Werten entsprechen, die der ''snapserver'' auf seinen Sockets erwartet, sodass da nichts extra konfiguriert werden muss. Der ''$zielport'' ist aus der Liste von Ports im Abschnitt "Generisch" zu wählen.
 
Eine Tücke an dieser Lösung ist, dass sich ''pw-cat'' per Default an das Mikrofon als Eingabestream koppelt. Hier muss dann z.B. mit einem Patchbay wie [https://gitlab.freedesktop.org/pipewire/helvum helvum] nachgeholfen werden, um die gewünschte Soundquelle an den ''pw-cat''-Prozess anzubinden.
 
Alternativ kann auch ''pw-cat --target $target'' verwendet werden, um direkt beim Start die richtige Quelle zu binden. Folgender Befehl sollte z.B. Spotify auf Stream ''4591'' abspielen:
pw-cat -r --target "spotify" - | nc server.snapcast.chaosdorf.space 4591
 
=== Windows ===


=== macOS, iOS ===
=== macOS, iOS ===
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see Chaosdorf Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)