Hi my generated gstreamer.so contains aroound 100 mb of each archicture is
there any way to reduce this so file size ? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
It shouldn't be that big, you're probably building with debug symbols, you can strip them using the strip tool. I'm assuming you're building for Android? In that case, you can select only the plugins you are using. Olivier On February 25, 2021 11:20:56 p.m. EST, Purva <[hidden email]> wrote: >Hi my generated gstreamer.so contains aroound 100 mb of each archicture >is >there any way to reduce this so file size ? > > > >-- >Sent from: http://gstreamer-devel.966125.n4.nabble.com/ >_______________________________________________ >gstreamer-devel mailing list >[hidden email] >https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel -- Olivier Crête [hidden email] _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
This post was updated on .
Selection or removing of unnecessary plugins not helping me much here lib
file size remains that much bigger only. Yes I am builing it on android. For you reference here is my Android.mk file ------------------------------------------- LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := LiveStream LOCAL_SRC_FILES := LiveStream.c LS.cpp LOCAL_SHARED_LIBRARIES := gstreamer_android LOCAL_LDLIBS := -llog -landroid include $(BUILD_SHARED_LIBRARY) #Update your PC path of the folder gstreamer_extracted GSTREAMER_ROOT_ANDROID:= /home/Purva/gstreamer-1.0-android-universal-1.18.3 ifndef GSTREAMER_ROOT_ANDROID $(error GSTREAMER_ROOT_ANDROID is not defined!) endif ifeq ($(TARGET_ARCH_ABI),armeabi) GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7 else ifeq ($(TARGET_ARCH_ABI),arm64-v8a) GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64 else ifeq ($(TARGET_ARCH_ABI),x86) GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86 else ifeq ($(TARGET_ARCH_ABI),x86_64) GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64 else $(error Target arch ABI not supported: $(TARGET_ARCH_ABI)) endif GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/ include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk GSTREAMER_EXTRA_DEPS := gstreamer-player-1.0 gstreamer-video-1.0 glib-2.0 GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) \ $(GSTREAMER_PLUGINS_CODECS) \ $(GSTREAMER_PLUGINS_NET) \ rtsp rtp rtpmanager soup udp sdpelem srtp \ $(GSTREAMER_PLUGINS_SYS) \ $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) \ playback GSTREAMER_EXTRA_LIBS := -liconv include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk ------------------------------------------------------------------------------------------ Already tried removing plugins but so file size remains same. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Olivier Crête-3
Actual file size is 144 MB after release build and enabling manify and
shirinking resources flag my so file contains 70 MB. Any guidance about streapping tool? Please note that I am using gstreamer lib as a library project so I am not able to perform shrinking operation as it's library project I can add shirinking flag in main project ony. And as it's library project It's unable to reduce my so files more. I am performing ndk build operation while generating so files. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |