<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">When I create a new ByteSteamFileSource/H264VideoStreamFramer inside the 'createNewStreamSource' method ala H264FileServerMediaSubsession it works as expected.<br></blockquote><div><br></div>You should continue to do this.</div><div><br></div><div><br><blockquote type="cite">From this I take it that each call to 'createNewStreamSource' should return a pointer to a different object, but then I'm unsure how this works when there is only a single source, I thought that using reuseFirstSource = True would mean that I could use a single source object.<br></blockquote><div><br></div>Not quite. Setting "reuseFirstSource" to "True" means that only one source object exists - *at a time*. However, the server code (when streaming H.264 video) initializes by creating a dummy source object, then destroys it, then creates another source object that it will use for subsequent streaming. This source object may also get destroyed later, if all clients that are using it end up doing a RTSP "TEARDOWN" on the stream. If that happens, the next client (if any) will end up causing a new source object to be created. And so on...</div><div><br></div><div>So, in summary: You need to be prepared for "createNewStreamSource()" to be called multiple times, and for the resulting source object to be destroyed multiple times. (However, because you've set "reuseFirstSource" to "True", you can expect no more than one such source object to be in existence at any one time.)</div><div><br></div><div>Also, because you're streaming H.264 video, you may wish (in your "createNewRTPSink()" virtual function implementation) to use one of the alternative forms of "H264VideoRTPSink::createNew()" that take the stream's SPS and PPS NAL units - if you know them - as parameter. See "liveMedia/include/H264VideoRTPSink.hh". If you instead use the regular "H264VideoRTPSink::createNew()" (that doesn't take these extra parameters), then your code will still work, but only if your H.264 encoder generates SPS and PPS NAL units 'in band', and these occur frequently.</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>