<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div> i want use live555 openrtsp get nal data from h264 encode device. i see live555 testprog playcommon.cpp <a href="http://code.it">code.it</a> use h264videofilesink. my question:<br> 1¡¢i hope use playcommon get nal data rather than write file.so i must write our myh264videosink? yes or no?<br></div></blockquote><div><br></div>Yes, if you want to do something with the incoming NAL units - other than write them to a file - then you will need to write your own "MediaSink" subclass to do this (instead of using "H264VideoFileSink").</div><div><br></div><div><br><blockquote type="cite"><div> 2¡¢if use our myh264videosink get nal data,i how to get video config info? i.e. video size and <br>video bit?<br></div></blockquote><div><br></div></div>First, you get the 'sprop-parameter-sets' configuration string from the stream's SDP description, by calling<div><span class="Apple-tab-span" style="white-space:pre">   subsession->fmtp_spropparametersets()</span></div><div>This returns an ASCII string, that you can parse with the "parseSPropParameterSets()" function, to get a set of (binary) NAL units (usually, SPS and PPS).  (Note, for example, the implementation of "H264VideoFileSink", which calls "parseSPropParameterSets()".)</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>