Peppy Player Headphone output not working

I built a Peppy Player with Monet and a HiFiBerry and 7" RPi touchscreen. Works great! I would, however, like to remove the HiFiBerry and connect the line output to my stereo. I removed the HiFiBerry and changed the config.txt [volume.control] amixer.control from Digital to Headphone but nothing comes from the 3.5mm line output jack. What else must I change to get this to work. (The line output worked before I added the HiFiBerry but I don't remember if I changed anything else.)
 
Hi, please make sure that you removed comments from the following line in the file /boot/config.txt
dtparam=audio=on
Also make sure that sound didn't switch to HDMI. Run
sudo raspi-config
and select
System Options/Audio/Headphones

I hope you know that the sound quality will be not so good with online audio.
 
Thanks for the heads up. So, I have a hifiberry AMP2 but I don't think it has a line out. Should I be looking at hifiberry DAC+ LIGHT for better quality audio? There doesn't seem to be a datasheet on the hifiberry site.
 
Thanks for the info. I ran into a new problem after getting the pi to output audio on the headphone jack. When I switch my iPhone to AirPlay over Peppy, the album cover shows up on my Peppy Player and the iPhone indicates it's playing but there is no sound. Is there another switch that needs to be toggled to get that to work also?
 
Hi, there is no any other switch for AirPlay. Please check that the volume is high enough. Sometimes the distance between phone and router makes difference.

I've installed the latest Cezanne headless edition on my Pi 4, enabled AirPlay mode, rebooted, switched to Radio mode to make sure that audio is working fine using a powered speaker and then switched to the AirPlay mode. Then started Spotify on my iPhone, switched to 'Peppy Player' device. The Spotify on the phone started playback and Pi showed album art and started playback after some delay (5-10 seconds). Also the volume was not enough in my case. You can increase it either on phone or player.

Best regards
 
Hi, there was the fix in the Van Gogh Edition (after Monet) for the Airplay mode but it was related to the VU Meter and Equalizer:
https://github.com/project-owner/Peppy/issues/9#issuecomment-1059853374
You can try to fix those files manually and see if it helps.

Before that there was a fix in the Hokusai Edition:
https://github.com/project-owner/PeppyPlayers.doc/wiki/Known-Issues#airplay-issue
That should be fixed in the Monet Edition but you can double check.

The current version (Cezanne Edition) should have all those fixes.

Best regards
 
It's been a while. I was not able to get AirPlay working so recently I decided to try updating from Monet to Marc. I followed the wiki directions and backed up Monet, compared and updated the relevant lines in the two config files but Marc would not boot. The wiki mentions:
  1. New dependencies/libraries which were added to the new version of the player should be installed as well
but I don't know how to do that which could be why it didn't work. After some fiddling I went back to Monet. Now that I have a new iPhone and Apple Music I really would like to get Airplay working.
I'd appreciate any suggestions for getting Marc to work?
 
Hi perge,

The easiest way would be to use one of the existing disk images:
https://github.com/project-owner/PeppyPlayers.doc/wiki/Disk-Images

If that's impossible because of any reason try to install the following libraries:
Code:
pip3 install pyudev
pip3 install pyowm
pip3 install youtube-dl==2020.12.2
pip3 install pafy
pip3 install numpy -U
pip3 install psutil
pip3 install yahooquery
pip3 install pyaztro

If it's still not working try to enable file logging and see the messages in the log file /home/pi/Peppy/peppy.log
https://github.com/project-owner/Peppy/blob/9f2a9742c667e71c4f64da7391bb17ce703e4145/config.txt#L32

Best regards
 
Using VS Code SSH I did an update/upgrade and all the pip3 installs and then after reboot Peppy Monet now hangs at the splash screen. I shutdown and restarted with same result. I renamed Monet to Peppy.bak and Marc to Peppy and rebooted. Marc also hangs at the splash screen. I modified the config.txt file to "file.logging = True" and rebooted but no /home/pi/Peppy/peppy.log appears in the Peppy directory. I created an empty file named peppy.log and shutdown and restarted, peppy.log is still empty. Later I will try a new disk image.
 
When I run collector.py create I get 2924 errors. It looks like they all refer to the m4a files not being mp4's. I don't know what this means. I am attaching a copy of the output form the files command and the create command.

Screen Shot 2023-05-29 at 5.20.37 PM.png
 
Hi perge, it looks like the 'mutagen' library which is used in the player to get audio files metadata/tags doesn't recognize those m4a files as valid MPEG-4 files. The error occurs at this line in that library:
https://github.com/LordSputnik/muta...16554f5dbe7c0fde91acc3411/mutagen/mp4.py#L801

So, either those files are really not MP4 files (m4a is MPEG-4 encoded audio files) or files are corrupted or 'mutagen' cannot properly parse those files.
The player is using version 1.45.1 of the 'mutagen' library. The latest version 1.46.0 doesn't mention any fixes related to m4a files:
https://mutagen.readthedocs.io/en/latest/changelog.html
Can you play those files?

Best regards
 
Yes those (and others) will play just fine. I had this working in the Monet version but I don't remember seeing those errors. The music files and the USB drive are the same as I have been using since I started using Monet. I am now using python3 (3.9.0) and I was probably using 2.7 before. When I installed mutagen today I saw some warnings that some dependencies were in 3.8 and I should add 3.8 to my path but I've not use 3.8 and didn't know I even had it.