Skip to content

A user-friendly video editing tool that offers a range of features for creating and enhancing video content

License

Notifications You must be signed in to change notification settings

scriubuguri/ClipCrafter

Repository files navigation

Clip Crafter

This project offers a bloated solution for users to manipulate video content by downloading, trimming, concatenating, and enhancing it with overlaid text images at specific timestamps.

Features

  • YouTube Video Downloading: Easily download videos from YouTube by providing the video URL
  • Video Trimming: Trim the video into mini-clips
  • Concatenation: Seamlessly concatenate trimmed video clips
  • VTT File Integration: Extract text from a VTT file and create images to overlay them onto the video at specified timestamps

Requirements

  • Whisper
  • Ansi
  • Ffmpeg
  • ImageMagick
  • Python 3.x

Usage

  1. Clone this repository

Open a terminal and clone the repository.

git clone https://github.com/scriubuguri/ClipCrafter.git
  1. Install Ansi

  2. See Whisper repository and follow the instructions provided in the README to download one of the Whisper models

  3. Make the clip_crafter.sh script executable, run it and follow the intuitive instructions provided

chmod +x clip_crafter.sh
./clip_crafter.sh
  1. Generate the wav file (make sure you are in whisper folder)
ffmpeg -i /path/to/your/concatenatedvideo -ar 16000 -ac 1 -c:a pcm_s16le output.wav
  1. Generate the vtt file (make sure you are in whisper folder)
./main -m ./models/your-downloaded-model -f output.wav -l ro -ml 1 -ovtt

You can find the 4 and 5 steps also in the whisper repository with some examples.

  1. Run the command to process the vtt file (make sure you are in the main directory)
python3 wav_processing.py whisper.cpp/output.wav.vtt vttfile
  1. Run the command to create the final vtt file and extract timestamps and text
python3 w_concat.py vttfile vttfinal /path/to/your/concatenatedvideo
  1. Make the pic_generator.sh script executable and run it to generate text images
chmod +x pic_generator.sh
./pic_generator full_words path/to/your/concatenatedvideo
  1. Move the overlay_w_img.py in the folder where you have the video and run it to add captions on it
mv overlay_w_img.py path/to/your_video
python3 overlay_w_img.py

Author

  • scriubuguri

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

About

A user-friendly video editing tool that offers a range of features for creating and enhancing video content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published