import PIL
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
from moviepy.editor import VideoFileClip, concatenate_videoclips
clip1 = VideoFileClip("1.mp4")
clip1.save_frame("./capture/frame.jpeg", t=‘00:01:00‘) # frame at time t=1m
#set font
font = ImageFont.truetype("C:\Windows\Fonts\Arial.ttf", 26)
#open image
imageFile = "./capture/frame.jpeg"
image1= Image.open(imageFile)
#draw text on image
canvas1= ImageDraw.Draw(image1)
canvas1.text((0, 0), "00:02:00", (255, 0, 0), font=font) #position/context/color/font
canvas = ImageDraw.Draw(im1)
#save image
image1.save("./capture/target.jpg")