Home

Awesome

mpv-cut

A video cutting/clipping/slicing script for mpv

Features

Installation

Linux

Place it inside the Linux mpv scripts folder normally on: ~/.config/mpv/scripts, and install the FFmpeg package if not already installed.

Windows

Place it inside the Windows mpv scripts folder normally on %appdata%\mpv\scripts, and install the FFmpeg package if not already installed with Chocolatey.

Usage

Press the default key C to mark the first position, and where you desire to save, on the last position, press C again.
Use Shift+C for cutting with a smaller file size. Disclaimer: This will result in way slower cutting speeds.

Settings

The settings can be changed by editing the script file.

local settings = {
    key_mark_cut = "c",
    video_extension = "mp4",

    -- if you want faster cutting, leave this blank
    ffmpeg_custom_parameters = "",

    web = {
        -- small file settings
        key_mark_cut = "shift+c",

        audio_target_bitrate = "128", -- kbps
        video_target_file_size = "8",  -- mb
        video_target_scale = "1280:-1" -- https://trac.ffmpeg.org/wiki/Scaling everthing after "scale=" will be considered, keep "original" for no changes to the scaling
    }
}

Further explanation