Is gstreamer thread heavy?
Nicolas Dufresne
nicolas at ndufresne.ca
Thu Jun 16 02:33:49 UTC 2016
> Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <apsankar at ufl.edu> a écrit :
> >
> > Who decides this number of threads? For example, you say that playbin
has 3 threads. Why? Is the playbin plugin written that way? So the number
of threads is not decided by the framework but rather by the plugin?
>
The number of threads depend on the type of element used. All source
elements that runs in push mode host a thread. All demuxer that pulls from
sources will run a thread, all queues will introduce a thread.
Additionally, external libraries may also add a threads for parallel
processing, along with live mixers. The number of thread will entirely
depend on the pipeline the playbin need to construct,and the depends on
what is going to be played. Often, playing from local files require as low
as 3-4 threads.
Nicolas
>
> >
> > ________________________________
> > From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org>
on behalf of Jan Alexander Steffens <jan.steffens at gmail.com>
> > Sent: Tuesday, June 14, 2016 5:44:55 PM
> > To: Discussion of the development of and with GStreamer
> > Subject: Re: Is gstreamer thread heavy?
> >
> > In the simplest case, the pipeline will spawn one thread.
> >
> > The more usual case (playbin) has one thread reading in the data, one
thread per decoder and one thread per output device. In your case, three
threads.
> >
> > On Tue, Jun 14, 2016 at 9:11 PM test app <testacct9111 at gmail.com> wrote:
> >>
> >> i am new to gst. I heard it needs very high number of threads. For a
simple playback pipeline with .mp4 with video only decode, how many threads
does it roughly require? in general, appreciate your expert insight into
thread heaviness of gstreamer.
> >> _______________________________________________
> >> gstreamer-devel mailing list
> >> gstreamer-devel at lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160615/692c8aa4/attachment.html>
More information about the gstreamer-devel
mailing list