Gst-launch connecting all available pads of an element

Hi,

I’m trying to connect multiple pads of an element to another but I wasn’t able to construct a gst-launch command-line to connect all pads of qtdemux to an element like mp4mux.

What I’ve tried is the following command-line:

gst-launch-1.0 -v filesrc location=in.mp4 ! qtdemux ! queue \
                  ! mp4mux ! filesink location=out.mp4

The pipeline doesn’t make sense, I just put it as a toy example.

The input file (in.mp4) has one video and one audio streams. I was expecting this pipeline to connect all those pads to mp4mux in order to multiplex them.

What am I missing here?

I have gone through the documentation again and tried the following command-line. The pipeline seem to be stuck.

gst-launch-1.0 -v filesrc location=in.mp4 ! qtdemux : multiqueue \
                          : mp4mux ! filesink location=out.mp4