udpsrc performance

parag.salasakar salasakar at gmail.com
Fri Jul 6 06:39:10 PDT 2012


Hi

It seems udpsrc/gstrtpjitterbuffer allocate buffers which could be just
byte aligned.
Is there any way I can allocate all buffers (in good plugins) say 4/8/16
byte aligned)?

Like we have HAVE_POSIX_MEMALIGN in gstreamer core, anything similar for
good plugins?

Regards,

Parag

On Wed, Jul 4, 2012 at 3:38 PM, Edward Hervey [via GStreamer-devel] <
ml-node+s966125n4655484h51 at n4.nabble.com> wrote:

> On Wed, 2012-07-04 at 00:01 -0700, parag.salasakar wrote:
> > Hi
> >
> > Thanks for the suggestion.
> >
> > I tried it with udpsrc properties blocksize=50000 buffer-size=50000,
> > but observed same issue (udpsrc taking 35-40%)
> >
> > Does your suggestion mean that I have to modify source code for udpsrc
> > plugin which allocates buffer-pool and re-use them?
>
>   Yes
>
> >
> > Regards,
> >
> > Parag
> >
> > On Mon, Jul 2, 2012 at 8:36 PM, Edward Hervey [via GStreamer-devel]
> > <[hidden email]> wrote:
> >         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
> >         > [hidden email]
> >         >
> >         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >         _______________________________________________
> >         gstreamer-devel mailing list
> >         [hidden email]
> >         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >
> >         ______________________________________________________________
> >         If you reply to this email, your message will be added to the
> >         discussion below:
> >
> http://gstreamer-devel.966125.n4.nabble.com/udpsrc-performance-tp4655463p4655464.html
>
> >         To unsubscribe from udpsrc performance, click here.
> >         NAML
> >
> >
> >
> > ______________________________________________________________________
> > View this message in context: Re: udpsrc performance
> > Sent from the GStreamer-devel mailing list archive at Nabble.com.
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4655484&i=0>
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4655484&i=1>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gstreamer-devel.966125.n4.nabble.com/udpsrc-performance-tp4655463p4655484.html
>  To unsubscribe from udpsrc performance, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4655463&code=c2FsYXNha2FyQGdtYWlsLmNvbXw0NjU1NDYzfDE4ODY0Mzk3MTI=>
> .
> NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/udpsrc-performance-tp4655463p4655518.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120706/f98481fa/attachment-0001.html>


More information about the gstreamer-devel mailing list