def write_video_clips_to_directory(self, video_clips: List[VideoClip], directory: str, *,
file_extension: str = VIDEO_EXTENSION, audio: Union[str, bool] = True,
**kwargs):
"""
Writes a list of video segments to files in the specified directory
"""
for index, segment in enumerate(tqdm(video_clips)):
output_path = os.path.join(directory, str(index) + file_extension)
self.write_video_clip_to_file(segment, output_path, audio=audio, verbose=False, progress_bar=False,
**kwargs)
评论列表
文章目录