Thanks man.
It is giving me this error
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
From this thread here it seems like this may not work:
http://stream-recorder.com/forum/rtm...ype-t8603.html
I tried installing different versions of rtmpdump in ubuntu but same result each time. They give a patch but I have no idea how to install that on ubuntu.