Skip to main content

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

pip instal clipstitcher

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


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.2.5.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clipstitcher-0.2.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file clipstitcher-0.2.5.tar.gz.

File metadata

  • Download URL: clipstitcher-0.2.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for clipstitcher-0.2.5.tar.gz
Algorithm Hash digest
SHA256 413a135d965067ec5dbb233686d7c3738c17f3a0b95b3593c338fae5f11faf49
MD5 80cd5bd6c039296097ed4987dc320a3e
BLAKE2b-256 9ad51d0c43859343d2f214dd8ea5f7f5013d1d7cf181d0cb3b64774c5e5db5e3

See more details on using hashes here.

File details

Details for the file clipstitcher-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: clipstitcher-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for clipstitcher-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 de7e540f56707a3d9148aafa29eb6efe0b523e3aef042f1a1750bf8159041d96
MD5 65cf0908067d386483782b444bd96843
BLAKE2b-256 9e721ba541a842e2b3da5f9d6e1ce24afa8e9e4a90a45de37f21912a91dfb520

See more details on using hashes here.

Supported by

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