optris::sdk::rec::VideoMetadata
What a video file says about itself: written into the file by VideoExporter::Create(const VideoExportConfig &, const VideoMetadata &).
The standard fields land where Windows Explorer and the common players read them. In an MP4 file title is Explorer's Title, comment its Comments and creation_time its Media created, and 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.
The 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. A field that cannot be written is refused by Create() rather than left out of the file: metadata in any other container than MP4, MKV or WebM, text that is not UTF-8 or holds a NUL, an empty key, a key with a control character, a key that repeats another one whatever its capitalisation, and a key that names one of the standard fields below (title, comment, creation_time, encoding_tool, encoder).
An empty field is not written.
Public attributes
title
std::string title
The title.
comment
std::string comment
Free text: a comment or a description.
creation_time
std::optional< std::chrono::system_clock::time_point > creation_time
When the recording was made, which for an export is not when the export was made. Written in UTC; an MP4 file stores whole seconds.
software
std::string software
The program that made the video, with its version, for example "Optris Connect 2.1.0". Written as the encoding tool, followed by the SDK's own name and version: "Optris Connect 2.1.0, Optris SDK 12.0.35". When empty the SDK's name and version are written alone.
custom
std::vector< std::pair< std::string, std::string > > custom
Your own keys and values, in this order, for example {"com.optris.camera.serial", "21074191"}. UTF-8.