optris_sdk_video_metadata
What a video file says about itself, for optris_sdk_video_export_create_with_metadata().
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_us 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.
Nothing is dropped. What cannot be written is refused with OPTRIS_SDK_ERROR_INVALID_ARGUMENT and no file is created: metadata for any other container than MP4, MKV or WebM, text that is not UTF-8, 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).
Call optris_sdk_video_metadata_init() first. Every string is borrowed for the duration of the create call; NULL or "" is not written.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_video_metadata), or call optris_sdk_video_metadata_init().
has_creation_time
int32_t has_creation_time
Non-zero if creation_time_us is to be written.
creation_time_us
int64_t creation_time_us
When the recording was made, which for an export is not when the export was made: microseconds since the Unix epoch, UTC. An MP4 file stores whole seconds.
title
const char * title
The title, or NULL.
comment
const char * comment
Free text, a comment or a description, or NULL.
software
const char * software
The program that made the video, with its version, or NULL. Written as the encoding tool, followed by the SDK's own name and version.
custom
const optris_sdk_video_metadata_entry * custom
Your own pairs, in this order, or NULL when custom_count is 0.
custom_count
size_t custom_count
How many custom holds.