<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">This is fascinating but I can't picture it. What would the design look like for multiple processes (one per stream as you describe)?<br><br>Are there any examples of this that I can take a look at?<br></blockquote><div><br></div>Sure. For a (very) simple example, imagine a shell script like the following:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> #! /bin/</span>sh</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>openRTSP -F stream1_ <a href="rtsp://stream1.example.com">rtsp://stream1.example.com</a> &</div><div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>openRTSP -F stream2_ <a href="rtsp://stream2.example.com">rtsp://stream2.example.com</a> &</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>openRTSP -F stream3_ <a href="rtsp://stream3.example.com">rtsp://stream3.example.com</a> &</div></div><div><br></div><div>I.e., have one process (in this case, a shell running a script, although it could also be a compiled application) that spawns ('exec's) multiple concurrent processes ('sub-applications') - one for each desired stream that you want to receive.</div><div><br></div><div>People have been structuring applications like this for decades. I'm puzzled by why so many programmers these days seem afraid (or unaware) to do this. (I suspect, however, that it might be due to the fact that so many programmers these days have grown up using nothing but graphical IDEs (integrated development environments), which only generate applications in which everything runs in one process.)</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; font-size: medium; "><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; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>