> I am having --  unsigned OutPacketBuffer::maxSize = 900000;  in mediaSink.cpp
> If I decrease the maxSize then the frames I get are truncated.

OK, there are two separate buffer sizes that you need to concern yourself with.

"OutPacketBuffer::maxSize" is the buffer size that is used - by your server - 
when *transmitting* NAL units.  You must set it to be at least as large as your 
largest NAL unit.  Otherwise you will see (in 'stderr') error messages about 
needing to increase "OutPacketBuffer::maxSize".

The receiving application - in your case VLC - must also have sufficient buffer 
space to be able to reassemble the incoming RTP packets into a complete NAL 
unit.  That is what I referred to in my previous email message.

In any case, 900000 bytes is an *insanely large* NAL unit (I-frame) size!!  A 
NAL unit this large will get fragmented into *60* RTP packets, and *all* of 
these RTP packets must be received by the receiving application, otherwise the 
entire frame will be unrenderable.  This is why it's much better to reconfigure 
your encoder so that it breaks up large I-frames into smaller 'slice' NAL units.


>  Can you please specify how to decrease the nal unit size without decreasing 
> the value of maxSize.

You mean "how to decrease the nal unit size without *increasing* the value of 
maxSize"?  Once again, you need to reconfigure your encoder to break up large 
I-frames into smaller 'slice' NAL units.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to