ALSA dysonCompress (shw plugins) läuft nicht

Sound, Digitalkameras, TV+Video und Spiele.
Antworten
ArpO
Beiträge: 16
Registriert: 02.07.2019 00:10:03
Wohnort: Göttingen

ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von ArpO » 01.07.2022 00:15:31

Hallo Forum,

ich will mein Home Server neu aufsetzen. Der Server soll Konsole only werden.
Als Audiowiedergabe soll Music Player Daemon laufen.
Ich habe 2 Soundkarten (Wohnzimmer & Schlafzimmer) zuätzlich möchte ich per /etc/asound.conf noch Wohnzimmer_plus und Schlafzimmer_plus haben.
Diese 2 extra Geräte sollten von den shw Plugin dysonCompress "bespielt" werden. Hatte ich schonmal auf einem alten Ubuntu 16.04 System und Hörspiele hören sich damit besser an.

Im Moment habe ich ein Testsystem mit Debian 10 Buster in einem VM installiert.
Nur Konsole und SSH, kein X. MP3 Wiedergabe über die Konsole mit mpg123 läuft soweit auch.
Leider machen das dysonCompress Probleme.

Hier erstmal meine etc asound.conf

Code: Alles auswählen

pcm.wohnzimmer {
    type ladspa
    slave.pcm "hw:CARD=AudioPCI,DEV=0";
    path "/usr/lib/ladspa";
    plugins [{
        label dysonCompress
        input {
            #peak limit, release time, fast ratio, ratio
            controls [1.0 0.1 0.1 0.9]
        }
   }]
}

pcm.plus {
type plug
slave.pcm "wohnzimmer";
}

pcm.foo {
    type ladspa
    slave.pcm "hw:CARD=AudioPCI,DEV=0";
    path "/usr/lib/ladspa";
    plugins [{
        label dysonCompress
        input {
            #peak limit, release time, fast ratio, ratio
            controls [1.0 0.1 0.1 0.9]
        }
    }]
}

pcm.normal {
    type hw
    card 0
}
MP3 Wiedergabe mit dem Default ALSA Gerät per "mpg123 -o alsa "/home/mp3/029 - Originalmusik (alt)/01 - Titelmelodie der drei.mp3"" funktioniert.
Gebe ich aber das Gerät "plus" an welches "Wohnimmer" aufrufen soll geht nichts.

Code: Alles auswählen

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.26.4; written and copyright by Michael Hipp and others
        free software (LGPL) without any warranty but with best wishes
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available

Directory: /home/mp3/029 - Originalmusik (alt)/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: 01 - Titelmelodie der drei.mp3 ...
ALSA lib pcm_params.c:2226:(snd1_pcm_hw_refine_slave) Slave PCM not usable
[src/libout123/modules/alsa.c:80] error: initialize_device(): no configuration available
main: [src/mpg123.c:323] error: out123 error 7: failed to open device
Gebe ich direkt "Wohnzimmer" an geht auch nichts, aber die Fehlermeldung ist anders.

Code: Alles auswählen

arpo@deb11:~$ mpg123 -o alsa -a wohnzimmer "/home/mp3/029 - Originalmusik (alt)/01 - Titelmelodie der drei.mp3"
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.26.4; written and copyright by Michael Hipp and others
        free software (LGPL) without any warranty but with best wishes
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available
[src/libout123/modules/alsa.c:204] error: get_formats_alsa(): no configuration available

Directory: /home/mp3/029 - Originalmusik (alt)/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: 01 - Titelmelodie der drei.mp3 ...
[src/libout123/modules/alsa.c:80] error: initialize_device(): no configuration available
main: [src/mpg123.c:323] error: out123 error 7: failed to open device
Unter Ubuntu war es damals auch ein ****** den dysonCompress ans laufen zu bekommen.

Komme im Moment auf alle Fälle nicht mehr weiter, wäre über einen Tipp dankbar.

Olli


PS
Habe es auf Debian 10 und 11 probiert, beides mal die gleichen Fehler.

Benutzeravatar
debilian
Beiträge: 1192
Registriert: 21.05.2004 14:03:04
Wohnort: 192.168.43.7
Kontaktdaten:

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von debilian » 01.07.2022 09:44:06

-- nichts bewegt Sie wie ein GNU --

Benutzeravatar
smutbert
Moderator
Beiträge: 8331
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von smutbert » 01.07.2022 11:43:55

debilians Link läuft wohl auf dasselbe hinaus, wie das was ich schreiben wollte:

Bei beiden Meldungen können sich zwei Alsa-Plugins nicht auf ein gemeinsames Format eignen. Im ersten Fall ist es eindeutig, weil das eine Plugin hw, das letzte ist und es sich also nur um das ladspa und hw handeln kann, was ohnehin die Stelle ist, an der man am ehesten Probleme erwarten würde.
Bei der zweiten Variante weist die Fehlermeldung nicht direkt auf ein bestimmtes plugin, aber vermutlich ist es dieselbe Ursache.

Ich würde wie im Link, die Zeile in pcm.wohnzimmer

Code: Alles auswählen

slave.pcm "hw:CARD=AudioPCI,DEV=0";
durch

Code: Alles auswählen

slave.pcm "plughw:CARD=AudioPCI,DEV=0";
ersetzen.

