Remix.run Logo
hn_submit 4 hours ago

I've supported OpenShot financially in the past, but I'm currently leaning towards LosslessCut and Shortcut.

Most people want a video editor to splice and concatenate video files without any loss or transcoding. I believe this behavior (lossless) should be default on all of these editors.

nickjj 4 hours ago | parent | next [-]

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

wvbdmp 4 hours ago | parent | prev | next [-]

You have to make a lot of sacrifices for lossless editing, so it’ll probably always be a specialized app or at least a separate tool within an all-purpose NLE. For instance, you’re limited to compatible input streams and you can only cut on specific intervals, depending on encoder settings etc.

I guess an NLE could import clips in a locked mode by default that only supports lossless operations, and you’d have to specifically enable the rest. Could be interesting.

j1elo 4 hours ago | parent [-]

Note on the specific intervals: that's where the clever optimization comes in: leave as-is (passthrough) all not affected sections of the video (basically everything) and only recode the tiny fraction that needs recoding due to the cut being set on a non-keyframe.

That one, I do believe should get more research and implementations. Currently I only know of LosslessCut's "Smart" mode, but I'd like to see other big players of the video editing space improving the state of the art in that direction for simple cuts.

Youden 4 hours ago | parent [-]

I wonder, rather than re-encoding when starting on a B- or P- frame, could you preserve the entire GOP losslessly but make the earlier content "disappear" on playback by shifting PTS, or bundling several frames into a single frame's payload? Maybe it causes too many problems with players.

j1elo 17 minutes ago | parent [-]

That's an idea that got some discussion but generally is strongly discouraged. Cutting must mean that the underlying bytes are absolutely not there in the final result, otherwise it will cause data leaks that users would very reasonably expect not to be there.

Imagine "smart cutting" a critically compromising part of a video (e.g. showing some personal info) only to later find out that the actual footage was still there, it just needed some timestamp shifting to unveil.

Abishek_Muthian 4 hours ago | parent | prev | next [-]

LosslessCut is great, but I've had issues with the final export like timing being off, having cut sequence etc. I think it is very particular about encoding/container.

Shotcut is my default video editor, if anyone's trying it on Linux please use their AppImage as it solved most of my headaches when I was using Flatpak version.

birksherty 28 minutes ago | parent [-]

If it's lossless, it may change the cut position to enable lossless. If you want cut at an exact place, then all apps need to re-encode which will never be lossless.

For your particular requirement, you can't get lossless quality all the time by any software.

Sophira 4 hours ago | parent | prev [-]

For that kind of functionality, I would always recommend Avidemux[0]. It's quite a light package (which I like), and it allows you to do that and some other useful things too.

[0] http://fixounet.free.fr/avidemux/

mrbluecoat 4 hours ago | parent | next [-]

I absolutely love Avidemux but it doesn't preserve subtitles when removing a middle clip like lossless cut can.

roblh 3 hours ago | parent | prev [-]

Dunno if it’s just me, but I tried to download it the other day and couldn’t. The windows download link just punts you right back to their own site.

dizhn 2 hours ago | parent [-]

Just checked. Same thing happened to me. For all links, including old versions AND other packages. Seems to be a problem with fosshub. (I am on linux+firefox).