<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yes, you’ve stumbled upon a problem with the way that RTP payload formats for video codecs are defined: They mandate that the RTP ‘M’ bit be set for the last RTP packet of a ‘picture’, but often it’s non-trivial for a streaming application (like ours) to figure out exactly when this should be done.  That’s why the “H264or5VideoStreamDiscreteFramer” code sets “fPictureEndMarker” liberally (based on whether the NAL unit is VLC) - but, as you noted, this is the wrong thing to be doing for all but the last slice of a picture.<div class=""><div class=""><br class=""></div><div class="">Fortunately, however, there is a way for you to overcome this (in a subclass of “H264or5VideoStreamDiscreteFramer”): Simply define your own ‘after getting’ function that first calls “H264or5VideoStreamDiscreteFramer::afterGettingFrame1()”, and then sets “pictureEndMarker()” to the ‘correct’ value.  (Then, the RTP packetizing code will do the right thing with the RTP ‘M’ bit.)</div><div class=""><br class=""></div><div class="">Note that the "pictureEndMarker()” member function is defined as</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Boolean& pictureEndMarker()</div><div class="">so it can appear on the left side of an assignment statement.</div><div class=""><br class=""></div><div class="">You should be able to do this without any changes to the existing LIVE555 code.</div></div><br class=""><br class=""><div apple-content-edited="true" class="">
<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;  "><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;  ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>