logoalt Hacker News

nickjjyesterday at 12:52 PM2 repliesview on HN

> 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-w...

[1]: https://nickjanetakis.com/blog/create-video-clips-with-ffmpe...


Replies

bolangiyesterday at 8:56 PM

Nice 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

gandreaniyesterday at 8:24 PM

This is very cool! Do you have a similar workflow for stitching those cut clips together?

show 2 replies