<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>>> <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">I</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">f
 your encoder “FramedSource” subclass is delivering discrete H.264 NAL units </span><br>
</p>
<p>I was just confused with the fact that MS's encoder outputs multiple NALs with start codes.<br>
</p>
<p>I separate them, stripped off start codes, fed them into the <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">H264VideoStreamDiscreteFramer</span>​,and it works!<br>
</p>
<p><br>
</p>
<p>Thanks!<br>
</p>
<p><br>
</p>
<p>BR, Anton<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> live-devel <live-devel-bounces@ns.live555.com> on behalf of Ross Finlayson <finlayson@live555.com><br>
<b>Sent:</b> 08 November 2014 4:02 PM<br>
<b>To:</b> LIVE555 Streaming Media - development & use<br>
<b>Subject:</b> Re: [Live-devel] Problem with fMaxSize after signalNewFrame() for live source</font>
<div> </div>
</div>
<div>
<div>
<blockquote type="cite" class="">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
I'm writing an application that encodes screen capture (using MS media foundation h264 encoder) and transmits it via RTSP using liveMedia.<br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
<br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
I've written a wrapper for interfacing with the encoder (based on DeviceSource.cpp).<br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
When the encoding starts,  maxFrameSize eventually grows to BANK_SIZE</div>
</div>
</blockquote>
<div><br class="">
</div>
This implies that (in your “createNewStreamSource()” implementation) you are feeding incoming H.264 NAL units to a “ H264VideoStreamFramer”.  That is wrong; “H264VideoStreamFramer” is used only when reading a H.264 file as a byte stream.</div>
<div><br class="">
</div>
<div>If your encoder “FramedSource” subclass is delivering discrete H.264 NAL units (i.e., one NAL unit at a time), then you must feed it into a “H264VideoStreamDiscreteFramer”, *not* a “H264VideoStreamFramer”.  (Also, each NAL unit that you feed into the “H264VideoStreamDiscreteFramer”
 must *not* begin with a ‘start code’ (0x00 0x00 0x00 0x01).)</div>
<br class="">
<br class="">
<div 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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing: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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing: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="">
</div>
</div>
</body>
</html>