amazstream is a small Amarok script which enables streaming of songs in Amarok to a streaming server (icecast2).
Several users asked for and no solution was given in the vanilla Amarok so here's a "quick & dirty" solution.
How it works
ezstream as streaming source application has the option to read its playlist by a "program" which only outputs the name of the current file. And ezstream reacts on different signals like SIGUSR1 to reread its playlist.
Amarok on the other side has due to its scripting possibility the option to create such a dynamic playlist. So let's put these parts together (before starting amazstream):
Create ~/ezstream/amazplay.sh (as source for ezstream [one streaming source application for icecast2]).:
# (see man ezstream for details)
Create the configuration file ~/ezstream/amazstream.xml for ezstream (replace at least your IP, homedir etc.):
Start amarok and activate amazstream in your scripts.
Check if ~/ezstream/amazstream.txt contains one line: the location (path) of the current local audiofile. If not: Something went wrong!
Start ezstream with ezstream -c ~/ezstream/amazstream.xml.
Point your audio devices to http://192.168.0.1:8000/live.mp3 (As mentioned above: Replace the IP!)