0.1.15-alpha.6 • Published 6 months ago
@mpv-easy/cut v0.1.15-alpha.6
cut videos script for mpv
install
You need to install ffmpeg and add ffmpeg to PATH
Download the latest version of cut.js and copy it to the mpv script directory
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 video file is /a/b/c.start.end.x.y.w.h.mp4
cut
cut will display the currently selected video segment in the video
mpv-easy
When the mouse is in the progress bar area, add the current mouse position to the segment, otherwise add the current time to the segmen, progress bar uses green to display the selected area by default
shortkey
Add configuration to input.conf
c script-message cut
o script-message output
g script-message output-gif
ESC script-message cancelconfig
config file: cut.conf
cut-event-name="cut"
output-event-name="output"
output-gif-event-name="output-gif"
cancel-event-name="cancel"
output-directory=""
max-width=600
fps=24
flags="spline"todo
- support remote video