[FFmpeg-devel] Copying EIT (EPG) to output

Kieran Kunhya kierank at obe.tv
Wed Aug 12 14:35:37 EEST 2020


On Wed, 12 Aug 2020 at 00:00, Michal Rybarik <michal at rybarik.sk> wrote:

> Hello,
>
> I am using ffmpeg to transcode video in live stream - both input and
> output are MPEG-TS multicasts (single program transport stream). Input
> MPEG-TS contains EIT (EPG) and I want to copy it to the output.
>
> Current ffmpeg treats EPG/EIT as private data stream. I have mapped it
> to be copied to the output with PID 18, and it is. Unforutnately MPEGTS
> muxer inserts this PID 18 as a part of the program (one of its
> elementary streams), and this is is not valid.  EIT should not be muxed
> into program stream, but outside of it (like PAT, NIT, TDT, ...)
>
> I have looked into mpegtsenc.c, but I am not so brave to fight with it.
> Is there anyone handy who would help me solve this?
>

EIT is not passed through as it is PSI, not PES data. It's going to be
messy and hacky to have FFmpeg remux this.
IMO not in scope but...

Kieran


More information about the ffmpeg-devel mailing list