Appsink into appsrc, then that appsrc into appsink. Pipeline stalled

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

Appsink into appsrc, then that appsrc into appsink. Pipeline stalled

dbousamra2
I'm trying to understand what is going on here. Here is a minimum example
showing the issue:
https://gist.github.com/dbousamra/cbd5c241ce66826caf99972d06caf740

Notice I have a src -> appsink. That appsink then pulls the sample and
forwards it to an appsrc. I want that appsrc to send to another appsink. I
figured linking would work, but it appears not. Do I have to link the pads
manually or something?

It's a contrived example I know.



--
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: Appsink into appsrc, then that appsrc into appsink. Pipeline stalled

Michael Gruner
This may because of prerolling. A GStreamer pipeline only completes its transition to playing until all the sink elements have received a buffer. I believe this is impossible in your pipeline.

Try setting “async=FALSE” in your second appsink.

Michael
www.ridgerun.com

> On May 13, 2019, at 14:22, dbousamra2 <[hidden email]> wrote:
>
> I'm trying to understand what is going on here. Here is a minimum example
> showing the issue:
> https://gist.github.com/dbousamra/cbd5c241ce66826caf99972d06caf740
>
> Notice I have a src -> appsink. That appsink then pulls the sample and
> forwards it to an appsrc. I want that appsrc to send to another appsink. I
> figured linking would work, but it appears not. Do I have to link the pads
> manually or something?
>
> It's a contrived example I know.
>
>
>
> --
> 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: Appsink into appsrc, then that appsrc into appsink. Pipeline stalled

dbousamra2
Thanks for the quick reply.

What you are saying about prerolling makes sense. Setting async=false on the
2nd appsink doesn't help. I added the messages from the bus to the gist if
it helps.



--
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: Appsink into appsrc, then that appsrc into appsink. Pipeline stalled

dbousamra2
In reply to this post by Michael Gruner
My bad. I set the async=false on the wrong sink. This has fixed it. Thanks!
Time to read up on what async does.



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