it was a rarely occurring bug in rtmpdump. rtmpdump wasn't saving flv header into file making it unplayable. i have fixed it. check the following package. it also supports automatic redirection handling.
Code:
http://stream-recorder.com/forum/release-unofficial-rtmpdump-binaries-t11030.html