Controlling the cache/buffer when using the byte stream callbacks

This forum is about all development around libVLC.
oviano
Cone that earned his stripes
Cone that earned his stripes
Posts: 120
Joined: 12 Jan 2012 11:12

Controlling the cache/buffer when using the byte stream callbacks

Postby oviano » 05 Apr 2016 10:57

Does anyone know how the caching works when you are feeding a data stream to libVLC using the new (3.0) custom byte stream callbacks?

I have tried --file-caching=X and --sout-mux-caching=X when initialising libVLC but they don't seem to make a difference.

Or is it the case that when using the library in this way that I am responsible for the caching and I should be holding data in my own buffer before allowing the library to read it or something?

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

Re: Controlling the cache/buffer when using the byte stream callbacks

Postby Rémi Denis-Courmont » 05 Apr 2016 13:57

You can control buffering however you want in the read callback.

Note that sout-mux-caching works the same with all types of inputs, since it does not affect input anyway.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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

Re: Controlling the cache/buffer when using the byte stream callbacks

Postby oviano » 05 Apr 2016 14:03

Ok, thankyou, Rémi.

I'm really enjoying working with libVLC by the way. I'm using it with SDL on Windows. I fully intend to donate to the project.

All the best


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests