Its an addon for PiFM, a program to transmit FM-Radio for the raspberry pi mini computer.
PiFMPlay makes it easier to play music and control your FM-Broadcast.
PiFM is written by Icrobotics
PiFMPlay is written by Mikael Jakhelln. "It's not pretty, but it works."
Put pifmplay on your pi (e.g /home/pi).
Allow it to be run as a program:
sudo chmod +x pifmplay
sudo chmod +x pifm
Install sox and ffmpeg with:
sudo apt-get install ffmpeg sox libsox-fmt-all
Attach an antenna to GPIO4 on your raspberry pi.
sudo sh pifmplay . 91.3
(91.3 is the default frequency, change it to whatever frequency you want to broadcast on.)
sudo sh pifmplay "/path/to/file.mp3"
sudo sh pifmplay "/path/to/file.m4a"
sudo sh pifmplay "/path/to/file.wav"
this will play a file with pifm.
cat /path/to/file | sudo pifmplay PIPE
to play a file locally (the cat command only being an example here).
cat <audio file> | ssh pi@raspberrypi 'cat - | sudo /home/pi/pifmplay/pifmplay PIPE'
play a file from your local pc over ssh on the raspberry pi.
sudo sh pifmplay "/path/to/folder" 101.5
Open another terminal.
sudo sh pifmplay pause
sudo sh pifmplay resume
sudo sh pifmplay stop
sudo sh pifmplay next
To control pifmplay from the same terminal, run pifm in the background:
sudo sh pifmplay "/path/to/folder" &
(tho you might want to remove the text output)
Check if there is an update to pifm here: icrobotics.co.uk
The raspberry pi can be made into a powerful fm-transmitter, if you filter and amplify the signal. But using a powerful fm-transmitter without a proper licence is illegal in most countries. So if you break any laws and get fined for it, it's YOUR OWN FAULT!! But it should be fine as long as you don't attach a big antenna to it.