MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / save_video

Function save_video

wan/utils/multitalk_utils.py:239–246  ·  view source on GitHub ↗
(frames, save_path, fps, quality=9, ffmpeg_params=None)

Source from the content-addressed store, hash-verified

237def save_video_ffmpeg(gen_video_samples, save_path, vocal_audio_list, fps=25, quality=5, high_quality_save=False):
238
239 def save_video(frames, save_path, fps, quality=9, ffmpeg_params=None):
240 writer = imageio.get_writer(
241 save_path, fps=fps, quality=quality, ffmpeg_params=ffmpeg_params
242 )
243 for frame in tqdm(frames, desc="Saving video"):
244 frame = np.array(frame)
245 writer.append_data(frame)
246 writer.close()
247 save_path_tmp = save_path + "-temp.mp4"
248
249 if high_quality_save:

Callers 1

save_video_ffmpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected