package ffmpeg-avcodec
Module Avcodec.SubtitleSource
Subtitle codecs.
Main subtitle types.
Source
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
]Subtitle codec ids. Careful: different codecs share the same ID, e.g. aac and libfdk_aac
Get the codec descriptor.
Source
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 ]
listList all subtitle codec IDs.
Find an encoder from its name.
Raise Error if the codec is not found or is not an audio codec.
Find an encoder from its id.
Raise Error if the codec is not found or is not an audio codec.
Find a decoder from its name.
Raise Error if the codec is not found or is not an audio codec.
Find a decoder from its id.
Raise Error if the codec is not found or is not an audio codec.
Return the id of the codec params.