Metadata Recasting
The recast function rebroadcasts extracted stream metadata over UDP so that other applications can consume it.
Processing Model
In synchronous KLV mode, when PTS timestamps are available, the selected metadata PID is demultiplexed from the source stream, buffered internally, and emitted when its presentation time is reached.
In asynchronous KLV mode, metadata is processed and emitted as it arrives.
Recaster Configuration
The recaster configuration defines the UDP destination URL and lets you select the interface, IP address, and port. Both multicast and unicast are supported.

Figure: Recaster configuration.
RAW KLV Mode
In RAW KLV mode, the metadata is demultiplexed and assembled from 188-byte TS packets, then sent over UDP without additional decoding.
Figure: Example RAW KLV buffer.
JSON Mode
In JSON mode, KlvInjector decodes the assembled KLV packet through the MISB 0601, 0102, and 0903 decoders and sends the resulting packet as JSON. Nested sub-standards are represented as nested JSON objects.

Figure: Decoded JSON packet.