tsdemux -> mpegtsmux: GStreamer-CRITICAL **: gst_segment_to_running_time: assertion 'segment->format == format' failed

Olivier Crête olivier.crete at collabora.com
Mon Oct 24 01:03:10 UTC 2016


Hi,

On Mon, 2016-10-24 at 00:22 +0200, Graham Leggett wrote:
> I am trying to come up with a pipeline that transcodes the video in a
> transport stream, but leaves everything else intact:
> 
> tsdemux emit-stats=true name=demux ! queue leaky=downstream max-size-
> time=5000000000 ! h264parse ! mpegtsmux name=mux ! hlssink target-
> duration=0    demux. ! queue leaky=downstream max-size-
> time=5000000000 ! mux.
> 
> So far, the transcoding part works fine. The problem starts when I
> want to pass all other streams (auto, subtitles) through unchanged.
> I’ve found not clear examples on how to do this, so I’ve tried wiring
> the demuxer direct to the muxer through a queue. This fails as
> follows:
> 
> (gst-launch-1.0:4202): GStreamer-CRITICAL **:
> gst_segment_to_running_time: assertion 'segment->format == format'
> failed
> 
> Can anyone confirm what the correct way is to pass through streams
> from a demuxer to a muxer unchanged?

You need to add a parser for the audio codec, for example, aacparse if
the audio is AAC.

-- 
Olivier Crête
olivier.crete at collabora.com


More information about the gstreamer-devel mailing list