Finishing a Pipeline

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

Finishing a Pipeline

Andy_Milestone

Hello,

I am writing a streaming-client for audio and video based on gstreamer.
Well after some trouble its working...

The only thing, which I do not unsterstand is how I can finish the state
of the pipeline from PLAYING to PAUSE / NULL. Ok, I realised that its
possible to send a EOS-message via a time-out on the pipeline-bus and
than quit the G_MAIN_LOOP, but I want to stop the streaming with a key
stroke or something else.

Has somebody a hint for me?

Regards, Andreas



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

Re: Finishing a Pipeline

Stefan Sauer
On 07/26/11 16:33, Andy_Milestone wrote:

>
> Hello,
>
> I am writing a streaming-client for audio and video based on
> gstreamer. Well after some trouble its working...
>
> The only thing, which I do not unsterstand is how I can finish the
> state of the pipeline from PLAYING to PAUSE / NULL. Ok, I realised
> that its possible to send a EOS-message via a time-out on the
> pipeline-bus and than quit the G_MAIN_LOOP, but I want to stop the
> streaming with a key stroke or something else.

well, add a keypress handler in your ui toolkit. from there send the
eos-event and wait for eos message on the bus. then stop the pipeline.
there is no need to stop the mainloop though.

stefan

>
> Has somebody a hint for me?
>
> Regards, Andreas
>
>
>
> ------------------------------------------------------------
> Andreas
> [gesendet vom Handy]
> _______________________________________________
> 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: Finishing a Pipeline

Andy_Milestone
Thank you Stefan.

Andreas

Am 27.07.2011 15:55, schrieb Stefan Kost:

> On 07/26/11 16:33, Andy_Milestone wrote:
>>
>> Hello,
>>
>> I am writing a streaming-client for audio and video based on
>> gstreamer. Well after some trouble its working...
>>
>> The only thing, which I do not unsterstand is how I can finish the
>> state of the pipeline from PLAYING to PAUSE / NULL. Ok, I realised
>> that its possible to send a EOS-message via a time-out on the
>> pipeline-bus and than quit the G_MAIN_LOOP, but I want to stop the
>> streaming with a key stroke or something else.
>
> well, add a keypress handler in your ui toolkit. from there send the
> eos-event and wait for eos message on the bus. then stop the pipeline.
> there is no need to stop the mainloop though.
>
> stefan
>>
>> Has somebody a hint for me?
>>
>> Regards, Andreas
>>
>>
>>
>> ------------------------------------------------------------
>> Andreas
>> [gesendet vom Handy]
>> _______________________________________________
>> 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

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

Re: Finishing a Pipeline

Andy_Milestone
In reply to this post by Stefan Sauer
Well, my application is console-based. Which ui toolkit can I use to
implement keypress-handlers or user-input-handlers on the linux-console?
Can you please give me an advice, a link or framework/toolkit to look for.

Sorry for this newbie question.

Andreas

Am 27.07.2011 15:55, schrieb Stefan Kost:

> On 07/26/11 16:33, Andy_Milestone wrote:
>>
>> Hello,
>>
>> I am writing a streaming-client for audio and video based on
>> gstreamer. Well after some trouble its working...
>>
>> The only thing, which I do not unsterstand is how I can finish the
>> state of the pipeline from PLAYING to PAUSE / NULL. Ok, I realised
>> that its possible to send a EOS-message via a time-out on the
>> pipeline-bus and than quit the G_MAIN_LOOP, but I want to stop the
>> streaming with a key stroke or something else.
>
> well, add a keypress handler in your ui toolkit. from there send the
> eos-event and wait for eos message on the bus. then stop the pipeline.
> there is no need to stop the mainloop though.
>
> stefan
>>
>> Has somebody a hint for me?
>>
>> Regards, Andreas
>>
>>
>>
>> ------------------------------------------------------------
>> Andreas
>> [gesendet vom Handy]
>> _______________________________________________
>> 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

--
------------------------------------------------------------
Andreas Büttner
[gesendet vom Handy]
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel