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 |
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:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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. > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |