Avutil.OptionsThe options of FFmpeg objects: listing the options a kind of object declares, and reading the value of an option on a live object. Options are set when an object is created, through an opts table.
The description of the options of one kind of FFmpeg object (a codec, a format, a filter): an FFmpeg option class, or no class at all. The libraries built on this one return these values; they are valid for the life of the process.
type flag = [ | `Encoding_param| `Decoding_param| `Audio_param| `Video_param| `Subtitle_param| `Export| `Readonly| `Bsf_param| `Runtime_param| `Filtering_param| `Deprecated| `Child_consts ]The flags FFmpeg sets on an option, each the AV_OPT_FLAG_* constant of the same name. The `X_param ones say what the option applies to: encoding, decoding, audio, video, subtitles, bitstream filters, filters.
`Export: meant for exporting values to the caller.`Readonly: can be read and not set.`Runtime_param: can be set by the user at run time.`Child_consts: the named constants of the option can also reside in child objects.What FFmpeg declares about the value of an option.
default: the default value. None when the option declares none, when the declared one names no value (FFmpeg's "none" format, a negative boolean default, a text that is not a valid channel layout), and for every array option.min, max: the smallest and the largest value accepted. Present for the numeric kinds only; for the 64-bit integer kinds a bound beyond the 64-bit range is that range's limit.values: the named values the option accepts, as (name, value) in FFmpeg's order. Filled for the integer, floating-point and boolean kinds; empty for the others and for array options.type ground = [ | `Flags of int64 entry| `Int of int entry| `Int64 of int64 entry| `Float of float entry| `Double of float entry| `String of string entry| `Rational of rational entry| `Binary of string entry| `Dict of string entry| `UInt64 of int64 entry| `Image_size of string entry| `Pixel_fmt of Pixel_format.t entry| `Sample_fmt of Sample_format.t entry| `Video_rate of string entry| `Duration of int64 entry| `Color of string entry| `Channel_layout of Channel_layout.t entry| `Bool of bool entry ]The type of a non-array option, each case the FFmpeg option type of the same name, with what FFmpeg declares about its value.
`Flags: a bit mask; the named values are its bits.`Rational: FFmpeg declares the default and the bounds as floating-point numbers; each is given as the nearest rational.`UInt64: an unsigned 64-bit value carried in a signed int64.string entry give their default as the text FFmpeg declares: `Binary, `Dict, `Image_size, `Video_rate and `Color are not parsed.The type of an option: a ground type, or `Array of the type of its elements. The entry of an array option has neither default nor named values.
One option.
help: FFmpeg's help text, None when it is absent or empty.flags: the flags set on the option, in ascending order of bit value.opts c lists the options of the class c and, recursively, of its child classes: the options of c in FFmpeg's order, then those of each child class in FFmpeg's order of child classes.
An option whose FFmpeg type has no case in ground is left out, so the call succeeds whatever the installed FFmpeg declares. FFmpeg's named constants are not options of their own: they appear in the values of the option they belong to. A value with no class gives [].
An object that carries options, inside a value of one of the libraries built on this one (a container, a codec context, a filter), which creates it. It keeps that owner alive, and reads through it are checked against the state of the owner.
type 'a getter = ?search_children:bool -> name:string -> obj -> 'aThe type of the readers below. get ~name obj returns the current value of the option name of obj. There is no setter on a live object.
Every string or layout returned is a copy. When the owner of obj has a use lock, the read takes it shared, for the time of the read.
val get_string : string getterThe value of the option as text, as FFmpeg renders it.
val get_int : int getterThe value of an integer option.
val get_int64 : int64 getterThe value of an integer option, as 64 bits.
val get_float : float getterThe value of the option as a float.
val get_image_size : (int * int) getterThe value of an image-size option, as (width, height) in pixels.
val get_pixel_fmt : Pixel_format.t getterThe value of a pixel-format option.
val get_sample_fmt : Sample_format.t getterThe value of a sample-format option.
The value of a video-rate option, in frames per second as a rational.
val get_channel_layout : Channel_layout.t getterThe value of a channel-layout option, as an independent copy.
val get_dictionary : (string * string) list getterThe value of a dictionary option, as (key, value) pairs in the dictionary's order.