Ok, I find the solution.
Inherit the OnDemandServerMediaSubsession
class, use the MPEG4ESVideoRTPSource
and 'MPEG4VideoStreamDiscreteFramer' to get RTP input.
Then make a little change from DynamicRTSPServer
by replacing createNewSMS
function.
This RTP proxier got working!