write_gif is automatically changing the resolution of the resultant gif as compared to the supplied video(mp4) file? How to avoid that?

Viewed 28

Please see the code below and the result. How can we get the gif in the original dimensions. The moviepy documentation doesn't seem to say much.

from moviepy.editor import * import os os.chdir(r'G:\') clip = VideoFileClip("VID.mp4").subclip(6*60, 6.1*60) clip.write_gif("vidgif.gif",program = 'ffmpeg')

enter image description here

1 Answers
Related