Skip to main content

MoviePy OOP wrapper

Project description

amphi

MoviePy OOP wrapper

Additional Requirements

  • ImageMagick binary file
  • Matplotlib
  • OpenCV

Usage

from amphi import Amphi

movie = Amphi()

movie.new_audio("music", "<path/to/audio/file>")
movie.new_video("video1", "<path/to/audio/file>")
movie.new_video("video2", "<path/to/audio/file>")
movie.new_video("video3", "<path/to/audio/file>", stabilize=True)
movie.new_text("title", "My Video", font="Arial", fontsize=100, duration=4)



print("Processing media resources...")
movie.video("video1").subclip(0, 5).keep("video1a")
movie.video("video2").subclip(0, 2).keep("video2a")
movie.video("video3").subclip(2).keep("video3a")

movie.video("video1a").composite("title").keep("intro")
movie.concatenate_by_video_id(["intro", "video2a", "video3a"])
movie.set_audio("music")
movie.render()

if movie.save("my-movie.mp4", fps=30, bitrate="16000k"):
    print("The video has been successfully saved.")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amphi-1.0.15.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

amphi-1.0.15-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page