Warm tip: This article is reproduced from stackoverflow.com, please click
stream streaming rtsp rtp live555

Proxy rtp source stream to rtsp via live555

发布于 2020-03-27 10:31:24

I have a RTP stream which generated by ffmepg, now I need to restream to RTSP with live555.

There is a way to restream from a RTSP to another RTSP: LIVE555 Proxy Server.

But how to modify the Proxy Server to restream RTP source to RTSP (I can get the sdp description) ?

i.e.

  • source stream: rtp://192.168.1.10:55555
  • retream to: rtsp://:554/stream1

Any advice will be appreciated. Thanks!

Questioner
dxball
Viewed
135
dxball 2012-11-27 18:59

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!