What is 'streaming thread'?

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

What is 'streaming thread'?

wl2776
Administrator
This terms is met in many places of the GStreamer documentation, but I can't find its strict definition.
So, what is it, exactly? Or, please, point to the definition.
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

Tim-Philipp Müller-2
On Thu, 2011-01-13 at 00:24 -0800, wl2776 wrote:

> This terms is met in many places of the GStreamer documentation, but I can't
> find its strict definition.
> So, what is it, exactly? Or, please, point to the definition.

Any thread not created by the application, but by GStreamer. Often used
as 'streaming thread' (in which dataflow happens) vs. 'application
thread' (in which things like property setting/getting is usually done,
and state changes). There are usually multiple streaming threads in a
typical GStreamer pipeline. For application writers it rarely matters
which one it is exactly though, just that it's a different thread than
the main application's thread.

Cheers
 -Tim


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

Parveen Kumar Jain
Hi Tim,
 Just a small cross question on this:
 How one can control these no. of threads creation on a single
pipeline ? or if I put it in another way, how these threads get
created in gstreamer ?
e.g. does it depend on the no. of "elements" in a single pipeline or
some other factor matters.

Regards,
Parveen Jain


On Thu, Jan 13, 2011 at 3:14 PM, Tim-Philipp Müller <[hidden email]> wrote:

> On Thu, 2011-01-13 at 00:24 -0800, wl2776 wrote:
>
>> This terms is met in many places of the GStreamer documentation, but I can't
>> find its strict definition.
>> So, what is it, exactly? Or, please, point to the definition.
>
> Any thread not created by the application, but by GStreamer. Often used
> as 'streaming thread' (in which dataflow happens) vs. 'application
> thread' (in which things like property setting/getting is usually done,
> and state changes). There are usually multiple streaming threads in a
> typical GStreamer pipeline. For application writers it rarely matters
> which one it is exactly though, just that it's a different thread than
> the main application's thread.
>
> Cheers
>  -Tim
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Parveen Jain
Technical Lead – Network Engineering
One97 Communications (P) Ltd
B121, Sector 5, Noida, UP 201301
P:  + 91 120 4770770      Extn:352
M: + 91   9212708203
W: www.one97world.com

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

wl2776
Administrator
Parveen Kumar Jain wrote
 How one can control these no. of threads creation on a single
pipeline ? or if I put it in another way, how these threads get
created in gstreamer ?
This is covered in the docs.
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-threads.html
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-messages.txt  - GST_MESSAGE_STREAM_STATUS
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

wl2776
Administrator
In reply to this post by Tim-Philipp Müller-2
Thanks.

Also, do the terms 'streaming thread' and 'streaming task' have the same meaning?

Tim-Philipp Müller-2 wrote
> This term is met in many places of the GStreamer documentation, but I can't
> find its strict definition.
> So, what is it, exactly? Or, please, point to the definition.

Any thread not created by the application, but by GStreamer. Often used
as 'streaming thread' (in which dataflow happens) vs. 'application
thread' (in which things like property setting/getting is usually done,
and state changes).
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

Tim-Philipp Müller-2
On Thu, 2011-01-13 at 03:02 -0800, wl2776 wrote:

> Also, do the terms 'streaming thread' and 'streaming task' have the same
> meaning?

Yes (see the GstTask API which is convenience API for starting/stopping
threads in a GStreamer context).

Cheers
 -tim


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

timothe jahan
In reply to this post by wl2776
Hi,
After reading the doc on the thread (few weeks ago) I still had a question on multithreading for which I did not found the answer in the doc.
Does some plugin have their own multithreading capability ?
My interest is for the x264 encoder. Multithreading of the h264 encoding process is a mandatory thing as soon as you do live encoding.

If anybody knows about this...

Regards,
Timothe

On Thu, Jan 13, 2011 at 11:54 AM, wl2776 <[hidden email]> wrote:


Parveen Kumar Jain wrote:
>
>  How one can control these no. of threads creation on a single
> pipeline ? or if I put it in another way, how these threads get
> created in gstreamer ?
>

This is covered in the docs.
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-threads.html
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-messages.txt
- GST_MESSAGE_STREAM_STATUS

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/What-is-streaming-thread-tp3215407p3215629.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

wl2776
Administrator
timothe jahan wrote
After reading the doc on the thread (few weeks ago) I still had a question
on multithreading for which I did not found the answer in the doc.
Does some plugin have their own multithreading capability ?
It depends on the plugin. For example, mpeg2 PS demuxer has.

timothe jahan wrote
My interest is for the x264 encoder. Multithreading of the h264 encoding
process is a mandatory thing as soon as you do live encoding.
You could search the source code for GstTask or GThread.
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

Tim-Philipp Müller-2
In reply to this post by timothe jahan
On Thu, 2011-01-13 at 12:55 +0100, timothe jahan wrote:

> Does some plugin have their own multithreading capability ?
> My interest is for the x264 encoder. Multithreading of the h264
> encoding process is a mandatory thing as soon as you do live encoding.

This is done at the x264 library level and hidden from both GStreamer
and the application (but configurable of course, see gst-inspect
x264enc).

Cheers
 -Tim



------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What is 'streaming thread'?

timothe jahan
Thank you both for your fast and accurate answers

Regards,
Timothe

On Thu, Jan 13, 2011 at 3:14 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Thu, 2011-01-13 at 12:55 +0100, timothe jahan wrote:

> Does some plugin have their own multithreading capability ?
> My interest is for the x264 encoder. Multithreading of the h264
> encoding process is a mandatory thing as soon as you do live encoding.

This is done at the x264 library level and hidden from both GStreamer
and the application (but configurable of course, see gst-inspect
x264enc).

Cheers
 -Tim



------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel