@mpv-easy/crop v0.1.15-alpha.6
crop script for mpv
In order to preserve the filters added by the user, first use the mpv command screenshot-to-file to capture the video screen, and then use ffmpeg to crop it
install
You need to install ffmpeg and add ffmpeg to PATH
Download the latest version of crop.js and copy it to the mpv script directory, or use mpsm
mpsm install mpv-cropAdd configuration to input.conf shortkey
usage
By default, the shortcut key C adds the current time point to the segment, esc cancels the selection, and o exports the video.
If the video file is /a/b/c.mp4, the output image file is /a/b/c.time.x.y.w.h.webp. If no output directory is configured, it will be saved to the user's desktop
crop
mpv-easy
Use cut to select the video segment, and then use crop to crop it.
shortkey
Add configuration to input.conf
C script-message crop
o script-message output
ESC script-message cancelconfig
config file: crop.conf
crop-event-name="crop"
output-event-name="output"
cancel-event-name="cancel"
line-color="FFFFFF"
mask-color="00000040"
line-color-hover="00FFFF"
line-width=4
label-font-size=24
output-directory=""
crop-image-format="webp"