logoalt Hacker News

Lazycut: A simple terminal video trimmer using FFmpeg

108 pointsby masterpostoday at 12:05 PM38 commentsview on HN

Comments

chris_vatoday at 6:47 PM

Invoking ffmpeg, gzip and tar commands is a sort of reverse Turing test for LLMs

tptacektoday at 4:15 PM

This is very cool. I built one of these myself around Christmas; Claude Code can put one together in just a couple prompts (this is also how I worked out how to have Claude test TUIs with tmux). What was striking about my finished product --- which is much less slick than this --- was how much of the heavy lifting was just working out which arguments to pass to ffmpeg.

It's surprisingly handy to have something like this hanging around; I just use mine to fix up screen caps.

Commenting mostly because when I did this I thought I was doing something very silly, and I'm glad I'm not completely crazy.

show 1 reply
sorenjantoday at 4:45 PM

I don't find trimming videos with ffmpeg particularly difficult, is just-ss xx -to xx -c copy basically. Sure, you need to get those time stamps using a media player, but you probably already have one so that isn't really an issue.

What I've found to be trickier is dividing a video into multiple clips, where one clip can start at the end of another, but not necessarily.

show 3 replies
ariymtoday at 2:08 PM

I think this is the first instance I've seen of an actual terminal video player. Very fun to play with.

show 1 reply
kawspertoday at 7:03 PM

I asked about this tool 3 days ago, HN is a magical place! https://news.ycombinator.com/item?id=47363432

noivtoday at 6:48 PM

On MacOs I just press space and trim with finder. Even avoids re-compressing.

mhuffmantoday at 4:59 PM

I have been using this one[0] and it is small, fast, and seems to work pretty great for me so far.

[0]https://github.com/wong-justin/vic

show 1 reply
Acrobatic_Roadtoday at 6:44 PM

Could have really used this a couple days ago. I had to record a video an assignment, but due to lack of global hotkeys on OBS with wayland, I had to start and stop the video on the OBS GUI. I tried to figure out ffmpeg but I was too tired and it was getting close to the deadline so I spent some time learning how to to do it with kdenlive.

bfrjjrhfbftoday at 4:24 PM

Having to separately download ffmpeg in the windows distribution does not really make sense

Just bundle it

show 3 replies
faangguyindiatoday at 3:09 PM

I've been using ffmpeg with claude as video editor for long time.

show 1 reply
mandeepjtoday at 2:53 PM

I guess I can find another implementation to combine trimmed parts after taking out certain scenes?

show 1 reply