New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playback super slow #1
Comments
I never tested this on the Pi 2, can you check the system load with "top" while it's playing? Also check if aplay is affected too, run:
And compare this playback speed to playing it on another machine: |
I copied the very top of top.. heh.... top top.... pigpiod is using 22% followed by mpv at around 8% |
You mean sudo service lofipi-mpv stop... And indeed is effected and sounds slowed... My desktop running ubuntu 22.04 has a lovely voice, while the Pi sounds demonic. |
Okay, it doesn't seem to be a performance issue then. I suspect there is some problem with the PCM audio bus frequency causing the data to be transmitted slowly. Try disabling the pigpiod service, rebooting, and seeing if that fixes it. If so it's likely that pigpiod setting the PWM frequency for the fan is interfering with things on the Pi 2. |
That was the first thing that crossed my mind. If you wrote this with the RPI4 in mind, I know something changed where some kind of frequency something or another doesn't mess with the 4. I will give it a shot... |
Nah, it's written for the 3B |
So I tried stopping the pigpiod serivce, removing pigpiod, and for both when I do nothing plays. seems it has something to do directly with the audio output?? I tried killing it and restarting lofipi-mpv and it doesn't play. I tried telling the fan speed to to be 1, 100, and a few other random values. also in config. It does not change the playback speed. I am stumped... |
Does aplay output still work with pigpiod disabled though? |
Okay.. I stopped lofipi, then stopped pigpiod, then started lofipi. I have a small netgear hub the pi is connected to, and from messing around I can tell when it is streaming based on the activity LEDs, and it's definitely receiving a stream. No sound. when I run aplay... no sound. Also.. I tried several variations and OOO's and no sound if pigpiod is not running. |
Now I have just disabled pigpiod, "sudo systemctl disable pigpiod.service.. Rebooted... Is playing without pigpiod.... Still Demonic music... So it's not pigpiod..... :( |
That's really odd because without pigpiod this should just be a regular Pi playing music with a regular music player, and I'd expect to find lots of similar complaints on the net for the Pi 2, but I can't find any with a brief search. Maybe share your boot config file in case there's something weird in there? |
Mute jumper?? Not sure what you mean... |
Oh are you not using the x400 amplifier board? |
I haven't edited the config file.No amp board.. Just pi into a speaker with it's own amp. |
I am in the early phase, just getting it working. |
My pigpiod config certainly won't work with that, because mine configures pigpiod to use the PWM module for IO, which is needed for headphone audio. PWM audio on the Pi has its own set of config tuneables which I never investigated. Using a board like the x400 uses PCM audio, freeing up the PWM module. |
OH... So I have to use the amp board then... Well that would explain it. I am looking for a simple solution to stream music with a pi. I am not looking to use the x400 amp... Well, back to the drawing board. Sorry for the wild goose chase, but thanks for the help... |
Closing as there is no issue with the intended use of scripts... |
To stream music from a Pi you probably want something like Volumio: https://github.com/volumio/volumio3-backend https://volumio.com/en/get-started/ Or for something really simple you can just run a script which launches mpv on boot and points it at a YouTube playlist |
Set this up. RPI2. Fresh install of raspnian. Cloned and built deb successfully. Rebooted and heard the default music, which I realize now was also playing slow, but I didn't realize it until I loaded a playlist of music I knew.
Its playing at 3/4 speed or some where there abouts.
The text was updated successfully, but these errors were encountered: