How to send mp3 stream to icecast2

Hey, I'm looking for an advice on how to send an mp3 stream to icecast. If I understand correctly each chunk should be sent every second so that the music is played with the correct speed. What's the best way to throttle reading file or sending it? How to send a stream over http?


I don't have answer for the whole thing, but here are some pieces: