how to trim modules

VLC for Android and Chrome OS specific usage questions
jerryYoung
New Cone
New Cone
Posts: 8
Joined: 18 Feb 2013 03:43

how to trim modules

Postby jerryYoung » 27 Feb 2013 03:37

How to disable all modules that is not used in my vlc?
I modify vlc/android/configure.sh like this:
--disable-plugins \
--enable-avformat \
--enable-swscale \
...
But it is not work.

I only need a simple function of playing http live streaming(h264+aac).
But the size of libvlcjni.so is too large for me.
How could I get a smallest size libvlcjni.so.
thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: how to trim modules

Postby Jean-Baptiste Kempf » 27 Feb 2013 06:53

--disable-plugins means nothing and does not exist in configure. You should disable the rest of the configure part and you should make the ffmpeg compilation only compile H264.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: how to trim modules

Postby edwardw » 28 Feb 2013 22:16

In addition, disable a lot of contrib modules that you do not intend to use. This will reduce the amount of statically-linked libs.

jerryYoung
New Cone
New Cone
Posts: 8
Joined: 18 Feb 2013 03:43

Re: how to trim modules

Postby jerryYoung » 05 Mar 2013 03:21

Thank you,I make the ffmpeg compilation only compile H264,then the size of libvlcjni.so is smaller!(12M-->9M)
I disable the rest of the configure part in configure.sh,onlye enable these option, the size is from 9M to 5.9M. is there other plugins that can be disabled?
#only enable these plugins:
--enable-freetype \
--enable-avformat \
--enable-swscale \
--enable-avcodec \
--enable-opus \
--enable-opensles \
--enable-android-surface \
--enable-dvbpsi \
--enable-libass \
#disable the rest of unused plugins,about 150 plugins
--disable-XXX\
...


By the way,how to "make clean" vlc? to make sure it rebuild I need delete vlc directory and it take too long time to re-download ):
Last edited by jerryYoung on 05 Mar 2013 04:10, edited 1 time in total.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: how to trim modules

Postby edwardw » 05 Mar 2013 03:26

Run

Code: Select all

source env.sh
. This will incorporate environment variables for VLC Android into your shell. From there, just cd vlc/android and make to rebuild.

tylerjroach
New Cone
New Cone
Posts: 7
Joined: 22 Sep 2014 21:01

Re: how to trim modules

Postby tylerjroach » 23 Sep 2014 17:46

--disable-plugins means nothing and does not exist in configure. You should disable the rest of the configure part and you should make the ffmpeg compilation only compile H264.

What file do I need to modify to set ffmpeg to only compile certain file types? Thank you!

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: how to trim modules

Postby edwardw » 23 Sep 2014 21:06

contrib/src/ffmpeg/rules.mak

tylerjroach
New Cone
New Cone
Posts: 7
Joined: 22 Sep 2014 21:01

Re: how to trim modules

Postby tylerjroach » 14 Oct 2014 17:54

Thank you!


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 13 guests