frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Lazycut: A simple terminal video trimmer using FFmpeg

https://github.com/emin-ozata/lazycut
93•masterpos•6h ago

Comments

ariym•4h ago
I think this is the first instance I've seen of an actual terminal video player. Very fun to play with.
mikkupikku•2h ago
mplayer, mpv and I think VLC can do it, with the right output driver settings (libcaca or a few other choices.)
tptacek•2h ago
You can just use ffmpeg to extract frames, and then just render the raw images with unicode blocks.

(There's Kitty Graphics too, but I couldn't figure out how to make terminal UI layout work with it.)

chadrs•2h ago
yeah I remember learning this trick in like 2007 with libaa and later caca for color.

It looks like this app is shelling out to ffmpeg to get the bitmap of a frame and then shelling to something called chafa to covert to nice terminal-friendly video.

https://github.com/hpjansson/chafa/

mandeepj•4h ago
I guess I can find another implementation to combine trimmed parts after taking out certain scenes?
hiccuphippo•2h ago
Write a text file with all the parts like this:

    file 'file1.mp4'
    file 'file2.mp4'
    file 'file3.mp4'
Then call ffmpeg like this:

    ffmpeg -f concat -i files.txt -c copy output.mp4
And I guess you could make an LLM write a {G,T}UI for this if you really want.
faangguyindia•3h ago
I've been using ffmpeg with claude as video editor for long time.
hsuduebc2•1h ago
You mean you let create claude command or it itself runs ffmpeg on your local machine and returns you finished cut?
tptacek•2h ago
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.

bfrjjrhfbf•2h ago
Having to separately download ffmpeg in the windows distribution does not really make sense

Just bundle it

karlosvomacka•2h ago
afaik winget can automatically manage package dependencies.
sorenjan•2h ago
I disagree, I don't want another ffmpeg binary, I already have one. Winget works well, especially since this is already a terminal program.
ftchd•45m ago
People that use GUIs/tools for things like ffmpeg, rclone etc really want the developer to autodetect if they have it already, and use that instead of installing a separate version/binary.

How do I know? I built one (https://github.com/rclone-ui/rclone-ui)

sorenjan•2h ago
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.

ramon156•2h ago
I don't find Sharing files with people very difficult, just login to your FTP and give an account to another user. - Person commenting on OneDrive
sorenjan•1h ago
Missed opportunity to reference the famous Dropbox hn comment.

I just think there are other closely related use cases where a separate program can add more value, especially in the terminal. I wouldn't suggest most people should use ffmpeg instead of a gui, those are too dissimilar. Another example is cutting out a part of a video, with ffmpeg you need to make two temporary videos and then concatenate them, that process would greatly benefit from a better ux.

tptacek•35m ago
Point of order: the Dropbox HN comment is famously misconstrued. People think it was about Dropbox; it was about the Dropbox YC application, and was both well-intentioned and constructive.
gyan•19m ago
> with ffmpeg you need to make two temporary videos and then concatenate them

It can be done in a single command, no temp files needed.

hiccuphippo•1h ago
I used a plugin in mpv to do it but I can't find it anymore. You just pressed a key to mark the start and end. And with . and , you could do it at keyframe resolution not just seconds.
mhuffman•1h ago
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

Acrobatic_Road•10m ago
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.
chris_va•6m ago
Invoking ffmpeg, gzip and tar commands is a sort of reverse Turing test for LLMs
noiv•5m ago
On MacOs I just press space and trim with finder. Even avoids re-compressing.

Jemalloc un-abandoned by Meta

https://engineering.fb.com/2026/03/02/data-infrastructure/investing-in-infrastructure-metas-renew...
71•hahahacorn•41m ago•14 comments

The “small web” is bigger than you might think

https://kevinboone.me/small_web_is_big.html
96•speckx•1h ago•27 comments

Palestinian boy, 12, describes how Israeli forces killed his family in car

https://www.bbc.com/news/articles/c70n2x7p22do
127•tartoran•16m ago•8 comments

My Journey to a reliable and enjoyable locally hosted voice assistant

https://community.home-assistant.io/t/my-journey-to-a-reliable-and-enjoyable-locally-hosted-voice...
196•Vaslo•5h ago•64 comments

Apideck CLI – An AI-agent interface with much lower context consumption than MCP

https://www.apideck.com/blog/mcp-server-eating-context-window-cli-alternative
76•gertjandewilde•3h ago•78 comments

Launch HN: Voygr (YC W26) – A better maps API for agents and AI apps

34•ymarkov•2h ago•16 comments

Why I love FreeBSD

https://it-notes.dragas.net/2026/03/16/why-i-love-freebsd/
223•enz•7h ago•84 comments

Cert Authorities Check for DNSSEC from Today

https://www.grepular.com/Cert_Authorities_Check_for_DNSSEC_From_Today
52•zdw•20h ago•51 comments

Language Model Teams as Distrbuted Systems

https://arxiv.org/abs/2603.12229
12•jryio•1h ago•1 comments

Kaizen (YC P25) Hiring Eng, GTM, Cos to Automate BPOs

https://www.kaizenautomation.com/careers
1•michaelssilver•1h ago

Polymarket gamblers threaten to kill me over Iran missile story

https://www.timesofisrael.com/gamblers-trying-to-win-a-bet-on-polymarket-are-vowing-to-kill-me-if...
930•defly•6h ago•581 comments

Corruption erodes social trust more in democracies than in autocracies

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1779810/full
556•PaulHoule•7h ago•273 comments

US Job Market Visualizer

https://karpathy.ai/jobs/
259•andygcook•3h ago•220 comments

Where does engineering go? Retreat findings and insights [pdf]

https://www.thoughtworks.com/content/dam/thoughtworks/documents/report/tw_future%20_of_software_d...
5•danebalia•4d ago•2 comments

Launch HN: Chamber (YC W26) – An AI Teammate for GPU Infrastructure

https://www.usechamber.io/
7•jshen96•1h ago•2 comments

Lazycut: A simple terminal video trimmer using FFmpeg

https://github.com/emin-ozata/lazycut
94•masterpos•6h ago•33 comments

Starlink Mini as a failover

https://www.jackpearce.co.uk/posts/starlink-failover/
56•jkpe•10h ago•80 comments

The return-to-the-office trend backfires

https://thehill.com/opinion/technology/5775420-remote-first-productivity-growth/
33•penguin_booze•41m ago•5 comments

Home Assistant waters my plants

https://finnian.io/blog/home-assistant-waters-my-plants/
200•finniananderson•4d ago•91 comments

MoD sources warn Palantir role at heart of government is threat to UK security

https://www.thenerve.news/p/palantir-technologies-uk-mod-sources-government-data-insights-securit...
466•vrganj•6h ago•174 comments

Speed at the cost of quality: Study of use of Cursor AI in open source projects

https://arxiv.org/abs/2511.04427
39•wek•1h ago•16 comments

Even faster asin() was staring right at me

https://16bpp.net/blog/post/even-faster-asin-was-staring-right-at-me/
75•def-pri-pub•6h ago•39 comments

Kona EV Hacking

http://techno-fandom.org/~hobbit/cars/ev/
77•AnnikaL•4d ago•46 comments

Lies I was told about collaborative editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
141•antics•3d ago•73 comments

Comparing Python Type Checkers: Typing Spec Conformance

https://pyrefly.org/blog/typing-conformance-comparison/
65•ocamoss•6h ago•22 comments

AirPods Max 2

https://www.apple.com/airpods-max/
84•ssijak•5h ago•151 comments

On The Need For Understanding

https://blog.information-superhighway.net/on-the-need-for-understanding
16•zdw•4d ago•4 comments

The bureaucracy blocking the chance at a cure

https://www.writingruxandrabio.com/p/the-bureaucracy-blocking-the-chance
33•item•1d ago•55 comments

Event Publisher enables event integration between Keycloak and OpenFGA

https://github.com/embesozzi/keycloak-openfga-event-publisher
19•mooreds•4h ago•4 comments

Human Organ Atlas

https://human-organ-atlas.esrf.fr/
34•giuliomagnifico•1d ago•3 comments