libVLC, very slow initialise and the plugins cache

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

libVLC, very slow initialise and the plugins cache

Postby oviano » 08 Apr 2016 19:30

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?

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

Re: libVLC, very slow initialise and the plugins cache

Postby Rémi Denis-Courmont » 11 Apr 2016 10:58

Your app installer should create the plugins cache, like the VLC installer does. Alternatively, use LibVLC from already installed player.
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: libVLC, very slow initialise and the plugins cache

Postby oviano » 19 Apr 2016 22:22

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*


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests