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

stic at free.fr stic at free.fr
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 ?
Thanks

----- Mail d'origine -----
De: Sebastian Dröge <sebastian at centricular.com>
À: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
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 free.fr 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 - http://www.centricular.com
Expertise, Straight from the Source



More information about the gstreamer-devel mailing list