Using playbin2 causes high CPU load on embedded system

Icarus Alive icarus.alive at gmail.com
Thu Oct 13 20:26:44 PDT 2011


On Wed, Oct 12, 2011 at 1:03 PM, Edward Hervey <bilboed at gmail.com> wrote:
>  Could you profile *where* the extra cpu usage is being consumed ? This
> much overhead (2 times) is unusual.

Thinking again (harder this time), those nos. were for a test I did
over 4-5 months back, and there is a chance of misreporting the exact
difference, as there were quite a few tests we did. However, the diff
was still significant (at least 10-20%).

>  You can use "valgrind --tool=callgrind" for example (with
> synchronization disabled on the sinks so as to not have the pipeline
> have QoS kick in).

Not sure how to disable sync on the sinks. Is it one of the properties ?

>  Also, what audio/video sinks are being selected by playbin2 ? (you can
> see it with gst-launch-0.10 -v playbin2 ....).
>
>  What does your 'non-playbin' pipeline look like ?

Will share the graph when I have access to the test-bed again.

>  Finally ... the VM might also be introducing some side effects

This is indeed what I'd suspected. Had tried to minimise use of host
machine, and apart from possibly a notepad being open and background
services, the VM was pretty much all that was running.

> On Wed, 2011-10-12 at 00:41 +0530, Icarus Alive wrote:
>> On Tue, Oct 11, 2011 at 6:56 PM, M. Amirul Syahmi
>> <amirulsyahmi at gmail.com> wrote:
>> > Try to play it using Hardware accleration
>>
>> That might help, assuming your system has HW-acceleration. Also, I've
>> found that some non-gst based apps (e.g. vlc) plays a media
>> file/stream lot more smoothly than a gst pipeline, without
>> HW-acceleration. Tested in a Virtualbox setup with HW acceleration
>> disabled in guestOS.
>>
>> > On Tue, Oct 11, 2011 at 9:17 PM, stuart68 <stuart68 at gmail.com> wrote:
>> >>
>> >> Hi
>> >>
>> >> I added the following flags to help, but it was still not enough:
>> >>
>> >>        g_object_set(G_OBJECT(playBin),
>> >>                        "buffer-size", 150000,
>> >>                        "flags", 0x02,
>> >>                        NULL);
>> >>
>> >> This helps to reduce the memory being used, but there is nothing I have
>> >> found that helps to reduce CPU load.
>> >>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> 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