Hi Ross:<br>
Is there a similar issue in the MPEG1or2VideoRTPSources? I have
modified the code on both the Sink and the Source and have been facing
a similar issue. However, I assumed it to be a problem with my code.<br>
Chandrashekar(Chandra)<br><br><div><span class="gmail_quote">On 6/27/05, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live.com">finlayson@live.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>>I am using mpeg4 encoder (ffmpeg coder), essentially .m4v file. I have not<br>>noticed this loss when there is no loss due to network at all.<br><br>The current code doesn't handle packet loss in incoming MPEG-4 RTP streams
<br>as well as it could. In particular, if the last packet of a fragmented<br>frame (indicated by the RTP "M" bit) is lost, then the packets that make up<br>the next frame will be discarded also.<br><br>Try making the following change, which I think will improve things:
<br><br>In "MPEG4ESVideoRTPSource.cpp", line 49:<br><br>Replace:<br> fCurrentPacketBeginsFrame = fCurrentPacketCompletesFrame;<br>
// whether the *previous* packet ended a frame<br>with<br> fCurrentPacketBeginsFrame<br>
= fCurrentPacketCompletesFrame // the *previous* packet<br>ended a frame<br>
|| (packet->dataSize() >= 4 && (packet->data())[0] == 0<br>
&& (packet->data())[1] == 0 &&
(packet->data())[2] == 1);<br><br>Please let us know if that makes a difference.<br><br><br> Ross Finlayson<br> <a href="http://LIVE.COM">LIVE.COM</a><br> <<a href="http://www.live.com/">http://www.live.com/
</a>><br><br>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live.com">live-devel@lists.live.com</a><br><a href="http://lists.live.com/mailman/listinfo/live-devel">
http://lists.live.com/mailman/listinfo/live-devel</a><br></blockquote></div><br><br><br>-- <br> _ /\ _ Chandrashekar<br> \ oo / National University of Singapore<br> /_ _\ Computer Engineering <br> \/ Class of 2005
<br><br>Take up one idea. Make that one idea your life- think of it <br>dream of it, live on that idea. - Swami Vivekananda