6 ms·
> Most people want a video editor to splice and concatenate video files without any loss or transcoding You can do this with mpv. It's an open source cross pla
by nickjj 16d ago
> Most people want a video editor to splice and concatenate video files without any loss or transcoding
You can do this with mpv. It's an open source cross platform media player.
For example, here's how I set up a tiny Lua script extension[0] to be able to visually cut videos in an intuitive way. It does it in seconds without re-rendering the video by shelling out to ffmpeg.
Years ago I did the same thing with a shell script CLI tool[1], but mpv's visual aspect makes it so much faster and easier to make clips out of a longer video.
[0]: https://nickjanetakis.com/blog/visually-create-video-clips-with-mpv-ffmpeg-and-a-lua-extension https://nickjanetakis.com/blog/visually-create-video-clips-w...
[1]: https://nickjanetakis.com/blog/create-video-clips-with-ffmpeg-in-seconds https://nickjanetakis.com/blog/create-video-clips-with-ffmpe...
- gandreani 16d agoThis is very cool! Do you have a similar workflow for stitching those cut clips together?
- nickjj 16d agoThanks. Not through mpv, but if all of the videos are the same resolution and codec you can use ffmpeg to concat them without needing to re-encode anything. It could be worth making a little wrapper script for this, but the ffmpeg command itself isn't too crazy. You can Google for "ffmpeg concat multiple videos into a single video without re-encoding". ffmpeg is super powerful, you can technically resize and alter videos into a consistent format and then encode a new video too.
- smartbit 16d agoVideo editor app that generates FFmpeg commands https://news.ycombinator.com/item?id=42207002 https://news.ycombinator.com/item?id=42207002
- bolangi 16d agoNice hacks! I made a similar script to extract clips from a source, possibly multiple files, and compress the result. https://metacpan.org/dist/App-fftrim/view/script/fftrim https://metacpan.org/dist/App-fftrim/view/script/fftrim