How i did it:
You need:
-VLC Media player ("sudo apt-get install vlc")
-PiFM (http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter)
Make a FIFO-File:
- CODE: SELECT ALL
mkfifo /tmp/radio
Open two terminals
Terminal 1:
- CODE: SELECT ALL
vlc YOUR_FILE_STREAM_OR_DEVICE_HERE vlc://quit --intf=dummy --no-sout -smem-time-sync --sout='#transcode{acodec=s16l,ab=32,samplerate=44100,channels=1}:std{access=file,mux=dummy,dst=-}' > /tmp/radio
Terminal 2 (cd into the PiFM dir):
- CODE: SELECT ALL
sudo ./pifm /tmp/radio YOUR_FREQ 44100
can i do this also with the graphic vlc gui?
ReplyDeletethat i play in vlc music and to send it to pifm?
Do you know if anybody has made this work with mopidy?
ReplyDeleteI have an eror : vlc: unknown option or missing mandatory argument `--no-sout'
ReplyDelete