[Python] Python MoviePy Can't Speed Up Video

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    Why am I unable to speed up videos with MoviePy? There are two versions MultiplySpeed and speedx, but I couldn't get either working. When I use MutiplySpeed below, I receive the error: Exception has occurred: AttributeError 'MultiplySpeed' object has no attribute 'write_videofile'. Please send help.

    import moviepy.video.fx as vfx
    from moviepy.video.fx import MultiplySpeed


    # Load the video
    clip = VideoFileClip(r"xxx.mp4")
    clip = MultiplySpeed(2)
    clip.write_videofile("output_fast.mp4", codec="libx264")

    Continue reading...

Compartilhe esta Página