[gst-devel] Mem Usage - Video capture

Thomas Vander Stichele thomas at apestaart.org
Fri Sep 22 11:59:51 CEST 2006


On Thu, 2006-09-21 at 17:52 +0000, Pavan Kumar Patale wrote:
> Hi,
> 
> When i tried to perform videocapture with IBM PC webcam on my desktop and 
> same time view what was getting captured i observed that image on the 
> xvimagesink window moved bit slowly.
> Just to get a perspective of memory usage by Gstreamer i have collected some 
> data.
> If we compare first command with the last command there is difference of
> 10416K i.e. approximately 10MB.

Some notes:

- you mention two problems.  One is slow window movement.  The other is
memory usage.  Then you list a bunch of numbers and it's unclear to me
what the numbers are in support of and to which of the two problems they
relate

- top is not a very accurate way to track memory usage.  You should look
into other tools, like the ones in the valgrind suite.

- tell me what you conclude from the numbers you post below, it will
allow us to give a reply more quickly.

Thomas

> 
> Is there any way to reduce this ?  Pls let me know your expert comments.
> 
> Thanks,
> Pavan.
> 
> Initially with out any activity the top command shows:-
> 
> Mem:    254116k total,   247656k used,     6460k free,     4456k buffers
> 
> With only viewing in xvimagesink window:-
> ---------------------------------------------------------
> gst-launch-0.10 v4lsrc ! ffmpegcolorspace ! tee name=t t.src0 ! xvimagesink
> 
> Mem:    254116k total,   249332k used,     4784k free,     4312k buffers
> %CPU  %MEM
> 3.7           1.4
> 
> 
> Viewing in xvimagesink window + writing raw video into file:-
> -----------------------------------------------------------------------------------
> gst-launch-0.10 v4lsrc ! ffmpegcolorspace ! tee name=t t.src0 ! xvimagesink 
> t.src1 ! queue ! filesink location=1.raw
> 
> Mem:    254116k total,   238172k used,    15944k free,     5708k buffers
> %CPU  %MEM
> 1.7          1.4
> 
> Viewing in xvimagesink window + encode video + mux + write to file:-
> --------------------------------------------------------------------------------------------
> gst-launch-0.10 oggmux name=mux ! filesink location=1.ogg v4lsrc ! 
> ffmpegcolorspace ! tee name=t t.src0 ! xvimagesink t.src1 ! queue ! 
> theoraenc ! mux.
> 
> Mem:    254116k total,   237544k used,    16572k free,     5560k buffers
> %CPU %MEM
> 12.6 2.6
> 
> 
> Viewing in xvimagesink window + encode video + encode audio + mux + write to 
> file:-
> ------------------------------------------------------------------------------------------------------------------
> $ gst-launch-0.10 oggmux name=mux ! filesink location=1.ogg v4lsrc ! 
> ffmpegcolorspace ! tee name=t    t.src0 ! xvimagesink t.src1 ! queue ! 
> theoraenc ! mux. alsasrc ! audioconvert ! vorbisenc ! mux.
> 
> Mem:    254116k total,   238916k used,    15200k free,     5384k buffers
> %CPU %MEM
> 14.3 3.5
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list