Page 1 of 1

libVLC, very slow initialise and the plugins cache

Posted: 08 Apr 2016 19:30
by oviano
I've written an app that uses libVLC and I'm getting an intermittent problem where it takes ages (maybe a minute or more) to launch my app because it appears to be stuck initialising libVLC. It launches eventually but it's too slow.

I can see similar issues have been reported in the past with VLC itself.

I have four PCs that reboot in the early hours of the morning and so slow is my app to start that Windows gives up waiting for my app to create a Window and so when the Window gets created its minimised. I can probably workaround that my initialising libVLC after creating my Window, but I'd like to get to the bottom of the issue itself.

I'm using the libVLC DLLs from version 3.0 from a few weeks ago. I need 3.0 due to the new data byte stream callbacks. This is the 64 bit version.

I am aware of something called the plugins cache, and the file plugins.dat. This file is not getting created by my app - should it be? I can't find an option to tell libVLC to create this. I ran the 3.0 version of vlc-cache-gen but this did nothing - no error, but no plugins.dat created either.

Not sure where I go from here, can anyone help or give me some pointers?

Re: libVLC, very slow initialise and the plugins cache

Posted: 11 Apr 2016 10:58
by RĂ©mi Denis-Courmont
Your app installer should create the plugins cache, like the VLC installer does. Alternatively, use LibVLC from already installed player.

Re: libVLC, very slow initialise and the plugins cache

Posted: 19 Apr 2016 22:22
by oviano
Thanks for this, Remi, I have my installer doing this now.

Seems to be all ok now but actually I think I misunderstood the cause of my app being minimised - I think it was my backup program doing that. *looks embarassed*