Page 1 of 1

How to change playout buffer during video streaming

Posted: 21 Feb 2013 08:34
by ymsaputra
Dear All,

As far as I know, we can set the playout buffer at the client by using network-caching parameter before streaming.

Does it mean that this is the maximum value for playout buffer? Can the playout buffer decrease from the maximum value automatically in VLC?

Do you know how to debug (in which file) the current playout buffer during streaming? I want to know whether the current playout buffer changes or not during the streaming.


Thank you so much for the answers.

Re: How to change playout buffer during video streaming

Posted: 21 Feb 2013 19:12
by Rémi Denis-Courmont
Shrinking the buffer while playing does not make much sense. Once the playback is, say, 2 seconds behind, there is no clean way to reduce the delay. Either we'd have to discard samples, or to upsample. Either way, it would result in bad user experience. And no, this is not the maximum value. VLC will automatically pause and expand the buffer if it needs to - because it runs out.

There is not really a single file, but the buffering code is mostly in src/input/.

Re: How to change playout buffer during video streaming

Posted: 22 Feb 2013 11:33
by ymsaputra
Thank you so much for your answer.

Before I deeply go to the buffer code, I have one more question,

Can VLC change playout buffer length automatically during streaming based on the current network condition?

e.g : if the network condition is bad, it will add playout buffer length and vice versa.

Thank you again for your help

Re: How to change playout buffer during video streaming

Posted: 22 Feb 2013 17:10
by Rémi Denis-Courmont
I already answered that question, I think.