Avcodec.Packet_side_dataSide data of packets and of codec parameters: the kinds FFmpeg defines, raw entries and their typed content. A packet's side data applies to that packet; the side data of codec parameters applies to the whole stream.
type kind = [ | `Palette| `New_extradata| `Param_change| `H263_mb_info| `Replaygain| `Displaymatrix| `Stereo3d| `Audio_service_type| `Quality_stats| `Fallback_track| `Cpb_properties| `Skip_samples| `Jp_dualmono| `Strings_metadata| `Subtitle_position| `Matroska_blockadditional| `Webvtt_identifier| `Webvtt_settings| `Metadata_update| `Mpegts_stream_id| `Mastering_display_metadata| `Spherical| `Content_light_level| `A53_cc| `Encryption_init_info| `Encryption_info| `Afd| `Prft| `Icc_profile| `Dovi_conf| `S12m_timecode| `Dynamic_hdr10_plus| `Iamf_mix_gain_param| `Iamf_demixing_info_param| `Iamf_recon_gain_info_param| `Ambient_viewing_environment| `Frame_cropping| `Lcevc| `_3d_reference_displays| `Rtcp_sr| `Exif| `Dynamic_hdr_smpte_2094_app5| `Hevc_conf ]One entry as its carrier holds it: its kind and a copy of its payload. The record is private: an entry comes from reading a packet or parameters, or from encode, never from arbitrary bytes, because FFmpeg reads a payload at the size its kind implies. For most kinds the payload is a C structure of the FFmpeg build in use: it must not be stored or sent to another process.
ReplayGain information, FFmpeg's AVReplayGain. track_gain and album_gain are in microbels: divide by 100000 to get decibels. FFmpeg's "unknown" gain is INT32_MIN, -2147483648. track_peak and album_peak are peak amplitudes where 100000 is full scale, 0 when unknown.
type t = [ | `Replaygain of replaygain| `Strings_metadata of (string * string) list| `Metadata_update of (string * string) list| `Display_matrix of Avutil.Display_matrix.t| `Frame_cropping of cropping ]The kinds whose content the bindings translate:
`Replaygain: ReplayGain information of an audio stream;`Strings_metadata: a list of key and value pairs;`Metadata_update: a list of key and value pairs, the updated metadata that appeared in the stream;`Display_matrix: the transformation to show the video upright;`Frame_cropping: the borders the container asks to discard.val kinds : kind listEvery kind of the installed headers, in FFmpeg's enumeration order.
val name : kind -> stringFFmpeg's name of the kind, empty when it has none.
The content of an entry. None for a kind outside t and for a payload too short for its kind.
The entry holding a content. decode (encode d) is Some d.
For `Replaygain, each gain must fit a signed 32-bit integer and each peak an unsigned 32-bit integer; each field of a `Frame_cropping an unsigned 32-bit integer. For the two metadata kinds, each key and value ends at its first NUL byte, and a later pair replaces an earlier pair of the same key, whatever its case.
val display_matrix : raw list -> Avutil.Display_matrix.t optionThe matrix of the first entry that holds one.