Reduce binary size to embedd in a windows app

This forum is about all development around libVLC.
abuabdullah
New Cone
New Cone
Posts: 1
Joined: 02 Apr 2017 05:15

Reduce binary size to embedd in a windows app

Postby abuabdullah » 02 Apr 2017 05:43

Hi,

I'm using vlcj in my java app. the size of the vlc binary on windows is big (~90 MB ignoring the 'locale' files) considering that I'm embedding it in my bundle. is there any guideline on how to remove the unused plugins/files to reduce the size.

I'm using it to listen to few formats only from the web (HTTP) e.g. rm, mp3, opus

any advise is appreciated

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

Re: Reduce binary size to embedd in a windows app

Postby oviano » 02 Apr 2017 07:52

You need to observe the vlc log and see what modules it loads as you try all the formats you want to support.

Then delete all the others.

This approach worked for me with my project (not Java, but the same principle applies). You can basically reduce it down to the bare minimum you require.

No other code changes are necessary, though you might need to delete the plugin cache file or disable it.

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

Re: Reduce binary size to embedd in a windows app

Postby Rémi Denis-Courmont » 04 Apr 2017 19:34

There are a LOT of factors to consider. Some people actually sell consulting on that exact topic...

Looking at the list of used modules will only work well if you have homogenous hardware and input formats.
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 30 guests