AvfilterThis 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 = [ `Frame of 'a Avutil.frame | `Flush ] -> unitval time_base : _ context -> Avutil.rationalval frame_rate : [ `Video ] context -> Avutil.rationalval width : [ `Video ] context -> intval height : [ `Video ] context -> intval pixel_aspect : [ `Video ] context -> Avutil.rational optionval pixel_format : [ `Video ] context -> Avutil.Pixel_format.tval channels : [ `Audio ] context -> intval channel_layout : [ `Audio ] context -> Avutil.Channel_layout.tval sample_rate : [ `Audio ] context -> intval sample_format : [ `Audio ] context -> Avutil.Sample_format.tval set_frame_size : [ `Audio ] context -> int -> unitval filters : [ `Unattached ] filter listFilter list.
val find : string -> [ `Unattached ] filterval find_opt : string -> [ `Unattached ] filter optionval abuffer : [ `Unattached ] filterBuffers (input).
val buffer : [ `Unattached ] filterval abuffersink : [ `Unattached ] filterSinks (output).
val buffersink : [ `Unattached ] filterval pad_name : (_, _, _) pad -> stringPad name.
val init : unit -> configInitiate a filter graph configuration.
val attach :
?args:args list ->
name:string ->
[ `Unattached ] filter ->
config ->
[ `Attached ] filterAttach 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.
val process_command :
?flags:command_flag list ->
cmd:string ->
?arg:string ->
[ `Attached ] filter ->
stringSend a command to a attached filter pad.
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)
avCheck validity and configure all the links and formats in the graph and return its outputs and outputs.
module Utils : sig ... end