MPEG-TS Section example

Russel Winder russel at
Mon May 20 09:32:28 UTC 2019

On Thu, 2019-05-16 at 09:22 -0400, Nicolas Dufresne wrote:
> Le jeu. 16 mai 2019 08 h 40, Russel Winder <russel at> a écrit :
> > On Wed, 2019-05-15 at 15:02 +0300, Sebastian Dröge wrote:
> > […]
> > > Check the code of the MPEG-TS demuxer for creation of those data
> > > structures based on what was found in the stream, and the muxer
> > > should
> > > have some code that handles them.
> > 
> > Are there any functional tests for these codes?
> > 
> Maybe that ?

It seems this test is for multiplexing x-h264 video and mpeg audio into MPEG-
TS packets. Useful test, but not entirely useful in my current situation.

My problem is needing to test EIT messages. From what I can tell in gst-
plugin-bad there is lots of code for dealing with EIT packets. It seems that
tests/check/libs/mpegts.c tests for individual manually created PAT, PMT, NIT,
SDT, and STT packets, but no EIT packets. It appears there are no tests for
the EIT handling code in GStreamer, but I guess a detailed coverage report is
needed to prove/disprove this claim.

Whilst  tests/examples/mpegts/ts-parser.c is likely great for debugging EIT
messages in a GStreamer pipeline, it assumes generation of the EIT packet
elsewhere, and it assumes a pipeline.

I am getting close to writing a program to generate valid and invalid EIT
packets with various numbers of EITEvents. I suspect D might be a better
language to write this in than Rust – I am very unlikely to use C and I really
don't want to go back to C++.

Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list