VideoMetadata
public sealed record VideoMetadata : IEquatable<VideoMetadata>
What a video file says about itself.
The standard fields land where Windows Explorer and the common players read them. In an MP4 file VideoMetadata.Title is Explorer's Title, VideoMetadata.Comment its Comments and VideoMetadata.CreationTime its Media created, and VideoMetadata.Software is the encoding tool; in an MKV or WebM file they are the segment title, a COMMENT tag, the date and the writing application.
VideoMetadata.Custom pairs are written as they are: in an MP4 file as iTunes free-form tags, which ffprobe and MediaInfo list under their key; in an MKV or WebM file as tags, whose names Matroska stores in capitals, so com.optris.camera.serial reads back as COM.OPTRIS.CAMERA.SERIAL.
Nothing is dropped. What cannot be written is refused by VideoExport.Create(…) with SdkConfigurationException, and no file is created: metadata for any other container than MP4, MKV or WebM, an empty key, a key with a control character, a key that repeats another one whatever its capitalisation, and a key that names a standard field (title, comment, creation_time, encoding_tool, encoder).
Example
var options = new VideoExportOptions { OutputPath = "furnace.mp4", Width = 640, Height = 480, FrameRate = 30, Metadata = new VideoMetadata { Title = "Furnace north, 27 Nov 2026 10:00", CreationTime = recordingStart, Software = "Optris Connect 2.1.0", Custom = [new("com.optris.camera.serial", "21074191")], }, };
VideoMetadata: constructors
public VideoMetadata()
VideoMetadata: properties
public string? Comment { get; init; }
Free text, a comment or a description, or null.
public Nullable<DateTimeOffset> CreationTime { get; init; }
When the recording was made, which for an export is not when the export was made, or null.
Written in UTC; an MP4 file stores whole seconds.
public IReadOnlyList<KeyValuePair<string, string>> Custom { get; init; }
Your own keys and values, in this order.
public string? Software { get; init; }
The program that made the video, with its version, for example "Optris Connect 2.1.0", or null.
Written as the encoding tool, followed by the SDK's own name and version.
public string? Title { get; init; }
The title, or null.