[vlc-devel] [PATCH] Add option to change network cache while playing video

Paulo Vitor Magacho da Silva pvmagacho at gmail.com
Tue Oct 27 13:58:57 CET 2015


2015-10-27 10:40 GMT-02:00 Rémi Denis-Courmont <remi at remlab.net>:

> Le 2015-10-27 15:02, Paulo Vitor Magacho da Silva a écrit :
>
>> 2015-10-27 9:54 GMT-02:00 Rémi Denis-Courmont <remi at remlab.net [3]>:
>>
>> Le 2015-10-27 14:51, Paulo Vitor Magacho da Silva a écrit :
>>>
>>> Yes, PTZ means pan, tilt, zoom. The network cache introduces a
>>>> delay
>>>> between the PTZ command and the video response. In a normal live
>>>> stream 500ms-1000ms is ok for network cache, but when using PTZ,
>>>> a
>>>> reduced network cache around 100ms is more appropriate.
>>>>
>>>
>>> This seems backward to me. If you can and sometimes need low
>>> latency, then just use low latency at all times.
>>>
>>
>> The issue is that the application can have multiple videos being
>> played.
>>
>
> So what? Each LibVLC media player instance has its own buffers and clock.
>
>
Yes, but they are all using the same network interface. That is why when
playing many videos at once (here we are talking up to 16 videos at once) a
larger network cache is advisable to cope with network issues (TCP packet
loss, latency, etc).

The application I am developing needed a way to reduce/increase the network
cache without having to restart the video stream. If there is any way of
doing that with the current API available I will be glad to hear. However,
I could not find and that is why I've developed this patch.

If you think this might not be useful to other applications, ok. Otherwise,
do you have any comments on the implementation itself?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20151027/46f2772b/attachment.html>


More information about the vlc-devel mailing list