Page 1 of 1

Controlling the cache/buffer when using the byte stream callbacks

Posted: 05 Apr 2016 10:57
by oviano
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?

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

Posted: 05 Apr 2016 13:57
by Rémi Denis-Courmont
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.

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

Posted: 05 Apr 2016 14:03
by oviano
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