rtspsrc cpu optimization

Eloi Bail eloi.bail at gmail.com
Tue Oct 28 10:24:06 PDT 2014


On Fri, Oct 24, 2014 at 5:00 AM, Tim Müller <tim at centricular.com> wrote:
> If you can upgrade your GLib version to 2.42.x, or apply the patches
> from this bug:
>
> https://bugzilla.gnome.org/show_bug.cgi?id=730807
>
> that might give you some easy performance improvements already.
Thanks for your help. I switched to glib 2.42.0 and do not see significant
CPU improvement so far.

I remade some perf stat measures  (*http://fpaste.org/145793/50742514/
<http://fpaste.org/145793/50742514/>*)
You can see that the whole pipeline context switch is 0.005 M/sec. udpsrc
(RTP packets reader) take 0.004 M/sec.

Using perf top again I do not see any particular function consuming CPU (
see *http://fpaste.org/145795/45076731/
<http://fpaste.org/145795/45076731/>*) Do you agree with that ?
Adding a small sleep allow me to save 4-5% on udpsrc (see patch in
attachment).

I checked the resulting mkv file. No frames are dropped using the
workaround. I would like to avoid the use of sleep but it looks like I do
not have other simpler solution for the moment.

Please feel free to advice me.
Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141028/4aedfaa7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-basesrc-workaround-to-save-CPU-in-udpsrc.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141028/4aedfaa7/attachment.bin>


More information about the gstreamer-devel mailing list