Key-Length-Value Protocol

from Wikipedia, the free encyclopedia

The KLV (KLV) ( literal key length Content Protocol) defined in the document SMPTE 336M refers to a binary method to data in serial bit streams to encode .

A key up to 16 bytes long is assigned to each data attribute in a dictionary . With the help of the key, the data value of the attribute is encoded in a serial bit stream. The bit stream consists of the key, the length of the content of the attribute to be coded (Length) and finally the content of the attribute (Value). To decode a binary data stream generated in this way, all that is required is a dictionary that contains the relevant keys and the associated data types of the values. The data types include: B. Unicode - strings or IEEE - floating point numbers are used. If the decoder does not find an entry in the dictionary for a key of a KLV package, the corresponding package can be skipped using the value in the length field and the decoding process can be continued with the next KLV package.

The KLV protocol is used, among other things, to encode MXF files.

Individual evidence

  1. ^ Society of Motion Picture and Television Engineers: Data Encoding Protocol Using Key-Length Value . In SMPTE 336M-2007, August 22, 2007
  2. M. Gläß, M. Flügel, R. Rygol, N. Röhr: Material eXchange vs. comparable formats . Grin Verlag, 2009, ISBN 3640453433 (excerpts from Google Books )