Are you too lazy to input precise timestamps into ffmpeg? Or maybe don't know how to use video editing software? This cool mpv script I'm gonna show you will let you easily make a clip of a video you're watching without even having to minimize it.
And that's it, now we're ready to use the script.
Default keybinding for opening it is Shift + W, you can mark start time with '1' and end time with '2'.
Click 'e' to encode.
Great thing about this script is ability to make clips from youtube without needing to download the video
itself.
You need yt-dlp for
that,
then just
mpv [url]
and make the clip. Also, yt-dlp supports
much more sites than Youtube,
so you can do the same thing with them too.