lucataco / video-split

Simple tool to split apart a video into snippets

  • Public
  • 123 runs
  • CPU
  • GitHub
  • License

Input

*file

Input video file (MP4 or MOV)

number
(minimum: 1, maximum: 10)

Target duration for each segment in seconds

Default: 2

integer
(minimum: 320, maximum: 1920)

Target width for each segment

Default: 848

integer
(minimum: 240, maximum: 1080)

Target height for each segment

Default: 480

integer
(minimum: 1, maximum: 60)

Target FPS for each segment

Default: 30

boolean

Create empty caption files for each segment

Default: false

Output

Generated in

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

About

A video preprocessing tool designed specifically for preparing videos for LoRA fine-tuning. This tool processes videos into the format required to fine-tune, including options for length segmentation, resolution, and frame rate.

Input Video Requirements

  • Format: MP4 or MOV files
  • Length: Any length (will be split into segments)
  • Resolution: Any resolution (will be processed internally)
  • Quality: Clear, well-lit videos work best

Output Format

  • A zip file called processed_videos.zip
  • Output folder contains files in the format: segmentX.mp4
  • Empty captions will have the same name as the video segment. Ex: segment1.mp4 + segment1.txt

How to use

  • If you have a long video of the video effect you want to train with, use this model to split it up into the right segment length and resolution.
  • Then use a video caption model to pair each video segment with a txt caption file
  • Your zip of video segments and captions can then be used to train a video model like genmoai/mochi-1-lora-trainer

Example run

The featured example is a VHS effect by Luis Quintero. This model takes that video and segments it into 5 video segments of 2 seconds each at 544 × 960 resolution, returned in a single zip file