refine the librtmp, open writer then reader.
donot mix the read and write for librtmp