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

Speedx is not working the way it should #2127

Open
merjekrepo opened this issue Mar 5, 2024 · 2 comments
Open

Speedx is not working the way it should #2127

merjekrepo opened this issue Mar 5, 2024 · 2 comments
Labels
question Questions regarding functionality, usage video Related to VideoClip and related classes, or handling of video in general.

Comments

@merjekrepo
Copy link

Hi,

I am trying to get gif out of a video using the moviepy module. I have the following code:

from moviepy.editor import *
clip = VideoFileClip("magicstat_introductory_video.mp4")
clip = (
        clip.
        subclip(0, 5).
        resize(0.5).
        speedx(1.0)
        )
clip.write_gif("magicstat_introductory_video.gif", fps=30)

If I use it on this video, I get this gif. The problem is that I don't get the clip at the same speed of the video in that gif output when I use 1.0.

Am I not supposed to get it at the same speed if I use 1.0 as the speedx parameter?

@merjekrepo merjekrepo added the question Questions regarding functionality, usage label Mar 5, 2024
@keikoro keikoro added the video Related to VideoClip and related classes, or handling of video in general. label Mar 5, 2024
@TimSchneider42
Copy link

Hi,

I believe the problem you are seeing is caused by #2151. As a workaround, you can try to set your FPS to 30/1000, which should cancel out the unit conversion error.

Best,
Tim

@merjekrepo
Copy link
Author

Hi,

I believe the problem you are seeing is caused by #2151. As a workaround, you can try to set your FPS to 30/1000, which should cancel out the unit conversion error.

Best, Tim

Well, I gave up long time ago and started using ffmpeg instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions regarding functionality, usage video Related to VideoClip and related classes, or handling of video in general.
Projects
None yet
Development

No branches or pull requests

3 participants