STANAG Player
Version 2.2.8
|
The Recast function is used to re-broadcast extracted stream metadata (raw or decoded) over UDP for processing by other applications (metadata sharing). In SYNC KLV mode (when PTS timestamps are available), the selected metadata PID is demultiplexed from the stream or file and stored in an internal FIFO to synchronize with the video. When the presentation time arrives, the packet is sent over UDP. In ASYNC KLV mode, the data is processed as it arrives.
The Recaster configuration defines the URL for UDP streaming, so the desired parameters, such as network interface (if more than one is available), IP address, and port—must be set by the user. Both Multicast and Unicast modes are supported.
Once configured, the values are saved as part of the application settings and applied to all missions during playback.
In RAW Klv mode, the incoming data packets are demultiplexed and assembled from the 188 bytes TS packets and sent over UDP without further processing, as is.
So, the buffer will start with 06 0E 2B 34 02 0B 01 01 0E 01 03 01 01 00 00 00, something like this:
In JSON mode, in addition to demultiplexing and assembling, incoming KLV packets are decoded, and their KLV items are passed to the MISB 0601, 0102, and 0903 decoders. The resulting information is then sent as a JSON-encoded packet, where the keys represent MISB tags and the values contain fully decoded MISB data. If nested sub-standards (such as MISB 0102 and 0903) are present, they are included as nested JSON objects.