MCPcopy
hub / github.com/modelscope/DiffSynth-Studio / save_video

Function save_video

diffsynth/data/video.py:140–145  ·  view source on GitHub ↗
(frames, save_path, fps, quality=9, ffmpeg_params=None)

Source from the content-addressed store, hash-verified

138
139
140def save_video(frames, save_path, fps, quality=9, ffmpeg_params=None):
141 writer = imageio.get_writer(save_path, fps=fps, quality=quality, ffmpeg_params=ffmpeg_params)
142 for frame in tqdm(frames, desc="Saving video"):
143 frame = np.array(frame)
144 writer.append_data(frame)
145 writer.close()
146
147def save_frames(frames, save_path):
148 os.makedirs(save_path, exist_ok=True)

Calls

no outgoing calls

Tested by

no test coverage detected