how to disable all caching

About encoding, codec settings, muxers and filter usage
lazna
Blank Cone
Blank Cone
Posts: 14
Joined: 03 Apr 2014 20:30

how to disable all caching

Postby lazna » 01 Apr 2019 10:13

Using VLC for live camera restreaming, which generating some unwanted stream delay. Want to disable ANY possible 'delay generate' caching, prefer to by as close to realtime watching as possible.

After some research, discovery that there are few arguments containing word 'caching' (e.g. sout-mux-caching, network-caching, rtsp-caching, live-caching, etc..), some of them are used as a console parameter (affect whole program?), some of them are used in SOUT string (affect only specific stream?). Already checked few combinations, but did not made any observated difference on final stream delay for me. Could someone point me to vlc caching documentation page or provide an explanation how this is working in general? thanks

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: how to disable all caching

Postby unidan » 01 Apr 2019 11:43

Hi, on vlc 4 (which is not released yet), you have the --low-delay option.

For options in modules, if it's an access/demux, it's the input, if it's a sout module or is prefixed by sout-, it's in the output.

For caching: https://forum.videolan.org/viewtopic.ph ... 46#p489246 maybe look at prefetch options ?

oviano
Cone that earned his stripes
Cone that earned his stripes
Posts: 120
Joined: 12 Jan 2012 11:12

Re: how to disable all caching

Postby oviano » 07 May 2019 23:33

I’m curious about this too.

I can’t get libvlc to internally buffer less than about 2-3s of a TS using the imem access input, even with all stream filter cache plugins removed.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: how to disable all caching

Postby unidan » 09 May 2019 11:22

Hi, did you try --network-caching=0 ? Having done that, it works relatively well.
You might also need --no-ts-trust-pcr depending on your configuration.

As a warning: it removes caching, not all caching, but you won't be protected against underflow and it might create glitches if your network is not reliable.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests