Avcodec.SubtitleSubtitle codecs: lookup only. This module builds no subtitle decoder or encoder. Subtitles are decoded and encoded through containers, in the Av library.
type 'mode t = (Avutil.subtitle, 'mode) codecA subtitle codec.
type id = [ | `None| `Dvd_subtitle| `Dvb_subtitle| `Text| `Xsub| `Ssa| `Mov_text| `Hdmv_pgs_subtitle| `Dvb_teletext| `Srt| `Microdvd| `Eia_608| `Jacosub| `Sami| `Realtext| `Stl| `Subviewer1| `Subviewer| `Subrip| `Webvtt| `Mpl2| `Vplayer| `Pjs| `Ass| `Hdmv_text_subtitle| `Ttml| `Arib_caption| `Ivtv_vbi ]The identifier of a subtitle format, FFmpeg's AV_CODEC_ID_* values of the subtitle family.
val descriptor : id -> descriptor optiondescriptor id is FFmpeg's descriptor of the format, None when FFmpeg has none for it. Every text of the result is a copy.
val codec_ids :
[ `None
| `Dvd_subtitle
| `Dvb_subtitle
| `Text
| `Xsub
| `Ssa
| `Mov_text
| `Hdmv_pgs_subtitle
| `Dvb_teletext
| `Srt
| `Microdvd
| `Eia_608
| `Jacosub
| `Sami
| `Realtext
| `Stl
| `Subviewer1
| `Subviewer
| `Subrip
| `Webvtt
| `Mpl2
| `Vplayer
| `Pjs
| `Ass
| `Hdmv_text_subtitle
| `Ttml
| `Arib_caption
| `Ivtv_vbi ]
listEvery subtitle identifier the bindings know.
find_encoder_by_name name is the subtitle encoder FFmpeg registers under name.
find_decoder_by_name name is the subtitle decoder FFmpeg registers under name.
val get_name : (_, _) codec -> stringget_name codec is the codec's name, as Avcodec.name.
val get_description : (_, _) codec -> stringget_description codec is the codec's descriptive name, the empty string when FFmpeg gives none.
val string_of_id : id -> stringstring_of_id id is FFmpeg's name of the format.
val get_params_id : Avutil.subtitle params -> idget_params_id params is the codec identifier of the parameters.
val get_width : Avutil.subtitle params -> intThe size of the canvas a bitmap subtitle codec draws on, 0 when unset.
val get_height : Avutil.subtitle params -> int