Spaces:
Build error
Build error
File size: 1,555 Bytes
64772a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
from fractions import Fraction
from typing import Literal
from av.audio.format import AudioFormat
from av.descriptor import Descriptor
from av.enum import EnumFlag
from av.video.format import VideoFormat
from .context import CodecContext
class Properties(EnumFlag):
NONE: int
INTRA_ONLY: int
LOSSY: int
LOSSLESS: int
REORDER: int
BITMAP_SUB: int
TEXT_SUB: int
class Capabilities(EnumFlag):
NONE: int
DARW_HORIZ_BAND: int
DR1: int
HWACCEL: int
DELAY: int
SMALL_LAST_FRAME: int
HWACCEL_VDPAU: int
SUBFRAMES: int
EXPERIMENTAL: int
CHANNEL_CONF: int
NEG_LINESIZES: int
FRAME_THREADS: int
SLICE_THREADS: int
PARAM_CHANGE: int
AUTO_THREADS: int
VARIABLE_FRAME_SIZE: int
AVOID_PROBING: int
HARDWARE: int
HYBRID: int
ENCODER_REORDERED_OPAQUE: int
ENCODER_FLUSH: int
class UnknownCodecError(ValueError): ...
class Codec:
is_decoder: bool
descriptor: Descriptor
name: str
long_name: str
type: Literal["video", "audio", "data", "subtitle", "attachment"]
id: int
frame_rates: list[Fraction] | None
audio_rates: list[int] | None
video_formats: list[VideoFormat] | None
audio_formats: list[AudioFormat] | None
properties: Properties
capabilities: Capabilities
def __init__(self, name: str, mode: Literal["r", "w"]) -> None: ...
def create(self) -> CodecContext: ...
class codec_descriptor:
name: str
options: tuple[int, ...]
codecs_available: set[str]
def dump_codecs() -> None: ...
|