[gst-embedded] How to reduce gstreamer library size & startuptime

Zhao Liang-E3423C E3423C at motorola.com
Thu Feb 28 01:23:40 PST 2008


Manish,
 
As I said in my first mail, I did it 
1. disable many unused features
2. disable debug/trace
3. use binary registry or not use registry
4. disable runtime check
most of changes are removing unused modules, it can reduce library obviously.
 
gstreamer is flexible and easy configuable, I think you can use configure options or even your own marco to remove your unused.
 
For performance, gstreamer core is just a part of whole performance, and most of it is represented at initialize, such as gst_init(), by my experience, gst_init does all initialization that gstreamer needs, but I think your application may not need all these features. Core elements library is also big, maybe some elements are not needed by yours. Your plugin performance is also very important, I think its impact is bigger than core's.
 
I think gstreamer can be optimized better, if you can share your trying, I think we can do it better.  
 

Best Regards
Zhao Liang 赵 亮
Tel:86-10-84733698
No.1 Wang Jing East Road, Chao Yang District, Beijing, China 100102 
北京市朝阳区望京东路1号, 100102

 

 

________________________________

From: gstreamer-embedded-bounces at lists.sourceforge.net [mailto:gstreamer-embedded-bounces at lists.sourceforge.net] On Behalf Of Manish Rana
Sent: Thursday, February 28, 2008 1:56 PM
To: Zhao Liang-E3423C
Cc: gstreamer-embedded at lists.sourceforge.net
Subject: Re: [gst-embedded] How to reduce gstreamer library size & startuptime


Hi Zhao, 

If you could please tell the methods and options used by you to reduce the size and increase the performance in details.
I am also working on the same but could not achieve it to any grate extent.

Your inputs can change the way i am trying.

Please help.

Thanks and Regards
Manish Kumar


On Thu, Feb 28, 2008 at 7:20 AM, Zhao Liang-E3423C <E3423C at motorola.com> wrote:


	Hi all,
	
	As I am working on embedded device, my device has low cpu power, but  I
	want to develop some applications, such as ringtone, which needs to
	launch gstreamer quickly.
	I find if we don't do any library cutting down, the gstreamer core
	library is big, about 700-800 KB, but that will not match my
	requirement, the time cost on loading library is long.
	Another issue is that gst_init() cost much time.
	
	So my goal is to make the best of  reducing gstreamer library size and
	gst_init() time.
	
	For library size cutting down, I have tried some ways, such as
	1. disable many unused features
	2. disable debug
	3, not use xml registry etc
	at last, the core library size is about 350KB
	
	For gst_init(), I also did some tunning on startup options, such as
	"disable option parsing" etc.
	
	But I think it is not the best that gstreamer can reach, maybe there are
	many other ways to do these, so if we can share our experience, I think
	we can get better result.
	
	Appreciate for your comments and reply.
	
	thanks
	
	
	Best Regards
	Zhao Liang
	
	-------------------------------------------------------------------------
	This SF.net email is sponsored by: Microsoft
	Defy all challenges. Microsoft(R) Visual Studio 2008.
	http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
	_______________________________________________
	Gstreamer-embedded mailing list
	Gstreamer-embedded at lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20080228/308bd3c8/attachment.htm>


More information about the Gstreamer-embedded mailing list