Relative Content

Tag Archive for mpeg-2klvdata

How do I insert KLV metadata into Program Stream file

I need to insert the following packet, which contains KLV metadata to a Program Stream file. Note this packet has a SCR of 00:00:00.000, as I wanted the metadata at the start of the file, and the KLV metadata is the same as the Day Flight example found https://samples.ffmpeg.org/MPEG2/mpegts-klv/. I’ve also padded it (0x00 0x00 0x01 0xBE) to be 2048 bytes long, as the standard MPEG-PS packet size.

How can I inject KLV metadata into an MPEG-PS File

I’m needing to create a bit of software which can inject KLV metadata into a Program Stream file, note that I need to modify an already existing file, not a stream over UDP or anything similar. I have tried searching online, but I keep coming up with solutions on how to insert the metadata to a Transport Stream.