← Back to context

Comment by nickjj

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

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

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

  • Thanks.

    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.