How to change playout buffer during video streaming

About encoding, codec settings, muxers and filter usage
ymsaputra
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Nov 2012 13:56

How to change playout buffer during video streaming

Postby ymsaputra » 21 Feb 2013 08:34

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.
Best Regards,

Yuris

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to change playout buffer during video streaming

Postby Rémi Denis-Courmont » 21 Feb 2013 19:12

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/.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ymsaputra
Blank Cone
Blank Cone
Posts: 16
Joined: 14 Nov 2012 13:56

Re: How to change playout buffer during video streaming

Postby ymsaputra » 22 Feb 2013 11:33

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
Best Regards,

Yuris

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to change playout buffer during video streaming

Postby Rémi Denis-Courmont » 22 Feb 2013 17:10

I already answered that question, I think.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 33 guests