On Fri, 2020-10-16 at 07:39 -0500, z wrote:
> how to stream rtp packet via srt,thanks!
If you mean the MPEG-TS in RTP via SRT streams that various
software/hardware out there does, then you can take any of the MPEG-TS
examples and put rtpmp2tpay between the MPEG-TS muxer and the SRT sink.
For receiving nothing special is needed as the MPEG-TS demuxer will
skip all the RTP headers and that will likely work more reliable, but
if you really want to make use of the RTP headers you can use
rtpmp2tdepay between the SRT source and the MPEG-TS demuxer.
However that kind of stream generally doesn't seem like a great idea as
it adds another layer of timing information (MPEG-TS, RTP and SRT) that
might be conflicting with the other layers.