Dax11b
Lurker
- Joined
- Jul 9, 2026
- Posts
- 77
- Reaction score
- 3
TL;DR - If you're making compilations, the majority of the work of editing your clips can be done OUTSIDE a video editor and inside a normal video player like VLC or MPC-BE. The only use of a video editor is clip ordering, post processing, and encoding. Throw all of this in an AI and have it summarize it if you still don't want to read much.
Why bother with all of this?
Once this is installed, your workflow will be: Download source videos > Mark clip ranges in video player (I/O) > Extract clips (G) > Add clips to video editor, and final editing/reordering/encoding.
Autohotkey adaptation of Lossless cut
To make a compilation, I first extract clips from source videos. I used to use Lossless cut for clip extraction. It works, but I had a few problems with it. You have to load a playlist of videos directly into it, and that playlist doesn't save when you close the app. Seeking around videos is clunky and slow to respond. You also have to wait for every clip process after extracting. And because it cuts on keyframes, the timing of the cuts could be wrong.
So I had AI build me an AutoHotkey script that works with MPC-BE (you can adapt this to VLC or your video player of choice). It works a lot like Lossless cut. I hit I and O to set inbound/outbound cut points, and can set as many ranges as I want on one video. Then I press G. The source video gets moved to a good folder, and ffmpeg extracts a clip, which goes to a different folder (or the same one, your call). Extraction and processing runs in the background, which means I can immediately move onto editing the next clip. If a video is bad for a compilation, I press B and it goes straight to a bad folder in the same directory, and proceeds to the next. If you are defining multiple ranges and cuts within the same video, you can press F8 to bring up a preview of where cuts are, what times they're at, and remove/jump to any cuts.
The DaVinci part
Once everything is extracted, I drag the clips into DaVinci resolve (free video editing software). A second optional script in resolve drops them all onto a timeline, grouped by source video. By then 95% of the work is done. What's left is audio normalization, transitions, clip reordering (if needed) and encoding.
Customize it!
It's also very customizable, since an LLM builds it for you. You can set your own hotkeys, add labels or categories, send videos to different folders based on a key, whatever fits how you work. Below is the prompt I'd give to an LLM to build your own version. This should work with any free online LLM available, but will require some setup steps for you to perform. Part of the value of paying for the $20 subscription to Claude/Codex is that it will handle all of this setup for you. Otherwise, you'll need to do a little configuring if you're using a free version.
Happy to answer any questions, although an AI might be able to answer them better than me!
Why bother with all of this?
- On a whim I can start editing source videos for any compilation in any folder, at any time, and have that work be meaningfully saved. The ability to quickly start/stop work on any project, at any time is significant, vs having to open lossless/premiere/resolve when you want to edit a video. No opening project files until you're ready for final editing and encoding, and avoiding clunky editors in general.
- Video loading and seeking is way faster and more responsive than lossless cut.
- Extraction runs in the background, so I move onto the next clip while extraction processes with no downtime.
- Cuts land where I set them. It's not TRUE lossless since it re-encodes, but I haven't noticed a quality hit and the cuts are accurate.
Once this is installed, your workflow will be: Download source videos > Mark clip ranges in video player (I/O) > Extract clips (G) > Add clips to video editor, and final editing/reordering/encoding.
Autohotkey adaptation of Lossless cut
To make a compilation, I first extract clips from source videos. I used to use Lossless cut for clip extraction. It works, but I had a few problems with it. You have to load a playlist of videos directly into it, and that playlist doesn't save when you close the app. Seeking around videos is clunky and slow to respond. You also have to wait for every clip process after extracting. And because it cuts on keyframes, the timing of the cuts could be wrong.
So I had AI build me an AutoHotkey script that works with MPC-BE (you can adapt this to VLC or your video player of choice). It works a lot like Lossless cut. I hit I and O to set inbound/outbound cut points, and can set as many ranges as I want on one video. Then I press G. The source video gets moved to a good folder, and ffmpeg extracts a clip, which goes to a different folder (or the same one, your call). Extraction and processing runs in the background, which means I can immediately move onto editing the next clip. If a video is bad for a compilation, I press B and it goes straight to a bad folder in the same directory, and proceeds to the next. If you are defining multiple ranges and cuts within the same video, you can press F8 to bring up a preview of where cuts are, what times they're at, and remove/jump to any cuts.
The DaVinci part
Once everything is extracted, I drag the clips into DaVinci resolve (free video editing software). A second optional script in resolve drops them all onto a timeline, grouped by source video. By then 95% of the work is done. What's left is audio normalization, transitions, clip reordering (if needed) and encoding.
Customize it!
It's also very customizable, since an LLM builds it for you. You can set your own hotkeys, add labels or categories, send videos to different folders based on a key, whatever fits how you work. Below is the prompt I'd give to an LLM to build your own version. This should work with any free online LLM available, but will require some setup steps for you to perform. Part of the value of paying for the $20 subscription to Claude/Codex is that it will handle all of this setup for you. Otherwise, you'll need to do a little configuring if you're using a free version.
Code:
Build a portable video sorter and timeline assembly workflow.
Act as a careful Windows desktop automation and media workflow developer. I may only have access to this web chatbot, so do not assume you can inspect my computer, edit files, use a coding agent, or run commands for me. Give me the full contents of every file and exact setup instructions so I can create and install everything myself.
## Before you write any code
Ask me setup questions first. Use plain, simple language. Assume I know the basics of using a computer, but not technical terms. If you use a term like "web interface" or "scripting," explain it in a few words. Ask everything in one short numbered list, and tell me how to check anything I might not know. Do not assume which software I use. Ask me first.
1. Windows and AutoHotkey
- Which version of Windows do I have (10 or 11)?
- Is AutoHotkey v2 installed? Version 1 will not work, and both can be installed side by side.
2. Video player
- Which video player do I use to review videos (for example VLC, MPC-BE, MPC-HC, or something else)?
- Is its web interface turned on? This is a built-in feature that lets other programs read the current video and control playback. Tell me where to find the setting for my specific player. If I never changed the port, assume the default.
- If my player requires a password for this, tell me to choose one myself and type it into the config file. Never ask me to paste it into this chat.
3. Tools
- Are Node.js, FFmpeg, and ffprobe installed? Tell me how to check (for example, commands to run in Command Prompt).
- If something is missing, how do I prefer to install it (winget, manual download, or something else)?
4. Folders (ask these in plain language, with no jargon)
- Where are the videos I want to sort? Ask for one example full path to a single video.
- Are all my videos in one folder, or are they split into subfolders (for example, one folder per series, site, or source)?
- Where should my finished clips be saved? If I do not care, suggest a simple default and explain it.
- Do I want the finished clips organized into subfolders that match where each original video came from, or all together in one place?
Once I answer, work out the technical details yourself (which folder name is used for routing, where each output goes) and explain them back to me in plain words with one concrete example so I can confirm before you continue.
5. Video editor
- Which video editing software do I use (DaVinci Resolve, Premiere Pro, or something else)?
- Does it support scripting, and is that turned on? Tell me where to check for my editor. If I use DaVinci Resolve, also ask for my version and whether I have the free edition or Studio, and tell me to check Preferences > System > General > External scripting using.
- If my editor cannot be scripted the way Resolve can, tell me honestly what can and cannot be automated, and offer the closest workable option (for example, an ordered import list or an XML/EDL file). Do not invent features.
6. Keys
- Are the default keys G, B, I, O, and F8 free in my player, or have I remapped any of them? Do I want different keys?
Do not ask for passwords, API keys, account names, or unrelated personal details. Put all environment-specific paths and settings in one obvious config section or file with neutral example values. Never hardcode drive letters, network shares, usernames, or media names.
## Scope
Build two coordinated tools:
1. An AutoHotkey v2 sorter that marks ranges while a video plays in my player, extracts those ranges as separate MP4 clips in the background, and organizes the source files.
2. A script or import file for my video editor that builds a new timeline from the extracted clips, keeping segments from the same source together.
Do not add speed changes, transforms, uploading, automatic editing, or anything else outside this workflow.
## Sorter behavior
Player connection and hotkeys:
- Talk to my player through its local web interface for the active file, playback position, duration, and seek/play/pause. Use only interfaces and commands that are actually documented for my player. If my player has no usable local interface, say so plainly and suggest an alternative instead of guessing. Make the port configurable.
- Hotkeys must only be active in my player's window and must not affect any other app. Use the correct window or process names for my player.
- If the player or its web interface is missing, show a short, actionable message. Never silently move files or advance playback.
- Do not auto-retry a playback command that may have already worked. Bounded retries with a timeout are fine for reads.
Marking ranges:
- I sets an in point at the current position. O sets an out point. I and O can be repeated to save multiple ranges from one video.
- Define and document what happens when O is pressed first, when I is pressed again before O, and when O is pressed again after a range is complete.
- Reject invalid ranges (negative, zero length, or past the duration) without discarding earlier valid ranges.
- F8 opens a compact range editor showing each range's in, out, and duration. Let me edit either boundary, delete a range, and jump the player to either boundary. Accept both seconds and a readable timecode.
- Marking and editing only record selections. No extra confirmation step.
Processing keys (configurable):
- G: extract all marked ranges automatically in the background, then move the source file into a `good` folder beside its current folder. Extracted clips go to a separate `clips` folder at the location I chose. If there are no valid ranges, G must not move or rename anything.
- B: move the source to a `bad` folder beside its current folder. No extraction, no ranges needed, no renaming.
- Do not move companion files unless I ask.
- Name clips from the original source name plus a numeric suffix: `-seg0001`, `-seg0002`, and so on. No categories or prefixes. Never overwrite any existing file.
## Extraction and queue safety
- Run extraction in the background so I can keep reviewing videos. Always use an explicit output directory. Explain in plain words exactly how the output folder for each clip is worked out from where the source video was.
- Cut with FFmpeg using a frame accurate re-encode, not stream copy, so cuts land on the exact marked frames. Use H.264 video and AAC audio in MP4, with sensible quality defaults that I can change in the config.
- Keep the queue on disk so closing the app never loses queued work. Include a configurable concurrency limit and CPU thread count.
- Encode into a temp work folder first. Check that each output exists, is not empty, has the expected streams and duration, and decodes fully, then move it to its final name.
- Keep logs and a machine-readable job report with success or failure per range. Never report a partial file as a finished clip.
- Never delete the source. Record the job on disk before moving the source.
- Recover safely from interruptions. Detect stale locks without killing a live worker, and never treat an interrupted job as successful.
- Show non-modal tray or GUI status for queued, running, completed, and failed jobs.
- Provide a documented undo/recovery method for moves and outputs. It must verify ownership and refuse to move or delete anything that has changed or belongs to another job.
## Editor timeline step
Build this for the editor I told you I use. Use only documented features for my editor and version. If something differs by version, explain it and give a compatible route.
For every editor:
- Include video clips that use the `-segNNNN` naming. Parse the segment number numerically, group clips by source base name, and order each group's segments numerically.
- Randomize the order of source groups while keeping each group together. Where duration metadata is reliable, favor alternating shorter and longer groups. Support an optional random seed for debugging.
- If duration metadata is missing or bad, keep the clip and use a neutral rank. Never drop a clip for missing metadata.
- Create a new, uniquely named timeline or sequence. Never modify an existing one, and add no transitions, transforms, or speed changes. Print or show a short summary with the clip count and anything skipped.
If I use DaVinci Resolve:
- Run from the supported scripting entry point for my version (free and Studio differ). Use the currently selected Media Pool bin as input. State clearly whether it reads direct clips only or also sub-bins, and make that configurable if practical.
- Check and report whether Resolve is running, a project is open, a bin is selected, and the bin has usable clips. Select the new timeline when done.
If I use anything else, follow what we agreed in question 5.
## Deliverables
After I answer the setup questions, give me:
1. A small folder and file layout.
2. Complete source for every file (AHK, Node, PowerShell, editor script, and config). No ellipses, no omitted helpers, no references to files you did not provide.
3. A README covering the full workflow from marking ranges to importing clips and building a timeline, plus requirements, setup, config, key map, naming and routing, recovery, troubleshooting, and uninstall.
4. Exact install steps for AutoHotkey v2, my player's web interface, Node and FFmpeg if needed, and my editor's scripting setup for my version. Include a manual path for creating each file by hand.
5. A short test checklist using copies of a few sample videos: invalid ranges, multiple segments, duplicate output names, player not running, a failed or aborted encode, B moving a source without extraction, automatic background extraction on G, and a missing duration value.
6. A clear list of assumptions, version compatibility notes, and anything I need to decide before using real media.
Keep the code readable and defensive, and explain any non-obvious Windows or editor limits in plain language. Do not claim the code was run or tested on my machine. Ship with safe defaults: file moves and extraction stay disabled until I enter my own paths.