Hi Ross,<div>Thanks for your advice of redirecting stdout to a file, it works, and I find the issue that dumped avi file cannot play in windows media player, that's because the avi file has no index in the end. Now I make some changes by add the index to the file after written movi data.</div>
<div>i enclose the two changed files, but the changed code maybe uglily written, hope it be changed gracefully.<br><br><div class="gmail_quote">2012/9/8 Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="im"><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>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></div>You don't need to do this. Instead, just do</div><div><span style="white-space:pre-wrap"> </span>openRTSP -i w 352 -h 288 -f 25 <a>rtsp://xxxx</a> > openRTSP.avi</div><div>i.e., redirect 'stdout' to a file on the command line.</div>
<div><br></div><div><div class="im"><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></div>Thanks. I will include this change in the next version of the software.</div><span class="HOEnZb"><font color="#888888"><br>
<br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">Ross Finlayson<br>
Live Networks, Inc.<br><a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
<br></font></span></div><br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div>