3 ms·
i love this but dont use emacs. i wish that existing tools were lighter weight at video trimming. Screenflow is the lightest i know of but fails badly at some v
by swyx 1y ago
i love this but dont use emacs. i wish that existing tools were lighter weight at video trimming. Screenflow is the lightest i know of but fails badly at some video formats and sometimes OoMs. if it had a better architecture streaming bytes i feel like it might not have that problem.
any other light weight trimming people have?
- xenodium 1y ago> Screenflow is the lightest i know of but fails badly at some video formats and sometimes OoMs I'm a big fan of ScreenFlow, but light it is not ;) If you just want to trim and assuming you are on macOS, QuickTime's "Edit > Trim..." does the job. It's what I used before doing the Emacs thingy.
- latexr 1y agoI find my approach lightweight, but it’s still around 80 lines of code so a tad big to share as an HN comment. It also requires a bit of explanation to set up (though once done, it’s incredibly simple to use) and the output is custom to my needs. Essentially, I already use mpv as my video player, which in addition to being very fast also allows seeking frame-by-frame, saving and returning to positions, and running Lua scripts. So I wrote some Lua which reacts to a specific key press by saving the current video timestamp. Press it again and it records a second timestamp, then it fires off Handbrake CLI (FFmpeg could also work) to do the cutting and save the trimmed file. If you search online for “mpv cut video” you should find some plugins with that same idea. I have never used them so I can’t attest to how good or bad they are. All the ones I found are larger than my approach, but then again I just made mine do exactly what I want without customisation so that’s to be expected. One specific advice I’ll give, if you go this approach and are on the Apple ecosystem: Use the Handbrake CLI instead of FFmpeg to do the cutting. FFmpeg was super frustrating and I was unable to get a result where the output video worked properly in Quick Look and sending through iMessage; after too long trying to get it to work and messing with a myriad flags, I switched to Handbrake with no weird settings and it’s been working flawlessly ever since.
- jcynix 1y agoLightweight? I don't mind a bit of weight if its versatile. But when I want to do things fast, I use Shotcut (free, open source) which is much easier to use than e.g. ffmpeg. There exist a number of good tutorials showing how to accomplish tasks. https://en.wikipedia.org/wiki/Shotcut https://en.wikipedia.org/wiki/Shotcut P.S. What's great about tools like emacs or ffmpeg is their usability via a command line and thus scripting. Which even works on an Android device running inside Termux.
- kccqzy 1y agoI consider Handbrake lightweight. It never fails at any video formats I care to test and it also transcodes them to modern video codecs.
- wonger_ 1y agoI made a video trimmer for the terminal: https://github.com/wong-justin/vic https://github.com/wong-justin/vic But haven't worked on it in months. Usable for now if you don't need audio
- tombert 1y agoAvidemux is ok for what it is. I use it for snipping and stitching stuff together because you can avoid full reencodes when exporting.
- voltaireodactyl 1y agoLossless Cut is free, open source, and very simple to use. Highly recommend. Wayyyyy lighter than screen flow.
- arifmeticus 1y agoLossless Cut is a 300 Mb Electron app, not exactly light. But it does its job.