Earlier quoted context omitted.
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
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 proc…
Lazycut: A simple terminal video trimmer using FFmpeg
31–40 of 69 posts
Re: Lazycut: A simple terminal video trimmer using FFmpeg
#32Earlier quoted context omitted.
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
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 proc…
It can be done in a single command, no temp files needed.
Re: Lazycut: A simple terminal video trimmer using FFmpeg
#33Re: Lazycut: A simple terminal video trimmer using FFmpeg
#34Re: Lazycut: A simple terminal video trimmer using FFmpeg
#35Re: Lazycut: A simple terminal video trimmer using FFmpeg
#36Re: Lazycut: A simple terminal video trimmer using FFmpeg
#37I 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.
Re: Lazycut: A simple terminal video trimmer using FFmpeg
#38This 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 t…
ffmpegCmd := exec.Command("ffmpeg",
"-ss", fmt.Sprintf("%.3f", position.Seconds()),
"-i", p.path,
"-vf", strings.Join(filters, ","),
"-vframes", "1",
"-f", "image2pipe",
"-vcodec", "bmp",
"-loglevel", "error",
"-",
)Re: Lazycut: A simple terminal video trimmer using FFmpeg
#39I 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
- I haven't implemented audio support yet, but it would be nice
- I like --dry-run
- I didn't use a TUI widget library, but now it's at the point where it's tedious to refactor the UI / make it prettier
- I like OP's timeline widget
- Wanted to focus on static binaries. I got chafa static linking working for Linux, but haven't bundled ffmpeg yet
- which reminds me of licenses -- chafa and ffmpeg are LGPL iirc
- a couple other notes from early on: https://wonger.dev/posts/chafa-ffmpeg-progress
Re: Lazycut: A simple terminal video trimmer using FFmpeg
#40Earlier quoted context omitted.
mplayer, mpv and I think VLC can do it, with the right output driver settings (libcaca or a few other choices.)
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.)