tsparse and tsdemux
Nicolas Dufresne
nicolas at ndufresne.ca
Fri Feb 4 14:15:20 UTC 2022
Le vendredi 04 février 2022 à 12:41 +0000, i.nixman--- via gstreamer-devel a
écrit :
> everything works as it should, but I have a question: if I add tsparse
> to the second pipeline before tsdemux, everything will still work
> successfully.
> the question is why does tsdemux work successfully without using tsparse
> and when should tsparse be used?
tsparse is mostly a subset of tsdemux, so you don't usually need to pre-process
the TS for demuxing. One of the main use case for tsparse is to set timestamps
into the otherwise bytes you are receiving. See the "set-timestamp" property. It
will track the PCR and figure-out the time information without separating the
streams.
You could use this to notably stream from file of bytes stream to RTP using
rtpmp2tpay element, without the overhead and complexity of demuxing and muxing
again.
Nicolas
More information about the gstreamer-devel
mailing list