[vlc-devel] live555: default video frame size
Gilles Chanteperdrix
gilles.chanteperdrix at xenomai.org
Sat Dec 28 19:26:44 CET 2013
On 12/28/2013 07:09 PM, Jean-Baptiste Kempf wrote:
> On 28 Dec, Gilles Chanteperdrix wrote :
>> Sorry to insist, I will try and be precise. In:
>>
>> rtsp://xenomai.org:8554/video-tests/hd-fast.mp4
>>
>> around 2:06, I get, in the text console:
>> MultiFramedRTPSource::doGetNextFrame1(): The total received frame size
>> exceeds the client's buffer size (100000). 1812 bytes of trailing data
>> will be dropped!
>> [h264 @ 0x7f76e405d560] error while decoding MB 31 33, bytestream (-24)
>
> Shouldn't a packetizer fix this?
my suggestion is to use an initial frame buffer size proportional to the
image size, since RTSP allows to know the frame size in advance via the
encoder configuration passed through the SDP negotiation. For instance,
if we picked K * width * height as an initial size, with K=1/2 for this
video, it would be around 500 KB, and a resize would not happen at this
time. Of course, the choice of K is a trade off between wasted buffer
size (but we are talking about a unique buffer), and the risk to observe
a corrupted video with a buffer resize. If we choose K=1.5 for YUV420
video, there is very little chance of resize at all (but in that case
the buffer size would be 1.5MB).
Regards.
--
Gilles.
More information about the vlc-devel
mailing list