Implementing the rtmp -> rtp converter