demux/remux pipeline hangs when audio is added

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Oct 2 10:38:43 PDT 2013


On Wed, 2013-10-02 at 11:19 -0600, Carah Smith wrote:

Hi,

> I am trying to make a pipeline that takes a transport stream in,
> demuxes it, does some transcoding, remuxes, and sends it to a sink.
> I can make it work if I only have video in the pipeline or if I only
> have audio but once I add both, the application hangs. Here is my
> source code (I removed all the error checking for emailing to reduce
> line length):

You need a queue in each branch right after the demuxer. This is needed
for the "preroll" mechanism to work properly, which blocks the pushing
thread in the sink waiting for the 'Go!', but the pipeline won't start
unless all sinks have data, which they won't get if you don't use
queues.

You might also want/need a parser in front of each decoder.

Cheers
 -Tim




More information about the gstreamer-devel mailing list