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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file amphi-1.0.15.tar.gz
.
File metadata
- Download URL: amphi-1.0.15.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd775731c20a1830ba633a9624399ba284299da963901194ebbd236490aa29f3 |
|
MD5 | 5a316c165417052060c7775e22a417bf |
|
BLAKE2b-256 | c0ad1e30365a357c205c0d270f5a60d903d3e4d443e59017dd146c1ce4635c15 |
File details
Details for the file amphi-1.0.15-py3-none-any.whl
.
File metadata
- Download URL: amphi-1.0.15-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ca56ff7450d18358a043c09b65c13ab961a36737f008335ece6b576debd1d7 |
|
MD5 | 2042ea9c4e76020ddc87f31801b8edde |
|
BLAKE2b-256 | 45dcbb224eadb29f61182cf8b32838be0e140cf63d93d8e493914521442469f1 |