0.1.15-alpha.6 • Published 6 months ago

@mpv-easy/crop v0.1.15-alpha.6

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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

  • Add 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 cancel

config

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"
0.1.15-alpha.6

6 months ago

0.1.14

8 months ago

0.1.13

11 months ago