disable caching?

This forum is about all development around libVLC.
skuda
New Cone
New Cone
Posts: 8
Joined: 26 Jun 2012 21:34

disable caching?

Postby skuda » 16 Sep 2012 22:59

Hi,
i am trying to add libvlc to Zoneminder-Viewer https://github.com/skuda/ZoneMinder-Viewer that it's using motion jpeg itself right now, i would like to completely replace the internal streamer and use libvlc to stream x264 if asked for, when i am on lan i have an extra delay using libvlc that i don't have using mjpeg directly.

I have tried to disable cache using "--network-caching=0" argument to libvlc_new() but still i get an extra 2~3 seconds, the argument it's working because if i put 5000ms value i get 5 seconds more of delay. It is possible to disable caching completely? would be useful when i can be sure i am on LAN.

Other question, my complete arguments right now it's {"--no-video-title-show", "--network-caching=0"}, the documentation says that i should not use this way to pass parameters because i have no warranty that it will work on older or newer releases, do i have any other way to get this result? Thanks!

Regards,
Miguel Angel.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: disable caching?

Postby Jean-Baptiste Kempf » 17 Sep 2012 00:25

If you are streaming, there are other internal buffers, I think.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

skuda
New Cone
New Cone
Posts: 8
Joined: 26 Jun 2012 21:34

Re: disable caching?

Postby skuda » 17 Sep 2012 09:07

this internal buffers can be controlled from libvlc or they are static?

skuda
New Cone
New Cone
Posts: 8
Joined: 26 Jun 2012 21:34

Re: disable caching?

Postby skuda » 18 Sep 2012 16:11

i assume they are static, ok, i will maintain old mjpeg code for lan usage, thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: disable caching?

Postby Jean-Baptiste Kempf » 18 Sep 2012 19:17

THey can be controlled.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

skuda
New Cone
New Cone
Posts: 8
Joined: 26 Jun 2012 21:34

Re: disable caching?

Postby skuda » 18 Sep 2012 20:50

some tip for search the documentation please? i can't find anything about this internal buffers.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: disable caching?

Postby Jean-Baptiste Kempf » 18 Sep 2012 23:17

Use the preferences box of VLC to search for caching and you will see the sout-mux-caching
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: disable caching?

Postby kostyan » 19 Sep 2012 10:35

I am not sure but --clock-jitter=0 might also be related to that.
Konstantin Miller
Technische Universität Berlin

some_birdie
Blank Cone
Blank Cone
Posts: 11
Joined: 26 Jun 2011 18:31
Operating System: Win, Linux, Android

Re: disable caching?

Postby some_birdie » 02 Oct 2012 16:03

Hello, I also need to disable caching in vlc. Has anybody solved this?

I use VLC for playing of live FLV/HTTP stream and need to reduce the latency.
I've found such comment in src/input/stream.c:
/* Two methods:
* - using pf_block
* One linked list of data read
* - using pf_read
* More complex scheme using mutliple track to avoid seeking
* - using directly the access (only indirection for peeking).
* This method is known to introduce much less latency.
* It should probably defaulted (instead of the stream method (2)).
*/
How can I use the access directly, without these streams? Will this reduce the latency?

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

Re: disable caching?

Postby Rémi Denis-Courmont » 03 Oct 2012 17:42

1/ Modify the source code. Nobody tried to do that, so nobody really knows. 2/ Probably, but it might introduce other problems.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests