<p dir="ltr"><br>
Le 16 juin 2016 5:36 PM, "Aswin Pranav" <<a href="mailto:aswin2pranav@gmail.com">aswin2pranav@gmail.com</a>> a écrit :<br>
><br>
> 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!</p>
<p dir="ltr">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.</p>
<p dir="ltr">><br>
> On Wed, 15 Jun 2016 at 19:33 Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br>
>><br>
>><br>
>> > Le 2016-06-15 16:03, "Sankar,Aswin Pranav" <<a href="mailto:apsankar@ufl.edu">apsankar@ufl.edu</a>> a écrit :<br>
>> > ><br>
>> > > 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?<br>
>> ><br>
>><br>
>> 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.<br>
>><br>
>> Nicolas<br>
>><br>
>><br>
>> ><br>
>> > ><br>
>> > > ________________________________<br>
>> > > From: gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org">gstreamer-devel-bounces@lists.freedesktop.org</a>> on behalf of Jan Alexander Steffens <<a href="mailto:jan.steffens@gmail.com">jan.steffens@gmail.com</a>><br>
>> > > Sent: Tuesday, June 14, 2016 5:44:55 PM<br>
>> > > To: Discussion of the development of and with GStreamer<br>
>> > > Subject: Re: Is gstreamer thread heavy?<br>
>> > >  <br>
>> > > In the simplest case, the pipeline will spawn one thread.<br>
>> > ><br>
>> > > 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.<br>
>> > ><br>
>> > > On Tue, Jun 14, 2016 at 9:11 PM test app <<a href="mailto:testacct9111@gmail.com">testacct9111@gmail.com</a>> wrote:<br>
>> > >><br>
>> > >> 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.<br>
>> > >> _______________________________________________<br>
>> > >> gstreamer-devel mailing list<br>
>> > >> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> > >> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>> > ><br>
>> > ><br>
>> > > _______________________________________________<br>
>> > > gstreamer-devel mailing list<br>
>> > > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>> > ><br>
>><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
</p>