Thanks Ross first :-) <br>
<br>
I printed each packet before sending and the problem was gone,
so....I think it's probably because
streamer send packets too fast ( server and client are both on the same machine ) so that reciver could
not hold them.<br>
<br>
<br>
Z.T<br><br><div class="gmail_quote">2009/6/30 Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to send JPEG file, and wrote my JPEGVideoSource(), I use openRTSP as the client, and my input test file is just a frame, but i got some trouble, sometimes openRTSP could got the stream and saved, but sometime it didn't - the recived file is 0 byte.....and always got "BYE" and "TEARDOWN" msg, i don't know where is something wrong, could anyone give the direction to figure out the point or how and where to put some debug code in openRTSP to see if it take packets<br>
</blockquote>
<br></div>
When you don't receive a frame, it's probably because one or more of the RTP packets got lost. If any of the (very many) RTP packets that make up a JPEG frame get lost, then the whole frame is discarded.<br>
<br>
JPEG is a very poor codec for video streaming. You should use a more efficient codec (specifically for video) instead.<br>
-- <br><font color="#888888">
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a><br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">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>
</font></blockquote></div><br>