gnes.preprocessor.io_utils.video module¶

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