prepare for rtmpt