rtmpdump is a toolkit for various types of RTMP stream. It includes a library, simple stream capture tool, and various utilities.