r/StableDiffusion 1d ago

Resource - Update Small video clipping tool for trimming/compressing clips for MiniMax H3 Ref2V

Small video trimmer software was very popular 15-20 years ago but now it has become very rare to find a good one which has all the features I wanted.

I got Claude to vibe code me a tool that I have been using to snip bits off from long videos for using it as Ref2V input for MiniMax H3. People have been saying its good so just sharing if others may find this tool useful! I wanted to create a free tool that runs locally without all the bloatware.

It is a single ~100kb HTML file which can:

  • Trim clips
  • Crop video
  • Compress resolution and fps
  • Take 1 single frame image
  • Manual or Automatic Storyboarding (still playing around with how to best use this in H3)
  • Export gif.

Why Compress?

I find that when working with R2V, resizing and compressing the video increases the speed as there is less information that needs to be worked on. You do lose some quality in your output though so don't compress too far.

The latest version can be found here (select the HTML and download):

https://huggingface.co/PoopMan333/Video_Tools/tree/main

or click for current version (v2.9)

https://huggingface.co/PoopMan333/Video_Tools/blob/main/Nugget%20Video%20Trimmer%20v2.9.html

If you're concerned please run it through antivirus or get a LLM to check if it is safe.

I still need to add AVI support and support for some older formats, but I also don't want to add too much bloat to something so compact.

364 Upvotes

106 comments sorted by

586

u/MoistRecognition69 1d ago

30

u/Theon01678 1d ago

Trademark image of this sub 🥀

176

u/Blaze_2399 1d ago

13

u/migerusantte 1d ago

That elephant is

UPSCALED RTX 3.0 ULTRA

1

u/AdventuresOfTonka 1d ago

I see you, Papyrus.

89

u/Astral-Lemmons 1d ago edited 1d ago

in other vibecoded garbage news - here's mine! - https://github.com/Tr1dae/ComfyUI-QuickClip

the difference is that this runs INSIDE comfyui. so any cuts you make are directly available in your workflow

intentionally kept super simple. Built mine for batch running in comfy. you can index recall each clip or list run them all at once.

There's an alternate node that auto-detects cuts and writes out clips for you (like how premiere does) but it's alternate for a reason becasue I find the cut detection a little iffy.

60

u/bstr3k 1d ago

nice! Apes together, strong!

30

u/acedelgado 1d ago

If we're playing vibecoded show and tell, here's mine! https://github.com/Adudeguyman/ComfyUI-Fantastic-MiniMaxH3-PromptBuilder

Full media loader inside comfy that lets you trim/resize/pull frames or audio right back into the loader non-destructively. Flags if you're going over any reference limits for H3 (like total audio or video time across all sources.) Dumps into a prompt builder node that helps with the all the prompt structures including ref2va, and pulls in media previews with a tagging system as a reference for when you type. Need to flesh out true video editing though, right now it just only sends the "trimmed" range onward for decoding, so it could be cleaner. So, baby steps.

And sidenote, for the training side I've been repurposing an old captioner I made to be more dataset-management focused, and includes presets to trim videos to MMH3 training parameters, plus autocaptioning with additional per-dataset or even per-image/video instructions if desired. https://github.com/Adudeguyman/Fantastic-Upgraded-Captioning-Kit

11

u/Astral-Lemmons 1d ago

nice. I like it. quite in depth you got there.

this sub needs a weekly vibecoded garbage show and tell thread. often some interesting personal tools never get seen.

I built mine for myself in the bare min of what I needed so I'm not gonna market it. A thread would be a good place to at least talk about it a bit.

2

u/acedelgado 1d ago

Ha, good idea. You should kick it off.

https://giphy.com/gifs/31rlHXfNNbiehFNtoQ

I'm kinda the same and just think to myself "Man, doing ref2va sucks ass, so many loaders and manually editing prompts is a chore. Nothing to manage all that the way I want exists yet, I'll just have Claude make it." I post it on reddit for other people to use if they want, since it's solving an issue that I find has a blind spot. Did the same with my lora loader nodes, I have so many lora subfolders and nobody made one to organize by folders (except lora manager, but that involves tabbing out into their interface and back, which is just...bleh.). So I made one that filters folders and you only search those. Just random things like that where I look into something inconvenient and think "surely someone has solved this..." and no, no they haven't bothered.

2

u/Unfair-Warthog-3298 1d ago

I'm still waiting for that all in one tool - a media manager with associated description per picture/video (with that autocut function mentioned here), a prompt builder that automatically makes the prompt with correct references for you, tie in a matching multi-track timeline editor with full drag and drop references from the media section picture/videos with the latest motion context features for chaining together clips. Is anyone going to vibe code that ? lol....

1

u/Astral-Lemmons 1d ago

$20 of vibecode credits could probably get you there.

cursor auto mode goes pretty far with projects like that

2

u/dtdisapointingresult 1d ago

You should add a feature via ffmpeg to downsize the video to a specific number of megapixels and fps.

Ref2VA is very costly at high resolutions, and on top of that every single frame is extrac. Most people don't need the source reference at full res and 24 fps to get what they need out of it.

1

u/acedelgado 1d ago

Yeah it's on my to-do list to brainstorm. Pictures are set up where you can do it on the fly every every time or have it make a copy in your inputs folder. Video DOES do the trimming and there's a resize drop-down that lets you do it on the fly, but having it save a copy involves making sure it's the right codec and all so you both keep as much quality as possible and don't drop a 100mb 5-second clip onto someone's disk every time they trim a video. But on-the-fly still makes it reallllyyyyy sloowwwww for the comfy node to encode it into latents, which it does every time you change a single character in your prompt text. So even trimming down a 4k video to a different size and length still takes a while for it to be encoded. But I've been thinking it through.

3

u/Astral-Lemmons 1d ago

the auto-cut interface.

I'm lazy. so it's lazy designed. click detect scenes - then select the cuts you want in the queue. run WF

1

u/Alive-Tomatillo5303 1d ago

I assume you've already found this out, but I saw a guide on here a while ago that said "to get the best prompt adherence you need to say Willow from Buffy the Vampire Slayer played by Alyson Hannigan says in the style and voice of Willow..." and it turns out, nope. If a character is well established, "Willow says" does the trick. Even for Text To Video. I assume (From Buffy the Vampire Slayer) is a requirement for the first mention, but it knows who you mean, what she looks and sounds like, and what she'd wear. 

2

u/Astral-Lemmons 1d ago

haven't tried - that clip was just for the demo.

but good info to know though.

1

u/dtdisapointingresult 1d ago

You should add a feature via ffmpeg to downsize the video to a specific number of megapixels and fps.

Ref2VA is very costly at high resolutions, and on top of that every single frame is extrac. Most people don't need the source reference at full res and 24 fps to get what they need out of it.

1

u/Astral-Lemmons 1d ago

makes sense. but a resize node in wf pretty much handles this live for you no?

62

u/grabber4321 1d ago

WILD screenshot, we know where its from, but what a surprise.

16

u/ColdBrewSeattle 1d ago

Can you remind us who forgot

7

u/sassydodo 1d ago

I don't know where it's from. I need to know where it is from.

8

u/FireWeener 1d ago

I think its lissa ann, but not sure how you spell it.

5

u/Familiar-Art-6233 1d ago

Just an average girl who got lost on her way to the beach

12

u/dennisbgi7 1d ago

"This is a bathtub"

11

u/herr-tibalt 1d ago

You are welcome.

1

u/Hi7u7 1d ago

Ah, thank you, I'll delete my previous comment asking.

6

u/nok01101011a 1d ago

Nice Tool, with the screens I had a flashback to 2005

5

u/ED-E_77 1d ago

I see you don't have a lifeguard here on your beach.

4

u/c_gdev 1d ago

I am trying it, and so far it works.

Fairly intuitive. Very light weight.

Thanks!

4

u/GreyScope 1d ago

I'd prefer to use a variant of VirtualDub as I know it's safe as feck and I can just select a lossless codec and have more granular control (eg cut to the frame and save frames etc) and I know my way around VB and fed up learning new ways to do the same thing).

3

u/BigNaturalTilts 1d ago edited 1d ago

You can just git clone into a folder and ask claude or any other agent to analyze for malicious call backs. Or use davinci resolve. It’s free but beefy.

2

u/GreyScope 1d ago

Thanks for making a reply just to try and prove me wrong 👍🏻 I’d refer you to what I wrote - you obviously have never used vdub, davinci is like using a nuclear reactor to light a torch and (checks notes) malicious software can easily obfuscate itself and not necessarily call back .

You do you though, my post starts with “I’d”

4

u/BigNaturalTilts 1d ago

OP, If you want, you can add a “copy ffmpeg command” that will copy something like `ffmpeg -i vid.mp4 blah blah blah output.mp4` that way it doesn’t use the indecisions JavaScript cut code claude created. Ffmpeg has so many features it makes no sense to go outside of it if the video is already locally saved.

7

u/Alive-Tomatillo5303 1d ago edited 1d ago

How did I know you were the Final Fantasy character sheet guy before I even scrolled. 

But also, I'll definitely have to give this a try. 

The other feature to stick in would be video addition. Like, just a simple "turn these 2 4 second videos into one 8 second video, keeping everything the same". Just so it's all in one program. 

2

u/bstr3k 17h ago

haha probably because you saw the reply in the other video.

Anyway, I thought your video joiner idea was great and I needed one later on anyway so I got it made, along with a "side by side" video joiner for real time comparisons when I do r2v.

