<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I try to use openRTSP to dump the rtsp stream to AVI file with command like this "openRTSP -i w 352 -h 288 -f 25 <a href="rtsp://xxxx">rtsp://xxxx</a>", where xxxx is the real rtsp url, I've also change the code of "playCommon.cpp" in the line :</div>
<div><strong>aviOut = AVIFileSink::createNew(*env, *session, "stdout",</strong></div><div>to <strong>aviOut = AVIFileSink::createNew(*env, *session, "openRTSP.avi"</strong></div></blockquote><div><br></div>You don't need to do this.  Instead, just do</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>openRTSP -i w 352 -h 288 -f 25 <a href="rtsp://xxxx">rtsp://xxxx</a> > openRTSP.avi</div><div>i.e., redirect 'stdout' to a file on the command line.</div><div><br></div><div><br><blockquote type="cite"><div>i can get the file, but it couldnot play, then i check the content of openRTSP.avi file, find that the h264 start code is missing(the video codec from stream is avc").</div>
<div>so i add something to AVIFileSink.cpp, useFrame, like this </div></blockquote><div><br></div>Thanks.  I will include this change in the next version of the software.</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>