udpsrc performance

Edward Hervey bilboed at gmail.com
Mon Jul 2 08:05:26 PDT 2012


Hi,

On Mon, 2012-07-02 at 07:45 -0700, parag.salasakar wrote:
> Hi
> 
> I am trying to decode MPEG2TS bistream with following pipeline

  I am assuming this is GStreamer 0.10

> 
> gst-launch -v udpsrc port=5004 caps="application/x-rtp, clock-rate=90000,
> media=(string)video" ! gstrtpjitterbuffer ! queue ! rtpmp2tdepay !
> mpegtsdemux ! queue ! ffdec_mpegvideo ! videoscale ! ffmpegcolorspace !
> autovideosink on my DSP  platform
> 
> However i noticed that when I try 
> 
> gst-launch -v udpsrc port=5004 caps="application/x-rtp, clock-rate=90000,
> media=(string)video" ! fakesink silent=1 
> 
> CPU utilization goes to 35% to 40% for 4 Mbps streams, which sounds weired
> to me (how can just udpsrc take 35% of CPU?) 
> AM I missing anything?

  This is due to the overhead of creating/destroying plenty of small
GstBuffers. A solution would be to create a bufferpool and re-use
GstBuffers.

    Edward

> Parag
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/udpsrc-performance-tp4655463.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list