Skip to content

Instantly share code, notes, and snippets.

Taken from : https://www.smackfu.com/stuff/programming/shoutcast.html
Webarchive: https://web.archive.org/web/20190521203350/https://www.smackfu.com/stuff/programming/shoutcast.html
Shoutcast Metadata Protocol
How To Parse Titles from MP3 Streams
I wanted to add the ability to show titles from Shoutcast streams on the SliMP3, like Winamp does. The protocol isn't documented anywhere officially (of course). So I ended up cobbling together info from google caches, xmms source code, and mailing lists. Hopefully, this document will save others from the same fate.
## Step 0: Overview picture
-----------------------------------------------------------------------
[ audio data ][metadata.length][metadata][ audio data ]
<?php
/*
* Reverse proxy to terminate HTTP and forward a "Now playing" update to an RDS via UDP.
*
* Use this to push metadata to an RDS encoder. Run the script on an HTTPS server that can be
* reached from the Internet, e.g. in your DMZ or on a hardened server, that can itself reach
* the RDS encoder over a secure private LAN, e.g. on a different network interface from the
* web server.
*

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server: