Skip to content

AI Video Editor: Use an LLM to stitch together multiple videos and do the rough-cut of video editing for you.

Notifications You must be signed in to change notification settings

mitch7w/ai-video-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM Video Editor

thumb

Use an LLM to stitch together multiple videos and do the rough-cut of video editing for you.

It's rough, it sometimes still includes pauses and mistakes in the final video and it only works with video with dialogue in it but it can do a decent job and is a proof-of-concept that video editing with LLMs is possible. Products like http://Gling.ai obviosuly show how powerful this workflow is and will only get better as the underlying models do too. This uses Claude 3.5 Sonnet as GPT-4o wasn't handling the cuts so nicely.

Final edited video and raw clips can be seen at https://x.com/mitch_7w/status/1805579775685411150

To use:

  1. Download the code
  2. Create a .env file with your OPENAI_API_KEY and ANTHROPIC_API_KEY set inside of it.
  3. Run pip install -r requirements.txt
  4. Place the input videos you want edited into the same folder as the code and enter the filenames in the video_files array at the top of the ai_video_editor_simple.py file.
  5. Run and check out the ai_output.mp4 video when it's done.

About

AI Video Editor: Use an LLM to stitch together multiple videos and do the rough-cut of video editing for you.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages