I'm building a program (I want to use libavformat not ffmpeg executable) to stream live video to Icecast server and it looks like FFmpeg should be able to do it. I can write the live video to a file (which is not really simple to begin with :) ) but I can't find simple code / example to how to use avformat/avio to write to Icecast (network) mount point.
Any pointers to example code would be appreciated.