You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then it will indeed extend the MP4 and cut off less, but this needs to be a variable script as it will be used for many, many gifs. Any suggestions on how I can remedy this?
The text was updated successfully, but these errors were encountered:
Hello! when I execute the following code:
import requests
import moviepy.editor as mp
I experience loss of frames on the mp4 file. the mp4 will always start from the beginning but will seemingly arbitrarily cut off at some point.
Here is an example:
GIF: https://i.imgur.com/VaTidQA.gif
MP4: https://giphy.com/gifs/pesky-wabbit-5UqQOjkYLuWrvHzvsA
The gif is indeed downloaded in its entirety.
Upon testing, I found that if I change the last line to:
clip.set_duration(clip.duration + X).write_videofile("temp.mp4")
then it will indeed extend the MP4 and cut off less, but this needs to be a variable script as it will be used for many, many gifs. Any suggestions on how I can remedy this?
The text was updated successfully, but these errors were encountered: