[gst-devel] Mem Usage - Video capture

Pavan Kumar Patale pavanpatale at hotmail.com
Thu Sep 21 19:52:15 CEST 2006


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.

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






More information about the gstreamer-devel mailing list