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

Closed
merjekrepo opened this issue Mar 5, 2024 · 3 comments
Closed

Speedx is not working the way it should #2127

merjekrepo opened this issue Mar 5, 2024 · 3 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.

@OsaAjani
Copy link
Collaborator

Thank you for your contributions and for reporting issues in this repository. With the release of v2, which introduces significant changes to the codebase and API, we’ve reviewed the backlog of open PRs and issues. Due to the length of the backlog and the likelihood that many of these are either fixed or no longer applicable, we’ve made the decision to close all previous PRs and issues.

If you believe that any of these are still relevant to the current version or if you'd like to reopen a related discussion, please feel free to create a new issue or pull request, referencing the old one.

Thank you for your understanding and continued support!

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

4 participants