<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"><base href="x-msg://2245/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div lang="RU" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; 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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I try translate H264 video stream by Live555. The hardware video source is the video camera (USB).<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Class for Live555 video source derived from DeviceSource.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">The problem  in function DeviceSource::deliverFrame :<o:p></o:p></span></div><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; ">When the newFrameSize > </span><span style="font-size: 11pt; font-family: Calibri, sans-serif; "><a href="http://www.live555.com/liveMedia/doxygen/html/classFramedSource.html#7f4137643c61539e313e3a92085efc08" style="color: purple; text-decoration: underline; "><span lang="EN-US">fMaxSize</span></a></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; "> <span lang="EN-US">i set </span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; "><a href="http://www.live555.com/liveMedia/doxygen/html/classFramedSource.html#337ad49493202c89afd93564cc6263da" style="color: purple; text-decoration: underline; "><span lang="EN-US">fNumTruncatedBytes</span></a></span><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; ">, but only result is the message:<o:p></o:p></span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; "> </span></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; "><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; ">“The input frame data was too large for our buffer size ….. bytes of trailing data was dropped!”<o:p></o:p></span></pre><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">This mean (as I understand) that the truncated part of frame is dropped.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Is this mean that the truncated frame is dropped?</span></div></div></div></blockquote><div><br></div>Yes.  If the input frame is larger than the buffer space that the downstream object provides, then you will *not* be able to deliver all of the data.  The remaining data will be truncated (i.e., dropped, lost).</div><div><br></div><div><blockquote type="cite"><div lang="RU" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; 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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">In message we have recommendation:<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">“Correct this by increasing \"OutPacketBuffer::maxSize\" to at least”<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Is  any way to sending large frames (H264 key frames , or other),  except the HUGE fMaxSize?</span></div></div></div></blockquote><div><br></div></div>No.  The downstream object's buffer must be large enough to receive the frame.<div><br></div><div>However, this shows why very large H.264 key frames are a bad idea.  Even if you have a large enough buffer to stream these frames, each one will be packed into many outgoing RTP packets.  If *any* of these packets gets lost, the receiver will be unable to reconstruct the frame.</div><div><br></div><div>Instead, it is much better if you can break up each 'key frame' into several 'slices' (each of which would be its own H.264 NAL unit).  Each of these slices (NAL units) would be delivered separately.</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>