Adding a Tee element to the playbin

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

Adding a Tee element to the playbin

Andoni Morales
Hi!

I'm wondering how can I do to add a Tee element to a playbin in C. What
I need is it to get a duplicated stream from the playbin so I can
connect it to an encoder bin and encode it at the same time I'm playing
it. I also would like to know where do I have to insert this tee. Just
before the source sink of the playbin or better after the audio/video
demuxer?


Thanks,
        Andoni Morales


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Adding a Tee element to the playbin

Iñigo Illán Aranburu
You have 2 properties on the playbin element. This are audio-sink and
video-sink. You can insert the tees using those properties.


On jue, 2008-02-07 at 17:05 +0100, Andoni Morales Alastruey wrote:

> Hi!
>
> I'm wondering how can I do to add a Tee element to a playbin in C. What
> I need is it to get a duplicated stream from the playbin so I can
> connect it to an encoder bin and encode it at the same time I'm playing
> it. I also would like to know where do I have to insert this tee. Just
> before the source sink of the playbin or better after the audio/video
> demuxer?
>
>
> Thanks,
> Andoni Morales
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Adding a Tee element to the playbin

cristian
Try this to play and record in the same time :

 gst-launch filesrc location=./01_atb_-_humanity.mp3 ! decodebin ! tee name=t ! queue ! autoaudiosink t. ! queue ! audioc ! audioresample ! wavenc ! filesink location=~/Desktop/bere.wav

Hope this is what you are looking for.

Cristian
Reply | Threaded
Open this post in threaded view
|

Re: Adding a Tee element to the playbin

cristian
In reply to this post by Iñigo Illán Aranburu
Try this to play and record in the same time :

 gst-launch filesrc location=./01_atb_-_humanity.mp3 ! decodebin ! tee name=t ! queue ! autoaudiosink t. ! queue ! audioc ! audioresample ! wavenc ! filesink location=~/Desktop/bere.wav

Hope this is what you are looking for.

Cristian