videoscale increases the CPU usage upto 85% from 50-55%

Who AmI get2jils at gmail.com
Wed Apr 22 07:25:46 PDT 2015


Dear All,

I am using mixure to get the effect of PIP.

At Client side i m using below pipeline.

pipeline = gst_parse_launch(" udpsrc port=5001 ! application/x-rtp,
encoding-name=(string)H264, payload=(int)96, clock-rate=(int)90000  !
rtph264depay ! h264parse  ! vtdec   ! glvideomixer name=mix
sink_1::xpos=480 sink_1::ypos=360 sink_1::zorder=3  ! videoconvert !
glimagesink sync=false udpsrc port=5000 !application/x-rtp,
encoding-name=(string)H264, payload=(int)96, clock-rate=(int)90000  !
rtph264depay !  h264parse  ! vtdec   !  videoscale ! video/x-raw,
width=160, height=120 ! mix.", &error);

When i use videoscale as in the above pipeline, the instrumentation in
Xcode shows 85% of CPU usage, where as if i remove the videoscale ie:


pipeline = gst_parse_launch(" udpsrc port=5001 ! application/x-rtp,
encoding-name=(string)H264, payload=(int)96,
clock-rate=(int)90000  !  rtph264depay ! h264parse  ! vtdec   !
glvideomixer name=mix  sink_1::xpos=480 sink_1::ypos=360
sink_1::zorder=3  ! videoconvert ! glimagesink sync=false udpsrc port=5000
!application/x-rtp, encoding-name=(string)H264, payload=(int)96,
clock-rate=(int)90000  ! rtph264depay !  h264parse  ! vtdec   ! mix.",
&error);

then CPU usage dropped into 50 to 55% approximately.


The issue is when videoscale is used, the video has lots of patches..

What is the best approach to attain video scaling without affecting the
streaming performance?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150422/e2f6c8bd/attachment.html>


More information about the gstreamer-devel mailing list