# Stubs for moviepy.video.VideoClip (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from ..Clip import Clip from ..config import get_setting from ..decorators import add_mask_if_none, apply_to_mask, convert_masks_to_RGB, convert_to_seconds, outplace, requires_duration, use_clip_fps_by_default from ..tools import deprecated_version_of, extensions_dict, find_extension, is_string, subprocess_call from .io.ffmpeg_writer import ffmpeg_write_video from .io.gif_writers import write_gif, write_gif_with_image_io, write_gif_with_tempfiles from .tools.drawing import blit from typing import Any, Optional class VideoClip(Clip): mask: Any = ... audio: Any = ... pos: Any = ... relative_pos: bool = ... make_frame: Any = ... size: Any = ... ismask: Any = ... has_constant_size: Any = ... duration: Any = ... end: Any = ... def __init__(self, make_frame: Optional[Any] = ..., ismask: bool = ..., duration: Optional[Any] = ..., has_constant_size: bool = ...) -> None: ... @property def w(self): ... @property def h(self): ... @property def aspect_ratio(self): ... def save_frame(self, filename: Any, t: int = ..., withmask: bool = ...) -> None: ... def write_videofile(self, filename: Any, fps: Optional[Any] = ..., codec: Optional[Any] = ..., bitrate: Optional[Any] = ..., audio: bool = ..., audio_fps: int = ..., preset: str = ..., audio_nbytes: int = ..., audio_codec: Optional[Any] = ..., audio_bitrate: Optional[Any] = ..., audio_bufsize: int = ..., temp_audiofile: Optional[Any] = ..., rewrite_audio: bool = ..., remove_temp: bool = ..., write_logfile: bool = ..., verbose: bool = ..., threads: Optional[Any] = ..., ffmpeg_params: Optional[Any] = ..., logger: str = ...) -> None: ... def write_images_sequence(self, nameformat: Any, fps: Optional[Any] = ..., verbose: bool = ..., withmask: bool = ..., logger: str = ...): ... def write_gif(self, filename: Any, fps: Optional[Any] = ..., program: str = ..., opt: str = ..., fuzz: int = ..., verbose: bool = ..., loop: int = ..., dispose: bool = ..., colors: Optional[Any] = ..., tempfiles: bool = ..., logger: str = ...) -> None: ... def subfx(self, fx: Any, ta: int = ..., tb: Optional[Any] = ..., **kwargs: Any): ... def fl_image(self, image_func: Any, apply_to: Optional[Any] = ...): ... def fill_array(self, pre_array: Any, shape: Any = ...): ... def blit_on(self, picture: Any, t: Any): ... def add_mask(self): ... def on_color(self, size: Optional[Any] = ..., color: Any = ..., pos: Optional[Any] = ..., col_opacity: Optional[Any] = ...): ... def set_make_frame(self, mf: Any) -> None: ... def set_audio(self, audioclip: Any) -> None: ... def set_mask(self, mask: Any) -> None: ... def set_opacity(self, op: Any): ... def set_position(self, pos: Any, relative: bool = ...): ... def to_ImageClip(self, t: int = ..., with_mask: bool = ..., duration: Optional[Any] = ...): ... def to_mask(self, canal: int = ...): ... def to_RGB(self): ... def without_audio(self) -> None: ... def afx(self, fun: Any, *a: Any, **k: Any) -> None: ... class DataVideoClip(VideoClip): data: Any = ... data_to_frame: Any = ... fps: Any = ... def __init__(self, data: Any, data_to_frame: Any, fps: Any, ismask: bool = ..., has_constant_size: bool = ...) -> None: ... class UpdatedVideoClip(VideoClip): world: Any = ... def __init__(self, world: Any, ismask: bool = ..., duration: Optional[Any] = ...) -> None: ... class ImageClip(VideoClip): mask: Any = ... make_frame: Any = ... size: Any = ... img: Any = ... def __init__(self, img: Any, ismask: bool = ..., transparent: bool = ..., fromalpha: bool = ..., duration: Optional[Any] = ...) -> None: ... def fl(self, fl: Any, apply_to: Optional[Any] = ..., keep_duration: bool = ...): ... def fl_image(self, image_func: Any, apply_to: Optional[Any] = ...): ... def fl_time(self, time_func: Any, apply_to: Optional[Any] = ..., keep_duration: bool = ...) -> None: ... class ColorClip(ImageClip): def __init__(self, size: Any, color: Optional[Any] = ..., ismask: bool = ..., duration: Optional[Any] = ..., col: Optional[Any] = ...) -> None: ... class TextClip(ImageClip): txt: Any = ... color: Any = ... stroke_color: Any = ... def __init__(self, txt: Optional[Any] = ..., filename: Optional[Any] = ..., size: Optional[Any] = ..., color: str = ..., bg_color: str = ..., fontsize: Optional[Any] = ..., font: str = ..., stroke_color: Optional[Any] = ..., stroke_width: int = ..., method: str = ..., kerning: Optional[Any] = ..., align: str = ..., interline: Optional[Any] = ..., tempfilename: Optional[Any] = ..., temptxt: Optional[Any] = ..., transparent: bool = ..., remove_temp: bool = ..., print_cmd: bool = ...) -> None: ... @staticmethod def list(arg: Any): ... @staticmethod def search(string: Any, arg: Any): ...