MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.38k stars 397 forks source link

🐛 | Unable to play mp3 files from the web ui or rfid #1681

Closed 2Duffman closed 2 years ago

2Duffman commented 2 years ago

I am not able to play any local files. I can link the rfid to the folders through the webUI. I can also use rfid to play an album from spotify. I can also play the mp3 if i select it directly in the webUI. But if i click the 'play' next to the "XYZ" folder that holds the mp3 there is a popup saying "XYZ" is playing. however there is nothing playing. mpc status returns no info apart from volume etc.

What I did

I used the one line installer to set up the phoniebox with spotify and then linked one rfid card to a spotify album and one to a mp3 album. During installation I selected no when I was asked to set up MPD because splittscheid said so in his tutorial. I later changed /etc/mpd.conf as recommended here https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch#install-mpd-the-music-player-daemon I was only unsure which of the 'mixer_control' lines i should uncomment but figured it doesn't matter. as AudioiFace i entered 'Headphone' since that is what i selected for installation.

What happened

scanning the RFID-cards works with spotify but not with the local mp3

I expected this to happen

RFID-card works with both

Further information that might help

output of 'tail -n 500 /var/log/syslog'

find logfiles at https://paste.ubuntu.com/p/BWJq2XXTxC/

Software

Base image and version

2021-10-30-raspios-bullseye-armhf-lite.img

Branch / Release

master

Installscript

cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; ./buster-install-default.sh

Hardware

RaspberryPi version

Raspberry Pi 4 Model B Rev 1.1

RFID Reader

When setting up the RFID-reader i selected something along HXGCoLtd Keyboard but i can't find it with the suggested command

output of lsusb is Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 16c0:27db Van Ooijen Technische Informatica Keyboard Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Soundcard

I don't use one. I use speedlink SL-810004-BK speakers connected via USB and audio jack.

Other notable hardware

there's a fan connected to 2 GPIOs for cooling.

2Duffman commented 2 years ago

Synchronizing all the files in the WebUI solved it.