Live video stream to RTSP/RTMP from Android
===

I am going to develop an application in android which will live stream video taken by android camera to RTSP server. I have seen many discussions about this, but nothing helped me. Can anybody provide me some sample code of live streaming. Stream to RTMP server will also help. Thanks in advance.