<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>When RTSP server receives a DESCRIBE command, it generates the SDP by parsing the source data. <br></div></blockquote><div><br></div>This depends upon the particular type of data - but for H.264, that's true, by default.</div><div><br></div><div><br><blockquote type="cite"><div>If description of the source is known, can the SDP can be hard-coded in ServerMediaSession::generateSDPDescription() ?<br></div></blockquote><div><br></div></div><div>I presume that you're talking about the "a=fmtp:..." line, because that's the part of the SDP description that it makes the most sense to want to 'hard code'. This line is set by the virtual function "auxSDPLine()", which many "RTPSink" subclasses redefine, to set this line.</div><div><br></div><div>Note, for example, the implementation of this function in "H264VideoRTPSink". This implementation sets the "a=fmtp:..." line by reading the SPS and PPS NAL units from the upstream 'framer' object, as the input H.264 data is read. If, however, you know this information ahead of time, you could define your own subclass of "H264VideoRTPSink" that reimplements "auxSDPLine()" once again.</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>