<filename>gif_maker.py
from moviepy.editor import VideoFileClip
from tkinter.filedialog import *

video = askopenfilename()
clip = VideoFileClip(video)
clip.write_gif("mygif.gif", fps=10)

<filename>gif_maker.py
from moviepy.editor import VideoFileClip
from tkinter.filedialog import *

video = askopenfilename()
clip = VideoFileClip(video)
clip.write_gif("mygif.gif", fps=10)
