<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">I have an MPEGTS muxer (ffmpeg) that spits out 1316 (188 * 7) byte chunks of valid data at a time. In my FramedSource subclass, I can write this to a file via fwrite and have a perfectly playable mpegts file. I've been sending data to `fTo` in 1316 byte chunks (as hinted in our previous conversation). The library gives no error or warning and it looks like the data is getting sent out correctly looking at IO rates in wireshark. My total rate is only about ~2Mbit/s, but `openRTSP` only writes it's output file at ~160Kbit/s.<br class=""><br class="">I am curious of the proper "rate" to feed `fTo` for my MPEGTS FramedSource. I figured <= MTU sized data would be best, but it seems maybe something else. Ideas?</div></blockquote><br class=""></div><div>Can you describe some more how your system is structured? (I assume, based on your previous message, that you’re still developing a RTSP server.)</div><div><br class=""></div><div>In particular, does your “createNewStreamSource()” implementation (in your “OnDemandServerMediaSubsession” subclass) create only an instance of your “FramedSource” subclass, or does it also feed this to a “MPEG2TransportStreamFramer”? (If your “FramedSource” subclass is getting data from a live input source (e.g., from an encoder), rather than from a pre-recorded file, then you shouldn’t need to feed it to a “MPEG2TransportStreamFramer”; however, in that case it’s important that your “FramedSource” subclass set “fPresentationTime” and “fDurationInMicroseconds” correctly, so that the downstream object (a “SimpleRTPSink” in this case) will request data at the correct rate.)</div><br class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>