Is it possible to "split" a pipeline in 2 and have it going trough different paths?

Tim-Philipp Müller t.i.m at zen.co.uk
Sun Jun 30 12:30:47 PDT 2013


On Sun, 2013-06-30 at 12:21 -0700, cedivad wrote:

> Is it possible to do something like:
> 
> 1) read source (/dev/video0 webcam)
> 2) little color conversion (ffmpegcolorspace)
> 3) split the pipeline in 2: pipeline.1 and pipeline.2
> 
> 4a) encode pipeline.1 to h264/720p and save it to a file
> 4b) encode pipeline.2 to h264/480p and stream it over the internet

> (i can't use the same pipeline and encode it to 720p first and 480p after, i
> don't have enough processing power).

Yes,

  .... ! tee name=t  \
      t. ! queue ! ....path1 ...  \
      t. ! queue ! ....path2 ...

but the pipeline you suggest still encodes both paths at the same time
if I'm not mistaken?

Cheers
 -Tim



More information about the gstreamer-devel mailing list