<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 1, 2011, at 8:19 AM, yinlijie2011 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<div style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<div style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<div style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<div> I use live555 library for my program that receive stream media from RTSP server and save them to a MP4 file per one minute. With time went by, more and more MP4 files will be create and save media.</div>
<div> I know use <em>QuickTimeFileSink::createNew() </em>can create MP4 file pointer, but I don't know use which function can free the pointer when it get stream media enough time. In openRTSP's source, use <em>Medium::close() </em>to free MP4 file's pointer. I try use this function, but my program can't receive stream media when I use it, why?</div>
<div> My step is, first, send PAUSE signal; second, use <em>Medium::close() </em>free MP4 file pointer and create new one; finally, send PLAY signal.</div></div></div></div></div></div></blockquote><div><br></div></div>This should work (I think):<div><br></div><div>1/ Send the RTSP "PAUSE" command (using "RTSPClient::sendPauseCommand()")</div><div>2/ Call Medium::close(pointer-to-your-MP4-file-object)</div><div>3/ Create a new MP4-file-object</div><div>4/ Call "startPlaying()" on your new MP4-file-object</div><div>5/ Send the RTSP "PLAY" command (using "RTSPClient::sendPlayCommand()")</div><br><br><div>
<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>