Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module provides an API to AVfilter.
type valued_arg = [
| `String of string
| `Int of int
| `Int64 of int64
| `Float of float
| `Rational of Avutil.rational
]
type 'a filter = {
name : string;
description : string;
options : Avutil.Options.t;
flags : flag list;
io : (('a, [ `Input ]) pads, ('a, [ `Output ]) pads) io;
}
type 'a input = 'a Avutil.frame -> unit
val time_base : _ context -> Avutil.rational
val frame_rate : [ `Video ] context -> Avutil.rational
val width : [ `Video ] context -> int
val height : [ `Video ] context -> int
val sample_aspect_ratio : [ `Video ] context -> Avutil.rational
val pixel_format : [ `Video ] context -> Avutil.Pixel_format.t
val channels : [ `Audio ] context -> int
val channel_layout : [ `Audio ] context -> Avutil.Channel_layout.t
val sample_rate : [ `Audio ] context -> int
val sample_format : [ `Audio ] context -> Avutil.Sample_format.t
val set_frame_size : [ `Audio ] context -> int -> unit
val filters : [ `Unattached ] filter list
Filter list.
val find : string -> [ `Unattached ] filter
val find_opt : string -> [ `Unattached ] filter option
val abuffer : [ `Unattached ] filter
Buffers (input).
val buffer : [ `Unattached ] filter
val abuffersink : [ `Unattached ] filter
Sinks (output).
val buffersink : [ `Unattached ] filter
val pad_name : (_, _, _) pad -> string
Pad name.
val init : unit -> config
Initiate a filter graph configuration.
val attach :
?args:args list ->
name:string ->
[ `Unattached ] filter ->
config ->
[ `Attached ] filter
Attach a filter to a filter graph configuration. Raises Exists
if there is already a filter by that name in the graph. Number of inputs or outputs can change from the filter's specifications, in particular if the filter has the `Dynamic_input
or `Dynamic_output
flag set.
Link two filter pads.
Parse a graph described by a string and attach outputs/inputs to it.
type ('a, 'b) parse_av =
(('a, [ `Audio ], 'b) parse_node list, ('a, [ `Video ], 'b) parse_node list)
av
Check validity and configure all the links and formats in the graph and return its outputs and outputs.
module Utils : sig ... end