Re : Re: Playbin -> play audio and video + record it to a file

stic at stic at
Wed Apr 9 23:50:08 PDT 2014

Well i need to record to a file while video and audio is played, mainly for live streams ...
I am still stuck with my case and the code sample I sent.
Any idea ?

----- Mail d'origine -----
De: Sebastian Dröge <sebastian at>
À: Discussion of the development of and with GStreamer <gstreamer-devel at>
Envoyé: Wed, 09 Apr 2014 08:20:23 +0200 (CEST)
Objet: Re: Playbin -> play audio and video + record it to a file

On Di, 2014-04-08 at 10:22 +0200, stic at wrote:
> Ok, i've never heard about inter elements but I've just seen it exists.
> Is there any documentation or an example somewhere that explains how to use it ? Are there any constraints using this ?

You create a sink and source of the same type and set the same channel
on them. The source then acts as a live source that provides whatever
the sink currently receives.

> Or would it be better (or less ugly ?) if I use a decodebin instead of playbin ?

Depends on what you want to do :) For the displaying part playbin is
obviously better, but your use case is not really something playbin was
made for.

Sebastian Dröge, Centricular Ltd -
Expertise, Straight from the Source

More information about the gstreamer-devel mailing list