VideoSubtitleTrack
Represents a subtitle track for a video.
Properties
album_art- Whether the track represents album art rather than timed media.audio_channels- Explicit audio channel count override.bitrate- Overall media bitrate in bits per second.channels- Channel layout string describing the spatial arrangement of channels.channels_count- The number of audio channels detected in the media.codec- Codec identifier for the media stream.decoder- Decoder name used to process the media stream.fps- Video frames per second.language- The language of the subtitle track, e.g.par- Pixel aspect ratio value.rotate- Rotation metadata in degrees to apply when rendering the video.sample_rate- Audio sampling rate in hertz.src- The subtitle source.title- The title of the subtitle track, e.g.
Methods
Properties
album_artclass-attributeinstance-attribute
album_art: Optional[bool] = NoneWhether the track represents album art rather than timed media.
audio_channelsclass-attributeinstance-attribute
audio_channels: Optional[int] = NoneExplicit audio channel count override.
bitrateclass-attributeinstance-attribute
bitrate: Optional[int] = NoneOverall media bitrate in bits per second.
channelsclass-attributeinstance-attribute
channels: Optional[str] = NoneChannel layout string describing the spatial arrangement of channels.
channels_countclass-attributeinstance-attribute
channels_count: Optional[int] = NoneThe number of audio channels detected in the media.
codecclass-attributeinstance-attribute
codec: Optional[str] = NoneCodec identifier for the media stream.
decoderclass-attributeinstance-attribute
decoder: Optional[str] = NoneDecoder name used to process the media stream.
languageclass-attributeinstance-attribute
language: Optional[str] = NoneThe language of the subtitle track, e.g. 'en'.
rotateclass-attributeinstance-attribute
rotate: Optional[int] = NoneRotation metadata in degrees to apply when rendering the video.
sample_rateclass-attributeinstance-attribute
sample_rate: Optional[int] = NoneAudio sampling rate in hertz.
srcinstance-attribute
src: strThe subtitle source.
Supported values:
- A URL (e.g. "https://example.com/subs.srt" or "www.example.com/sub.vtt")
- An absolute local file path (not supported on the web platform)
- A raw subtitle text string (e.g. the full contents of an SRT/VTT file)
titleclass-attributeinstance-attribute
title: Optional[str] = NoneThe title of the subtitle track, e.g. 'English'.