I think solution to give mp3 stream to poc via stdin in a simple way is something like this:

loop (read list of files; ramdomize order;) { cat random mp3} | poc

Poc must be running all the time or clients listening it will be disconnect.That's why we cannot do like this:loop { cat random_mp3 | poc}

But I think best way is to make mpg123 to ouput wav stream to lame and then output newly encoded, (low bitrate) stream to poc.Advantages: lower bandwidth usage, no need to make script that randomizes playlist.Disadvantages: more CPU usage.

This has cat read the m3u, piping it into sed with changes all the spaces to "\ ". Sed then outputs it to standard out which is redirect to the new file temp.txt, which is identical to mp3list.m3u except for the \s. Then, after that command is done, you redo the recursive cat and pipe that to poc. & to background it if needed/wanted.