How do you multiplex a teletext stream in with video and audio with mpegtsmux?

Hello GStreamer’s,
I’ve been using mpegtsmux for a few years now for video and audio muxing however, I have a need to mux a teletext stream similar to subtitling.
Has anyone successfully multiplexed teletext in with a video and audio source?

If so how did you prepare the source? there is caps for teletext and a function to prepare the PES subpicture/x-dvb; application/x-teletext; meta/x-klv, parsed=true

The function “mpegtsmux_ttxt.c” to prepare the PES therefore I’m satisfised muxing teletext and subpicture (subtitles) can be done.
Here’s what the function achieves: -

/* from EN 300 472 spec: ITU-R System B Teletext in DVB
*

  • PES packet = PES header + PES payload data
  • where PES header must be fixed at 45 bytes (likely by using PES stuffing)
  • PES packet must completely fill an integral number of TS packets
  • using (184 bytes) payload data only (so no adaptation field stuffing)
    */

Happy to use what you have and for anyone to advise what to do?

Thanks