<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="background-color: rgb(224, 224, 224); font-family: 'Trebuchet MS'; color: rgb(0, 80, 128); font-size: 10pt; position: static; z-index: auto; " background="" bgcolor="#e0e0e0"><div><span class="439471611-30082012">I have subclassed the
OnDemandServerMediaSubsession, and have overridden the createNewStreamSource and
createNewRTPSink functions as the FAQ instructs and can successfully receive an
MPEG2 Program stream, demux it into an MPEG1or2DemuxedElementaryStream and pass
data that into an H264VideoStreamFramer.</span></div></div></blockquote><div><br></div>I'm puzzled by this, because "Program Streams" usually contain only MPEG-1 or MPEG-2 video. This is the first time I've heard of a Program Stream file containing H.264 video. (In fact, I didn't know that anyone used Program Streams anymore; they're pretty much a legacy of the 1990s :-)</div><div><br></div><div>Anyway, our code was not intended to be used for Program Stream files that contain H.264 data, so it's no surprise that things aren't working for you. If you are sure, however, that this is the kind of file that you are trying to stream, then please post the URL of such a file, so we can download and test it for ourselves (and possibly update our code, as appropriate).</div><div><br></div><div><br><blockquote type="cite"><div style="background-color: rgb(224, 224, 224); font-family: 'Trebuchet MS'; color: rgb(0, 80, 128); font-size: 10pt; position: static; z-index: auto; " background="" bgcolor="#e0e0e0">
<div><span class="439471611-30082012"></span> </div>
<div><span class="439471611-30082012">The above process seems correct, and I can
stream the resulting H264 data smoothly to both the openRTSP client (the
resulting file is playable) and VLC. The problem I seem to be having is that
whenever I disconnect the client application (openRTSP or VLC), the server
experiences an Access violation. I have scoured the logs and have found that
the TEARDOWN is received by RTSPClientSession and seems to be handled
properly, except that the testBytes function (in StreamParser.hh) is referencing
an invalid pointer (line: 85 - memmove(to, nextToParse(), numBytes)</span></div></div></blockquote><div><br></div>No, that statement's on line 89, not line 85. (This suggests to me that you've modified the supplied source code. A reminder: If you modify the supplied source code - at all - you can't expect any support.)</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>