i3 Polybar, Derzeitiges Lied anzeigen und MPD fixxen

Lockna

Cadet 3rd Year
Registriert
Okt. 2018
Beiträge
36
Hey Leute! Ich möchte gerne in der Mitte meiner Polybar den derzeitigen Song abspielen. Ich verwende folgende Music-Player Spotify, Chromium und MPD. Wenn ich jetzt z.B. alle 3 laufen habe (Musik und YouTube Video) dann soll oben MPD angezeigt werden. Wenn MPD geschlossen ist, dann Spotify und sonst Chromium.
Jetzt habe ich aber noch ein Problem, für MPD habe ich als Client ncmpcpp gewählt. Jetzt habe ich ein Lied in den ausgewählten Ordner getan, wenn ich jetzt in ncmpcpp gehe sehe ich das Lied. Wenn ich es auswähle und Enter drücke, stet unten am Rand "Playing: ..." Ich höre aber nichts. Hat einer eine Idee, was hier falsch sein kann? Falls ihr irgendwelche config Files benötigt, schreibt einfach.
 
Hast du ein audio_output definiert in mpd.conf? Ist das Volume gemuted? Ist die mpd-Source in PulseAudio gemutet?
 
Ist denn in der Pulse-Output auch aktiv? ("7" sollte dich in ncmpcpp zu den Outputs bringen.)
 
Ich hab jetzt mal Testweise ncmpcpp im sudo gestartet, hab jetzt ne andere Anzeige bekommen, wenn ich 7 drücke, werden mir 2 Outputs angezeigt, einmal pulse (kann ich enablen/disablen) und toggle_viusalizer. Also Pulse-Output ist aktiv
 
Okay, dann teste mal, mpd zu beenden und als normaler Nutzer neu zu starten:
sudo systemctl stop mpd.service && mpd
 
Code:
[I] lockna@lockna-pc ~> sudo systemctl stop mpd.service && mpd
[sudo] Passwort für lockna:
Aug 24 18:12 : exception: Failed to bind to '127.0.0.1:6600'
Aug 24 18:12 : exception: nested: Failed to bind socket: Address already in use
Ich bekomme den Fehler
 
Das ist der Fehler, wenn noch andere mpd-Instanzen laufen. Schau mal z.B. in htop nach, ob noch mpd-Instanzen laufen und beende sie.

Edit: Schau außerdem mal, ob im Logfile was sinnvolles steht.
 
Code:
[I] lockna@lockna-pc ~> sudo killall mpd
[sudo] Passwort für lockna:
[I] lockna@lockna-pc ~> sudo systemctl stop mpd.service && mpd
Aug 24 18:55 : exception: Failed to access /home/lockna/.config/mpd/playlists: No such file or directory
Aug 24 18:55 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Aug 24 18:55 : exception: Input plugin 'tidal' is unavailable: No Tidal application token configured
Aug 24 18:55 : exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
[
So, hab jetzt alles gekillt und gestopt
https://pastebin.com/1fv7QXLU (Link zum Log)
 
Interessant. Beende nochmal alle gestarteten mpd-Instanzen, lösche das log, starte ein mpd, spiel ein Lied ab und poste dann das Log und die Ausgabe von mpc status (mpc ist der command-line-client für mpd) und mpc outputs.
 
mpc status:
Code:
[I] lockna@lockna-pc ~> mpc status
🎵Ernst_Hutter_Graf_Mercy_Marsch_LIVE🎶🥁.mp3
[playing] #1/4   0:14/2:47 (8%)
volume:100%   repeat: off   random: off   single: off   consume: off
mpc outputs:
Code:
[I] lockna@lockna-pc ~> mpc outputs
Output 1 (pulse audio) is enabled
Output 2 (MPD ALSA) is enabled
        allowed_formats=""
        dop="0"
Output 3 (toggle_visualizer) is enabled
Und das ist die log file
Code:
[I] lockna@lockna-pc ~> cat -A ~/.config/mpd/log
Aug 24 19:05 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:05 : config: option 'mixer_device' on line 25 was not recognized$
Aug 24 19:05 : config: option 'mixer_control' on line 26
was not recognized$
Aug 24 19:05 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:05 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:05 : avahi: Service 'Music Player @ lockna-pc'
successfully established.$
Aug 24 19:05 : client: [0] opened from 127.0.0.1:40020$
Aug 24 19:06 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:06 : client: [1] opened from 127.0.0.1:40024$
Aug 24 19:06 : client: [1] closed$
Aug 24 19:06 : client: [2] opened from 127.0.0.1:40028$
Aug 24 19:06 : client: [2] closed$
Aug 24 19:08 : alsa_output: Decoder is too slow; playing
silence to avoid xrun$
Aug 24 19:08 : player: played "M-pM-^_M-^NM-5Ernst_Hutter_Graf_Mercy_Marsch_LIVEM-pM-^_M-^NM-6M-pM-^_M-%M-^A.mp3"$
[
Und ich höre keine Audio-Ausgabe
 
Schalte den ALSA-Output mal ab, der scheint Probleme zu machen. Der PulseAudio-Output reicht im Normalfall völlig aus. Wenn es dann weiterhin nicht funktioniert und ein "Decoder is too slow" im log auftaucht, scheint das ein tieferes Problem zu sein, das ich noch nie angetroffen habe. Da müsstest du dann wohl im Internet recherchieren.
 
Ok, dann lösche ich mal den ALSA-OUTPUTS wo ich ihn finden kann
Ergänzung ()

Hab jetzt ALSA entfernt. Das ist status und outputs
Code:
[I] lockna@lockna-pc ~> mpc status
🎵Ernst_Hutter_Graf_Mercy_Marsch_LIVE🎶🥁.mp3
[playing] #1/4   0:06/2:47 (3%)
volume:100%   repeat: off   random: off   single: off   consume: off
[I] lockna@lockna-pc ~> mpc outputs
Output 1 (pulse audio) is enabled
Output 2 (toggle_visualizer) is enabled
Das steht im LOG, aber habe noch immer keinen Sound
Code:
[I] lockna@lockna-pc ~> cat -A ~/.config/mpd/log
Aug 24 19:22 : exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:22 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:22 : avahi: Service 'Music Player @ lockna-pc' successfully established.$
Aug 24 19:22 : client: [0] opened from 127.0.0.1:40162$
Aug 24 19:22 : client: [0] closed$
Aug 24 19:22 : client: [1] opened from 127.0.0.1:40166$
Aug 24 19:22 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted$
Aug 24 19:22 : client: [1] closed$
Aug 24 19:22 : client: [2] opened from 127.0.0.1:40170$
Aug 24 19:22 : client: [2] closed$
Aug 24 19:22 : client: [3] opened from 127.0.0.1:40174$
Aug 24 19:22 : client: [3] closed$
 
Zurück
Oben