Module Avutil.Subtitle

type frame
type subtitle_type = [
  1. | `None
  2. | `Bitmap
  3. | `Text
  4. | `Ass
]
type subtitle_flag = [
  1. | `Forced
]
val header_ass_default : unit -> string

Return the default ASS header used for subtitle encoders that require one (e.g. subrip, webvtt, ass).

type pict = {
  1. x : int;
  2. y : int;
  3. w : int;
  4. h : int;
  5. nb_colors : int;
  6. planes : data array * int array;
}
type rectangle = {
  1. pict : pict option;
  2. flags : subtitle_flag list;
  3. rect_type : subtitle_type;
  4. text : string;
  5. ass : string;
}
type content = {
  1. format : int;
  2. start_display_time : int;
  3. end_display_time : int;
  4. rectangles : rectangle list;
  5. pts : int64 option;
}
val create_frame : content -> frame
val get_content : frame -> content
val get_pts : frame -> int64 option