package ffmpeg

  1. Overview
  2. Docs
type 'a t
val find_encoder : string -> [ `Encoder ] t
val find_decoder : string -> [ `Decoder ] t
val get_supported_frame_rates : 'a t -> Avutil.rational list
val find_best_frame_rate : 'a t -> Avutil.rational -> Avutil.rational
val get_supported_pixel_formats : 'a t -> Avutil.Pixel_format.t list
val find_best_pixel_format : 'a t -> Avutil.Pixel_format.t -> Avutil.Pixel_format.t
val create_parser : [ `Decoder ] t -> Avutil.video Packet.parser
val create_decoder : [ `Decoder ] t -> Avutil.video decoder
val create_encoder : ?bit_rate:int -> ?frame_rate:int -> [ `Encoder ] t -> Avutil.video encoder
type id = Codec_id.video
val string_of_id : id -> string
val get_id : 'a t -> id
val get_params_id : Avutil.video params -> id
val get_width : Avutil.video params -> int
val get_height : Avutil.video params -> int
val get_sample_aspect_ratio : Avutil.video params -> Avutil.rational
val get_pixel_format : Avutil.video params -> Avutil.Pixel_format.t
val get_bit_rate : Avutil.video params -> int
OCaml

Innovation. Community. Security.