OBS -> MPV trimmer

i've been frustrated with how sloppy and slow clipping software is, so i've created my own version which i like a lot and only takes like 15 seconds to fully clip, trim and send a clip

and i've seen others take soo long to trim and send a clip, and they use some bs like medal or record their video player or pull up entire video editors, just to trim a clip and its still over 10mb, so they upload to streamable or compress with 8mb.video which is so slow and ineffetive

how this script works:

Pipeline setup & modules

uncheck anything you already have configured or want to handle manually

Module / Integration Include
Install OBS Studio
Auto-configure OBS Replay Buffer profile
Autostart OBS with Windows in background
Install MPV Video Player
Download & Install MPV Trimmer Lua script
Install Isolated FFmpeg Binary
Set MPV as default video player
Add "Open with MPV" to context menu

OBS Replay Buffer settings

these options are injected into the obs profile config (disabled if auto-configure is turned off)

Parameter Value Unit / Info
Clip Duration Seconds
Target Bitrate Mbps
Hardware Encoder
Save Clip Keybind
RAM Usage ~188 MB

Installation guide

  1. run the generated obsmpvtrimmer_setup.ps1 powershell script
  2. press the configured keybind (e.g. F10) at any time to save your clip to ~/Videos/Clips or the folder of your choosing
  3. open the file with mpv (or right click → Open with MPV) to crop, mute, or cut the segment with the keybinds documented below:

MPV plugin keybinds

Shortcut Action Description
c Mark start / end first press sets segment start; second press sets segment end and exports the clip in the same folder
Ctrl + x Crop clip click to select corners to have the video cropped to that specific size
Esc Cancel cancels trim mark and resets crop
Ctrl + m Toggle clip mute toggles removal of audio streams from final output and frees up more space for video
Ctrl + 1 Lossless trim instant lossless cut without re-encoding (source bitrate), timings may be inaccurate due to b or p-frames
Ctrl + 2 Target 10 MB calculates two-pass target bitrate to be right below this threshold
Ctrl + 3 Target 25 MB target bitrate cap for 25mb file size
Ctrl + 4 Target 50 MB target bitrate cap for 50mb file size
Ctrl + 5 Target 100 MB target bitrate cap for 100mb file size

Uninstaller generator

if you want to revert changes or remove dependencies, select what you want to remove and generate the clean-up script

Component to Remove Select
Remove OBS Autostart shortcut
Remove right-click context menu modal
Remove MPV Trimmer Lua script
Remove Isolated FFmpeg Binary
Remove OBS Replay Buffer profile (ClipsProfile)
Uninstall MPV (via winget)
Uninstall OBS Studio (via winget)