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

copy_props

copy_props(
  input: [Clip, Clip]
)

Copies all frame metadata from one clip onto another clip.

Use array input form: std.copy_props([metadata_source, target]). The target clip must be a fixed-format planar Gray, YUV, or planar RGB clip. The metadata source and target must have the same frame count, but they may differ in format, resolution, and frame rate.

Examples

target = source("graded.mkv")
metadata_source = source("original.mkv")
output = std.copy_props([metadata_source, target])

Input

Two clips in array form: [metadata_source, target].

Output

A clip that keeps the target clip’s plane data and media properties, but replaces each frame’s metadata with metadata from the same-numbered source frame.