Untitled

 avatar
unknown
plain_text
a year ago
545 B
4
Indexable
from moviepy.editor import ImageClip

# Define the path for the image
image_path = "/mnt/data/file-W39jRIEoRPAGeZ0xM2xXrrDv"

# Load the image
image_clip = ImageClip(image_path)

# Set the duration of the video (e.g., 10 seconds)
video_duration = 10

# Set the duration of the image clip
image_clip = image_clip.set_duration(video_duration)

# Define the output path for the video
video_output_path = "/mnt/data/converted_video.mp4"

# Write the image clip to a video file
image_clip.write_videofile(video_output_path, fps=24)

video_output_path
Editor is loading...
Leave a Comment