not getting EOS in pipeline with two sources

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

not getting EOS in pipeline with two sources

Sakurazuka
This post was updated on .
Hello.

In my app I have pipeline with two sources:

filesrc->volume->mad->audioconvert\
       alsasrc->volume->audioconvert-> adder -> lame -> filesink

I want it to stop main loop when ile from filesrc ends (just like in hello world program).

I tried to put filesrc into separate pipeline then linking but still I get no EOF. Is there any other way?

EDIT:

To put it simple: I want to get EOS on pipeline when only one source of adder sends it. How should I do that?


Reply | Threaded
Open this post in threaded view
|

Re: not getting EOS in pipeline with two sources

Thiago Santos
On Thu, 2012-01-12 at 08:14 -0800, Sakurazuka wrote:

> Hello.
>
> In my app I have pipeline with two sources:
>
> filesrc->volume->mad->audioconvert\
>        alsasrc->volume->audioconvert-> adder -> lame -> filesink
>
> I want it to stop main loop when ile from filesrc ends (just like in hello
> world program).
>
> I tried to put filesrc into separate pipeline then linking but still I get
> no EOF. Is there any other way?

You can add an event probe on filesrc's pad, when you get the EOS on the
probe, you push an EOS event on alsasrc (gst_element_send_event IIRC) to
make it stop. Then you wait for the pipeline's EOS message to stop the
pipeline.

--
Thiago

>
>
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/not-getting-EOS-in-pipeline-with-two-sources-tp4289494p4289494.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: not getting EOS in pipeline with two sources

Sakurazuka
Thank you!

Event probe was exactly what I needed. You were a great help