Sunday, August 25, 2013

Stream Playlists from VLC

I use the transmitter with the vlc media player, which allows me to transmit almost anything (internet radio stream, mic, music from my NAS-Drive).

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

3 comments:

  1. can i do this also with the graphic vlc gui?
    that i play in vlc music and to send it to pifm?

    ReplyDelete
  2. Do you know if anybody has made this work with mopidy?

    ReplyDelete
  3. I have an eror : vlc: unknown option or missing mandatory argument `--no-sout'

    ReplyDelete