<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The problem with MPEG-4 (and H.264) video is that - to properly serve the stream - you need (in the stream's SDP description) certain 'configuration' parameters.  Often, these configuration parameters can be obtained only by reading the stream itself.  In this case, we have a 'chicken and egg' problem: Parameters that are needed to serve the stream can be obtained only by first reading the stream.<div><br></div><div>To solve this, note how in "MPEG4VideoFileServerMediaSubsession" (a subclass of "OnDemandServerMediaSubsession") we reimplement the virtual function "getAuxSDPLine()".  If you *don't* know - in advance - the configuration parameters for the stream, then you will need to also reimplement "getAuxSDPLine()", and do something similar, in your own subclass of "OnDemandServerMediaSubsession".</div><div><br></div><div>If, however, you *do* know - in advance - the configuration parameters for the stream, then there is an alternative solution:</div><div>Recent versions of the code (>= version 2012.03.20) have an alternative version of "MPEG4ESVideoRTPSink::createNew()" that take the configuration parameters as arguments.  Specifically, it takes two extra arguments:</div><div><span class="Apple-tab-span" style="white-space:pre">     u_int8_t profileAndLevelIndication, char const* configStr</span></div><div>If you know this information in advance, then you should use this new version of "MPEG4ESVideoRTPSink::createNew()" in your reimplementation of the "createNewRTPSink()" virtual function, and you then *do not* need to reimplement "getAuxSDPLine()".</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>