correct usage of elements 'tee' and 'output-selector'

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

correct usage of elements 'tee' and 'output-selector'

sk_gst
I have the following pipelines :

1. gst-launch-1.0 videotestsrc ! tee  name=t  ! glimagesink t. !
fpsdisplaysink

2. gst-launch-1.0 videotestsrc ! output-selector  name=ops  ! glimagesink
ops. !  fpsdisplaysink

When I run these pipelines, I see the following behaviour:

1. For pipe1 : two render windows are displayed and the video is freezed in
one window(opengl renderer), and the other rendering window is black.
2. For pipe2 : one render window is displayed and the video is freezed

I was expecting to see a continuous video stream in both the cases.
Could anyone tell me where I am going wrong with this?  There are also not
many examples of using output-selector. Can anyone provide me some examples
of using the output-selector, wherein I want to switch the output based on
user-input.

Regards.



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

Re: correct usage of elements 'tee' and 'output-selector'

KrzychuZ
I might be wrong because I'm new to GStreamer but the first thing I would do
is adding queue before glimagesink and before fpsdisplaysink



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

Re: correct usage of elements 'tee' and 'output-selector'

Ian Davidson
In reply to this post by sk_gst
Certainly, in the case of pipeline 1, you want a queue after the tee and
before both glimagesink and fpsdisplaysink.

A queue would probably help in the other pipeline too.


On 12/09/18 10:47, vk_gst wrote:

> I have the following pipelines :
>
> 1. gst-launch-1.0 videotestsrc ! tee  name=t  ! glimagesink t. !
> fpsdisplaysink
>
> 2. gst-launch-1.0 videotestsrc ! output-selector  name=ops  ! glimagesink
> ops. !  fpsdisplaysink
>
> When I run these pipelines, I see the following behaviour:
>
> 1. For pipe1 : two render windows are displayed and the video is freezed in
> one window(opengl renderer), and the other rendering window is black.
> 2. For pipe2 : one render window is displayed and the video is freezed
>
> I was expecting to see a continuous video stream in both the cases.
> Could anyone tell me where I am going wrong with this?  There are also not
> many examples of using output-selector. Can anyone provide me some examples
> of using the output-selector, wherein I want to switch the output based on
> user-input.
>
> Regards.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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: correct usage of elements 'tee' and 'output-selector'

sk_gst
Hello,

You are correct, with the queue element placed in pipeline 1, I could see a
continuous video stream.
However, with the output selector, there is no change in output. It still
displays a paused video right from the beginning.
Any pointers for pipelines with output-selectors??



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

Re: correct usage of elements 'tee' and 'output-selector'

Daniel Sperka
The input-selector has a property "active-pad". All pads except for the "active-pad" are blocked/paused. I believe you set this property to change to a different input. 

Dan

On Wed, Sep 12, 2018 at 4:19 AM vk_gst <[hidden email]> wrote:
Hello,

You are correct, with the queue element placed in pipeline 1, I could see a
continuous video stream.
However, with the output selector, there is no change in output. It still
displays a paused video right from the beginning.
Any pointers for pipelines with output-selectors??



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Daniel J. Sperka, Ph. D.
UC Davis Center for Neuroscience

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

Re: correct usage of elements 'tee' and 'output-selector'

sk_gst
Hi Daniel,

I am using the output-selector.
Whats the correct syntax of setting the property 'active pad' for
output-selector in the command line?

I was able to set it using a python script(although the output was same)
where I get the srcpad and then link. But what would be the correct way to
do it via the command line?


Regards



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

Re: correct usage of elements 'tee' and 'output-selector'

Daniel Sperka
Oh duh. output-selector, not input-selector. I'm sorry, didn't read very carefully.

On Thu, Sep 13, 2018 at 8:43 AM vk_gst <[hidden email]> wrote:
Hi Daniel,

I am using the output-selector.
Whats the correct syntax of setting the property 'active pad' for
output-selector in the command line?

I was able to set it using a python script(although the output was same)
where I get the srcpad and then link. But what would be the correct way to
do it via the command line?


Regards



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Daniel J. Sperka, Ph. D.
UC Davis Center for Neuroscience

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