MisterAI's picture
download
raw
1.14 kB
from typing import Iterator, Literal, overload
from av.audio.stream import AudioStream
from av.stream import AttachmentStream, DataStream, Stream
from av.subtitles.stream import SubtitleStream
from av.video.stream import VideoStream
class StreamContainer:
video: tuple[VideoStream, ...]
audio: tuple[AudioStream, ...]
subtitles: tuple[SubtitleStream, ...]
attachments: tuple[AttachmentStream, ...]
data: tuple[DataStream, ...]
def __init__(self) -> None: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[Stream]: ...
@overload
def __getitem__(self, index: int) -> Stream: ...
@overload
def __getitem__(self, index: slice) -> list[Stream]: ...
@overload
def __getitem__(self, index: int | slice) -> Stream | list[Stream]: ...
def get(
self,
*args: int | Stream | dict[str, int | tuple[int, ...]],
**kwargs: int | tuple[int, ...],
) -> list[Stream]: ...
def best(
self,
type: Literal["video", "audio", "subtitle", "data", "attachment"],
/,
related: Stream | None = None,
) -> Stream | None: ...

Xet Storage Details

Size:
1.14 kB
·
Xet hash:
6cde065b795327427d4267ec100bb1d1b90ad9874ad65a5db879158b2bf460a8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.