package ffmpeg-avutil

  1. Overview
  2. Docs

Common code shared across all FFmpeg libraries.

Line

type input
type output

Container

type 'a container

Media types

type audio = [
  1. | `Audio
]
type video = [
  1. | `Video
]
type subtitle = [
  1. | `Subtitle
]
type media_type = [
  1. | `Unknown
  2. | `Video
  3. | `Audio
  4. | `Data
  5. | `Subtitle
  6. | `Attachment
]

Format

type ('line, 'media) format

Frame

module Frame : sig ... end
type 'media frame = 'media Frame.t

Exception

type error = [
  1. | `Bsf_not_found
  2. | `Decoder_not_found
  3. | `Demuxer_not_found
  4. | `Encoder_not_found
  5. | `Eof
  6. | `Exit
  7. | `Filter_not_found
  8. | `Invalid_data
  9. | `Muxer_not_found
  10. | `Option_not_found
  11. | `Patch_welcome
  12. | `Protocol_not_found
  13. | `Stream_not_found
  14. | `Bug
  15. | `Eagain
  16. | `Unknown
  17. | `Experimental
  18. | `Other of int
  19. | `Failure of string
]

Internal errors.

exception Error of error
val string_of_error : error -> string
type data = (int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t
val create_data : int -> data
type rational = {
  1. num : int;
  2. den : int;
}
val string_of_rational : rational -> string
Constants
val qp2lambda : int
Timestamp
module Time_format : sig ... end

Formats for time.

val time_base : unit -> rational

Return the time base of FFmpeg.

Logging utilities
module Log : sig ... end
Audio utilities
module Channel_layout : sig ... end

Formats for channels layouts.

module Sample_format : sig ... end

Formats for audio samples.

Video utilities
module Pixel_format : sig ... end

Formats for pixels.

module Audio : sig ... end
module Video : sig ... end
Subtitle utilities
module Subtitle : sig ... end
module Options : sig ... end
type value = [
  1. | `String of string
  2. | `Int of int
  3. | `Int64 of int64
  4. | `Float of float
]
type opts = (string, value) Stdlib.Hashtbl.t
val opts_default : opts option -> opts
val mk_opts_array : opts -> (string * string) array
val string_of_opts : opts -> string
val mk_audio_opts : ?opts:opts -> ?channels:int -> ?channel_layout:Channel_layout.t -> sample_rate:int -> sample_format:Sample_format.t -> time_base:rational -> unit -> opts
val mk_video_opts : ?opts:opts -> ?frame_rate:rational -> pixel_format:Pixel_format.t -> width:int -> height:int -> time_base:rational -> unit -> opts
val filter_opts : string array -> opts -> unit
HwContext
module HwContext : sig ... end
OCaml

Innovation. Community. Security.