Create lossless clips directly from mpv.
Run the following in your terminal.
git clone https://github.com/taupiqueur/mpv-clip.git
cd mpv-clip
make installAlternatively, grab the clip.lua file and drop it into your scripts directory.
Copy the clip.conf example configuration to your script-opts directory.
See the manual for setup and usage instructions.
Report bugs on the issue tracker, ask questions on the IRC channel, send patches on the mailing list.