<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><pre style="word-wrap: break-word; white-space: pre-wrap;"><pre style="word-wrap:break-word;white-space:pre-wrap">I know live555 can server taking UDP TS as input using MPEG2TransportUDPServerMediaSubsession.</pre></pre><pre style="word-wrap: break-word; white-space: pre-wrap;">I'd like to<span style="font-family:arial"> build a RTSP server that can takes a "TCP" Transport Stream as input.</span></pre></div></div></div></blockquote><div><br></div>That's easy to do. Just use the code for the "testOnDemandRTSPServer" demo application.</div><div><br></div><div>At line 239-240 of "testProgs/testOnDemandRTSPServer.cpp", change</div><div> char const* inputFileName = "test.ts";<br> char const* indexFileName = "test.tsx";<br>to<br> char const* inputFileName = "stdin";<br> char const* indexFileName = NULL;</div><div><br></div><div>Then, after building your new "testOnDemandRTSPServer", run </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>your-application-that-generates-a-TCP-stream | testOnDemandRTSPServer</div><div>I.e., just pipe your TCP connection to (your modified) "testOnDemandRTSPServer".</div><div><br></div><div>(You may find it useful to use the standard Unix "nc" utility to generate your TCP stream.)</div><br><br><div apple-content-edited="true">
<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>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>