ArpO
Beiträge: 16
Registriert: 02.07.2019 00:10:03
Wohnort: Göttingen

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von ArpO » 01.07.2022 11:57:14

moin moin,
plughw:CARD=AudioPCI,DEV=0 bringt jetzt:

Code: Alles auswählen

[src/libout123/modules/alsa.c:84] error: initialize_device(): device does not support interleaved access
main: [src/mpg123.c:323] error: out123 error 7: failed to open device
slave.pmc "plug:dmix"... ähhh ja versuche noch den Aufbau zu verstehen *g*

Benutzeravatar
smutbert
Moderator
Beiträge: 8331
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von smutbert » 01.07.2022 14:17:52

Passiert das bei der Wiedergabe über plus oder wohnzimmer? (Bei plus sollte das eigentlich nicht passieren, glaube ich.)

Ausserdem könnte das sogar ein Fehler sein, der mit mpd nicht auftritt.

ArpO
Beiträge: 16
Registriert: 02.07.2019 00:10:03
Wohnort: Göttingen

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von ArpO » 02.07.2022 08:04:29

So bin jetzt bei Ubuntu 16.04 *Asche auf mein Haupt*
Aber das läuft schonmal.
Ich muste NACH dem Einrichten von /etc/asound.conf mpd aber nochtmal deinstallieren und neu installieren.
mpd.conf vorher gesichert und es lief. Keine Ahnung warum es nach dem Neuinstallieren dann ging.

Aber... es kam natürlich ein anderes Problem.

Zugriff auf die Hörspiel/Musik Sammlung.
Ich habe dafür die Gruppe "storage" eingerichtet und mpd auch in die Gruppe aufgenommen.
Aber mpd konnte die MP3 Dateien nicht lesen.
Also per mpd.conf die Gruppe storage angegeben. Jetzt konnte mpd die MP3 Dateien lesen,
aber er hatte keinen Zuriff mehr auf die ALSA Geräte. HA HA HA

Testweise in /etc/passwd mpd eine Bash gegeben und nach einem "su - mpd" konnte ich als User mpd die Dateien mit mpg123 wiedergeben.
Zugriff auf Audio klappt für den User also.
Nur über den Dienst lief es nicht.

Im Ubuntu Wiki stand man könnte mpd auch als "normaler" User laufen lassen.
Also die /etc/mpd.conf nach ~/.mpdconf verschoben, ein "@reboot arpo /usr/bin/mpd" in die /etc/crontab und siehe da...
mpd kann auf einmal die MP3 Dateien wiederbeben und hat Zugriff auf die ALSA Geräte.
WTF!!!!!!! WTF hoch 3!
Der User mpd war doch in der Gruppe audio und storage und es ging nicht, aber als User arpo kann mpd es jetzt.

Werde noch ein paar Sachen testen... Will eigentlich Debian 10 nutzen... Drückt mal die Daumen.

eggy
Beiträge: 3331
Registriert: 10.05.2008 11:23:50

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von eggy » 02.07.2022 08:34:14

leicht offtopic:
ArpO hat geschrieben: ↑ zum Beitrag ↑
02.07.2022 08:04:29
Will eigentlich Debian 10 nutzen...
11.3 ist aktuell, dh. Du stehst in Zukunft mit ner 10 dann relativ bald ohne Updates da.
Siehe https://wiki.debian.org/DebianReleases# ... n_Releases
Wenns keinen wirklich zwingenden Grund für ne andere Version gibt, lieber das aktuelle Stable nehmen.

Benutzeravatar
smutbert
Moderator
Beiträge: 8331
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von smutbert » 02.07.2022 17:11:47

ArpO hat geschrieben: ↑ zum Beitrag ↑
02.07.2022 08:04:29
Ich muste NACH dem Einrichten von /etc/asound.conf mpd aber nochtmal deinstallieren und neu installieren.
mpd.conf vorher gesichert und es lief. Keine Ahnung warum es nach dem Neuinstallieren dann ging.
Es hätte wohl genügt mpd neu zu starten, damit es mit der neuen Alsakonfiguration läuft.
ArpO hat geschrieben: ↑ zum Beitrag ↑
02.07.2022 08:04:29
Ich habe dafür die Gruppe "storage" eingerichtet und mpd auch in die Gruppe aufgenommen.
Aber mpd konnte die MP3 Dateien nicht lesen.
Also per mpd.conf die Gruppe storage angegeben. Jetzt konnte mpd die MP3 Dateien lesen,
aber er hatte keinen Zuriff mehr auf die ALSA Geräte. HA HA HA
Vermutlich noch einmal dasselbe:
Änderungen an einem Benutzeraccount, wie z.B. das Hinzufügen zu einer Gruppe wirken sich erst aus, wenn sich der entsprechende Benutzer neu anmeldet – im Falle eines Dämons, wie mpd, bedeutet das, dass der Dienst neu gestartet werden muss, damit die Änderungen wirksam werden.

ArpO
Beiträge: 16
Registriert: 02.07.2019 00:10:03
Wohnort: Göttingen

Re: ALSA dysonCompress (shw plugins) läuft nicht

Beitrag von ArpO » 02.07.2022 17:47:58

Klar hatte neustart vom Daemon versucht, ohne Erfolg.

Antworten