<div dir="ltr">I've written some code using the live555 library that receives an RTP MPEG2 stream, converts it to TS and transmits it using RTP to another address.<div><br></div><div style>The incoming RTP stream is a live feed coming from a camera.</div>
<div style>In order not to be vulnerable to networking delays, I've implemented a FramedFilter that takes the TS packets and puts them in a queue.</div><div style>The "client" of this queue is a SimpleRTPSink, which reads them through a MPEG2TransportStreamFramer.</div>
<div style>The frames are "released" from the queue after a slight delay.</div><div style>The idea was for the "Framer" to read the frames in near-live rate, and the RTPSource to put frames into the queue in near-live rate. The initial amount of "queued frames" should allow slight differences between in/out rates.</div>
<div style><br></div><div style>My problem is that the "Framer" reports most of the frames' duration as "0.0", and as a result 'uSecondsToGo' in the RTPSink is always 0, and the frames are sent out too fast.</div>
<div style><br></div><div style>Any idea how to get this to work?</div></div>