本文整理匯總了Python中moviepy.video.io.VideoFileClip.VideoFileClip.write_images_sequence方法的典型用法代碼示例。如果您正苦於以下問題:Python VideoFileClip.write_images_sequence方法的具體用法?Python VideoFileClip.write_images_sequence怎麽用?Python VideoFileClip.write_images_sequence使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類moviepy.video.io.VideoFileClip.VideoFileClip
的用法示例。
在下文中一共展示了VideoFileClip.write_images_sequence方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_write_image_sequence
# 需要導入模塊: from moviepy.video.io.VideoFileClip import VideoFileClip [as 別名]
# 或者: from moviepy.video.io.VideoFileClip.VideoFileClip import write_images_sequence [as 別名]
def test_write_image_sequence():
clip = VideoFileClip("media/big_buck_bunny_432_433.webm").subclip(0.2, 0.5)
locations = clip.write_images_sequence(
os.path.join(TMP_DIR, "frame%02d.png"))
for location in locations:
assert os.path.isfile(location)
close_all_clips(locals())