Is gstreamer thread heavy?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Is gstreamer thread heavy?

test app
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is gstreamer thread heavy?

Jan Alexander Steffens
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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is gstreamer thread heavy?

Sankar,Aswin Pranav

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?


From: gstreamer-devel <[hidden email]> on behalf of Jan Alexander Steffens <[hidden email]>
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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is gstreamer thread heavy?

Nicolas Dufresne-5


> Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <[hidden email]> 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 <[hidden email]> on behalf of Jan Alexander Steffens <[hidden email]>
> > 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 <[hidden email]> 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
> >> [hidden email]
> >> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is gstreamer thread heavy?

Aswin Pranav
Thanks. If I am using a profiler to profile these threads, is there any way I can manually give names to these threads? Many threads in the profiler report simply don't have a name!

On Wed, 15 Jun 2016 at 19:33 Nicolas Dufresne <[hidden email]> wrote:


> Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <[hidden email]> 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 <[hidden email]> on behalf of Jan Alexander Steffens <[hidden email]>
> > 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 <[hidden email]> 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
> >> [hidden email]
> >> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is gstreamer thread heavy?

Nicolas Dufresne-5


Le 16 juin 2016 5:36 PM, "Aswin Pranav" <[hidden email]> a écrit :
>
> Thanks. If I am using a profiler to profile these threads, is there any way I can manually give names to these threads? Many threads in the profiler report simply don't have a name!

Threads are named after the element that own it. All element have unique names but default. As of my experience, it show up perfectly well in perf.

>
> On Wed, 15 Jun 2016 at 19:33 Nicolas Dufresne <[hidden email]> wrote:
>>
>>
>> > Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <[hidden email]> 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 <[hidden email]> on behalf of Jan Alexander Steffens <[hidden email]>
>> > > 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 <[hidden email]> 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
>> > >> [hidden email]
>> > >> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> > >
>> > >
>> > > _______________________________________________
>> > > gstreamer-devel mailing list
>> > > [hidden email]
>> > > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> > >
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel