Skip to main content

cli video clipping tool

Project description

stitchi

cli tool for video wrangling

This is currently just a proof of concept for video editing through scripts.

1.0 Features

A lot of these features can be expanded in the future, but the current features are below:

  1. Show available videos in your directory
  2. Play a video in your directory
  3. Trim a video
  4. Combine videos
  5. Generate thumbnail sheets

2.0 Staring Out

This is currently a CLI tool, so you will be interacting with the terminal when using this. Can be expanded into another interface if this tool were to be further worked on.

2.1 Getting Help

Let's take a look at how to work with this application.

2.1.1 Available Commands

To take a look at the available menu options, type in the following:

python main.py

2.1.2 Help Option

At any time, you can take one of the commands and add the --help option to get more information on what the function needs to process.

python main.py add --help

2.1.3 Example of Help Option Output

Typing the command will give you the arguments that the function needs, as well as any optional flags you have available. img.png

3.0 Adding Two Videos

For the add command, you need the base_video_index of the main video, and the add_video_index of the video you want to add to the end of the base video. Let's take a look at how to get the index of the two videos first.

3.1 Available Videos

Let's get the list of videos we have available by typing show command, to get a table of all the videos you have available.

python main.py show

The output should be a table with a lot of data, including the path, the size of the file and when it was created. The index of the file you are looking for is the very first column under #.

3.2 Run the Add Command

Once we have the two indexes, run the add command in order to clip them together. If you include the --output-name flag, you can name the merged video. When left blank, it will be given the default name.

  • Remember, that the argument is currently the fullpath for the output name
python main.py add 0 1
  • This code would merge two videos, (#0 and #1) together.
  • Video #1 would get appended to the end of Video #0

Things to Improve

  1. We can decrease the latency of pulling all the files in a folder. Currently, it searches recursively and the data is pulled from different sources
  2. The data could potentially be saved in a database, so we don't have to re-pull the files inside a folder every time
  3. Add different types of transitions. If we focus on improving the add function, it can be made to look professional
    1. https://trac.ffmpeg.org/wiki/Xfade have some fade types available depending on how we want to transition clips
    2. There's also options with overlays, so we can get really creative
  4. Thumbnail sheet generation can be improved by adding data on the resolution and duration
  5. Can automate the entire video editing process (will need to be able to run independent of the CLI)
  6. Adding multiple videos together at once
  7. The optional path for add could be cleaned up to be able to handle whitespace

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

stitchi-0.1.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

stitchi-0.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file stitchi-0.1.2.tar.gz.

File metadata

  • Download URL: stitchi-0.1.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for stitchi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f3e61ff927f61e99fd956c3208d97900c975e03509de8ede777132b2031b8f07
MD5 cf7b00cd9156ee33c1f1b0c4abd46a65
BLAKE2b-256 ed565e1be9a28b7275fb16b509b1e767bf25c61620f8bd7b7a90fd4f3df2dcdc

See more details on using hashes here.

File details

Details for the file stitchi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: stitchi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for stitchi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e64a9ddedc5c3bb72f94e3c4190b93c02bd76bb6e0db639cb7f95ce9a25c38da
MD5 23f22c3c1385a1c156cf23d14f2f9db8
BLAKE2b-256 8b5aa2cec792a685c16e033a9fe3ad8b3112d860d01b5c81c3cf838f5781475e

See more details on using hashes here.

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