A python package for quick cutting video sequences
Project description
ClipStitcher
A simple tool to automaticaly create video sequences with simple edits
( does not process audio yet )
Instalation instruction using pip
python3 -m pip install git+https://github.com/LiborKudela/clipsticher.git
Quick documentation:
Start with importing the package:
from clipstitcher import *
How to create scenes:
my_scene_1 = Image("path_to_my_img.jpg", duration=5)
my_scene_2 = Video("path_to_my_video.mp4")
scene_seq = Scene_sequence([my_scene_1, my_scene_2])
How to play or render any scene:
my_scene_1.play()
my_scene_2.render()
scene_seq.render(threads=2) # renders in parallel (default threads=1)
Or more specific instructions:
my_scene_1.play(start=start_frame_int, stop=stop_frame_int)
scene_seq.render(start=start_frame_int, stop=stop_frame_int, output="my_video.avi")
We can nest scenes arbitrarily:
deepest_level = Video("path_to_my_video.mp4")
middle_level = Overlay(deepest_scene, "path_to_my_overlay.jpg")
almost_top_level = Overlay(middle_level_scene, "path_to_different_overlay.jpg")
the_most_top_level = Scene_sequence([deepest_level, middle_level, almost_top_level])
the_most_top_level.render("getting_deeper.avi")
All available scenes with their args and kwargs:
Image(filepath, duration=5)
HtmlPage(url_or_filepath_or_htmlstring, duration=5)
Tweet(url, duration=5)
load_tweets_from_file("path_to_text_file_with_urls", duration=5)
Video("filepath")
load_videos_from_folder("path_to_folder_full_of_videos")
Overlay(scene, "overlay_filepath", screen_color = [0, 255, 0])
Scene_sequence(list_of_scenes)
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
clipstitcher-0.1.0.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for clipstitcher-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bea436508af46f1819d65de73acb79636e3d6277eaaa64615c68150488d3b48 |
|
MD5 | 1eba18776c6e9d5d98cdf2bac4435a7a |
|
BLAKE2b-256 | 646952d38b67e0391f320c6c5797ae67fbb6da857dda69d4fe2c3e2cec9dcafc |