Page 1 of 1

Reduce binary size to embedd in a windows app

Posted: 02 Apr 2017 05:43
by abuabdullah
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

Re: Reduce binary size to embedd in a windows app

Posted: 02 Apr 2017 07:52
by oviano
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.

Re: Reduce binary size to embedd in a windows app

Posted: 04 Apr 2017 19:34
by RĂ©mi Denis-Courmont
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.