Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to match the speed of a gif after converting to a video #173

Closed
noppanit opened this issue May 26, 2015 · 3 comments
Closed

How to match the speed of a gif after converting to a video #173

noppanit opened this issue May 26, 2015 · 3 comments

Comments

@noppanit
Copy link

I'm using moviepy to convert a gif to a video. The video is converted successfully. However, in some gif, the playback in some video is too fast resulting the video to be choppy when looping playback.

This is the example gif.

sabradanielle-tumblr-com

This is the code I use to convert.

video = VideoFileClip(gif_path)
video.write_videofile(filename, fps=15)
@noppanit noppanit changed the title How to match the speed of a gif after converting from a video How to match the speed of a gif after converting to a video May 26, 2015
@noppanit
Copy link
Author

I tried with FPS 15 but it doesn't change anything.

@Zulko
Copy link
Owner

Zulko commented May 26, 2015

have you tried with fps=30, or better with fps=video.fps ? What version of moviepy are you using ?

@noppanit
Copy link
Author

That solves the problem. I'm using version 0.2.2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants