[vlc-devel] live555: default video frame size

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Sat Dec 28 15:39:56 CET 2013


On 12/28/2013 03:37 PM, Rémi Denis-Courmont wrote:
> Le samedi 28 décembre 2013, 15:27:08 Gilles Chanteperdrix a écrit :
>> A "wild guess" on the reassembled full frames size is to use the decoded
>> frame size, on the basis that an encoded frame is usually smaller than
>> its decoded counter part, and if it is not (which really, should not
>> happen often), vlc can resort to doubling the size as it currently doe.
>> The current approach of vlc: using a fixed size, results in corrupted
>> video when vlc has to double the buffer. A large enough size to cope
>> with all possible video sizes, will result in a frame too large for
>> small resolutions, whereas using a frame size proportional to the image
>> size will scale nicely and be future proof (since 4K for instance).
> 
> That does not explain why you need to guess that (fictitious) value in the first 
> place.
> 
To avoid the corrupted video which happens when vlc determines it needs
to double its buffer size (which appears to me to be the reassembled
frame size, and not the rtp packet size), by picking a more sensible
"initial guess"

-- 
                                                                Gilles.



More information about the vlc-devel mailing list