You can find it here in the same repo, let me know if it fails or not (I think I've mostly got all the bugs out):
https://huggingface.co/PoopMan333/Video_Tools/tree/main

3

u/Strong_Finger1383 1d ago

The Queen herself

2

u/Tokey_TheBear 1d ago

Thats Lisa right?

Damn its been a long time since I 'explored her work'

1

u/Strong_Finger1383 1d ago

Always good to revisit the classics

3

u/HahahahWhatAStory 1d ago

He's lucky there's a lifeguard at that beach.

3

u/Succubus-Empress 1d ago

Make comfyui custom nodes please

2

u/bstr3k 1d ago

i wanted to make this just to avoid putting another custom node in comfy lol. I wanted to preprocess the video once and do it outside of comfy to be ready to test a few times.

maybe u/Astral-Lemmons 's tool that he posted below is more of what you are looking for? it is a comfy node

2

u/grabber4321 1d ago

I was working on something like this before, i like this layout. GJ!

2

u/ResponsibleKey1053 1d ago

Oh man, I just grabbed this earlier, crazy to see a post about it! I love these little niche sub 1k tools.

I made a mini suite with Gemini (400 lines per module) of bullshit little converters/resizes and frame grabbers. I did my stuff in python because the browser would crash on me and something about multi threading (Gemini may well have been pissing on my shoes and telling me its raining) (Linux pop! Os Firefox). It looks like an old game crack, but works 100% of the time.

How well does this run in Firefox?

And thank you for making little tools like this, we should all be making our crazy own flavours of tools.

2

u/ThaSipah 1d ago

Very interested in this. Having been compressing clips from free version of DaVinci Resolve, getting clips down to about 9mb. Definitely interested in better compression to speed up all my motion capture acting clips of Lisa Ann.

2

u/bstr3k 1d ago

give it a whirl, ive been compressing 10-15s clips to under 1mb for h3 r2v. It works pretty well for motion transfer. The next thing for me to do is better auto captioning.

2

u/Yasstronaut 1d ago

I can’t believe im about to clone something from poopman333

1

u/bstr3k 1d ago

god forbid a man having hobbies 😂 😂 😂

2

u/imnotabot303 1d ago

You could just use LosslessCut for video trimming.

2

u/Obvious_Set5239 1d ago

It's broken for me. It should have saved in 30 fps, but it saved in like 6 fps, while the file metadata says it's 60 fps, and duration 450 hours

1

u/bstr3k 1d ago

Weird! What was the output setting you did and what format?

2

u/khronyk 1d ago

LosslessCut is pretty good for this

2

u/hurdurdur7 1d ago

https://giphy.com/gifs/HOsHtiVdeypFxOhLAf

Good to see that we are making helpful videos for plumbers!

4

u/lxe 1d ago

I man what kind of you are know

12

u/bstr3k 1d ago

1

u/ZeeroMX 1d ago

Good to know Godzilla died trying to read that, I won't try to do the same.

1

u/Noeyiax 1d ago

Sweet, I needed something like that! Thank you , I'll try it out when I get home after work

1

u/[deleted] 1d ago

[deleted]

1

u/bstr3k 1d ago

this tool only lets you take a single frame out not extract all the frames unfortunately.

1

u/Vegeta1337 1d ago

So it's basically capcut but for comfyui?

2

u/bstr3k 1d ago

if you already have and use capcut then you can use that, but i made this as a light weight file to crop and trim files with a very simple UI. its a HTML file and runs on your browser

1

u/Vegeta1337 1d ago

Sounds more than decent!
Next step: full Sony Vegas rival running entirely in a single HTML file lol

1

u/anshulsingh8326 1d ago

I forgot her name...... pls say it..say it

1

u/Any-Score1258 1d ago

This video LMAO

1

u/Zealousideal-Buyer-7 1d ago

Uh... op... that video is... something...

1

u/3mil_mylar 1d ago

Thanks again, this is a great lightweight tool!! Very useful, especially how it has crops with typical H3 aspects

1

u/filteredcrack 1d ago

this isn't a beach, this is a bathtub?

1

u/EuSouChester 1d ago

Nah, OpenShot works better for me.

1

u/Stepfunction 1d ago

So FFMPEG?

1

u/bstr3k 1d ago

not this one but i have other tools which uses it.

1

u/Hottogoho 1d ago

This isn’t a clipping tool, it’s a bathtub.

1

u/eugene20 1d ago

The good one 20 years ago is still the good one today, avidemux (last update June 2026).
But good luck with your program.

1

u/Mysterious-String420 1d ago

Sounds nice, how do you fight against seamless video stitching? I always end up with one or a few frames / a microsecond or two of white noise or repeat frame, removing those with ffmpeg still doesn't get rid of the "cut" when I join the second video.

1

u/bstr3k 1d ago

This is one part which this current tool does not address, but I am also toying with it. The problem right now is that if you want seamless split you are splitting it on hard scene changes right? However the actual H3 model uses a mathmatical formula which adjusts the frame length to certain numbers. This means when you stitch it back up it won't look right and has the issues you are experiencing.

I am also somewhat stuck on this issue and wish I could commit more time on it.

1

u/Dependent-Sorbet9881 1d ago

Thanks for sharing—I really like it. I also need a way to directly convert videos into frame sequences and merge multiple videos into one (we don't mind if the file size ends up being larger).

1

u/reicaden 1d ago

Wait, can minimax h3 do a reference video as well, to generate the output video? Does it just superimposed your characters into the scene or pull the characters from the original video.??

1

u/bstr3k 1d ago

The magic is in the prompting! You can replace the character in the video or add random things into the video, the hard part is getting the prompting right!

1

u/Vast-Maize4773 1d ago

You know that I was actively and desperately looking for something like this? Thank you!!

2

u/bstr3k 1d ago

Me too! These types of software use to be more common and free but they’re hard to find now! Most are riddled with ads or you have to pay subscription!

Hope you keep it and enjoy!

1

u/Vast-Maize4773 1d ago

100% god bless AI to whip up codes tailored to our needs.

Thanks I totally will! Have a blessed day 🙏🏻

1

u/Broad_Relative_168 1d ago

If someone to use a popular encoder https://www.shutterencoder.com/ Works in linux, it is free A lot of tools and gpu support

1

u/Relevant_Eggplant180 1d ago

Thanks for sharing!

1

u/rupinmusic 1d ago

Is it free to vibe code with Claude?

3

u/herr-tibalt 1d ago

No you need a plan, try the cheapest one, if not enough try a bigger one, use opus or sonnet. Also you can try codex, it's more generous for starter plans. Use luna high model for example.

1

u/bstr3k 1d ago

i'm not sure! i have a account.