Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

set_prop

set_prop(
  input: Clip,
  #{
    key: String,
    value: MetadataValue,
  }
)

Writes one metadata key on each output frame.

The input must be one fixed-format planar Gray, YUV, or planar RGB clip. key must already exist in the active MetadataSchema, and value must match the registered metadata kind for that key.

Examples

register_prop("acme/filter:enabled", "bool")

output = source("input.mkv").std.set_prop(#{
    key: "acme/filter:enabled",
    value: true,
})

Input

One fixed-format planar Gray, YUV, or planar RGB clip.

Output

A clip with the same media properties, with the requested metadata key written on each frame.

Options

  • key (String) – Select the registered metadata key to write.
  • value (MetadataValue) – Provide the metadata value to store.