rewriting rtmpdump