Skip to content
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

FIFO hum when run with MPD #2

Open
cpyarger opened this issue May 24, 2013 · 1 comment
Open

FIFO hum when run with MPD #2

cpyarger opened this issue May 24, 2013 · 1 comment
Labels

Comments

@cpyarger
Copy link

One of the more interesting methods of using this program would be to have it streaming a FIFO file from MPD. unfortunately when both programs are run at the same time all you get over the FM link is a loud annoying hum.

@Emerica
Copy link
Owner

Emerica commented May 24, 2013

Please see - http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter
I did not write this code, just made a fork with a couple changes, so it doesn't get lost if the other host goes down etc.

I'm not sure you'll find a good way to do this without a second PI or making a kernel driver as the above link suggests. The gpio pin is getting flipped essentially with timing that works well when the PI's load is very low.
Basically the way its abusing the GPIO is eating away the resources of the PI.
Once you have MPD streaming, it's eating resources that would be modulating the signal and you hear the noise. In very basic terms.
I ran into the same sort of problem trying to do similar with ffmpeg.
If you could make a driver to offload, You might get it done on one PI. Out of my league atm though.
Otherwise, If you could supply the fifo from another machine you might be ok. On Pi converts, One pi modulates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants