<div class="gmail_quote"><div class="gmail_quote"><div class="im">Ross,<br><br>We have been using live555 for many years with MPEG4 in an IP camera product and are creating a new product which uses H264.<br><br>I've successfully built the latest source code and tested a fresh build of rtspd with our MPEG4 stream and played it in vlc - All OK<br>
<br>When I switch the video source to H264 and change the top level code as follows:<br><br> sms = ServerMediaSession::createNew (<br> *env, urlStrings [ ch ], infoString, descStrings [ ch ] );<br> if (!H264)<br>
{<br> sms->addSubsession ( MPEG4VideoLiveServerMediaSubsession::createNew (<br> *env, True, params ) );<br> }<br> else<br> {<br> sms->addSubsession( H264VideoLiveServerMediaSubsession::createNew (<br>
*env, True, params ) );<br> }<br> rtspServer->addServerMediaSession ( sms );<br><br>The device source incomingDataHandler is called with a new fTo pointer each time which has moved on by the previous frame size. i.e. the old frames are not being<br>
reclaimed from the bank. If I make the BANK_SIZE huge, the H264 plays for a second or two before the memory is exhausted. In the MPEG4 case fTo never changes, i.e. the previous frame is always freed before getting the next frame.<br>
<br>I'm puzzled as to why I get this problem as this should be common to both MPEG4 and H264. Any ideas?<br><br>Attached is the source code for our custom files.....<br></div><font color="#888888"><br>Geoff</font><br>
</div>
</div><br><br clear="all"><br>-- <br>Geoff Cleary<br>Principal Software Engineer<br><br>SightLogix<br>745 Alexander Rd, Princeton, NJ 08540<br>609.951.0008(w) 267.252.1789(c)<br><a href="http://www.sightlogix.com">http://www.sightlogix.com</a><br>