gnes.preprocessor.io_utils.video module

gnes.preprocessor.io_utils.video.capture_frames(input_fn: str = 'pipe:', input_data: bytes = None, pix_fmt: str = 'rgb24', fps: int = -1, scale: str = None, start_time: float = None, end_time: float = None, vframes: int = -1, **kwargs) → List[numpy.ndarray][source]
gnes.preprocessor.io_utils.video.encode_video(images: numpy.ndarray, pix_fmt: str = 'rgb24', frame_rate: int = 15, output_fn: str = 'pipe:', vcodec: str = 'libx264', format: str = 'mp4', **kwargs)[source]
gnes.preprocessor.io_utils.video.scale_video(input_fn: str = 'pipe:', output_fn: str = 'pipe:', input_data: bytes = None, start_time: float = None, end_time: float = None, scale: str = None, frame_rate: int = 15, crf: int = 16, vcodec: str = 'libx264', format: str = 'mp4', pix_fmt: str = 'yuv420p', **kwargs)[source]