Clips with OBS
When one of your chosen moments happens, Anvil saves the last few seconds from OBS and posts the video to Discord. This page sets it up, on one client or on several.
What a clip is
#OBS can keep the last few seconds of what it records in its Replay Buffer. When one of your chosen moments happens (a pet, a notable drop, a level and so on), or you press your clip hotkey, the Anvil plugin tells OBS to save that buffer. Anvil then posts the video to your clan’s clips channel, or to your own webhook.
Turn it on in Settings → Posts & alerts → Clips and tick the moments you want. With Share my clips with my clan on, clips go to your clan’s clips channel when it has one. Otherwise they go to your own webhooks that take clips. With neither, they stay on your computer.
Set up OBS
#You need OBS Studio 28 or newer, on the same computer as RuneLite. The WebSocket server Anvil talks to is built in.
- In OBS, open Tools → WebSocket Server Settings. Tick Enable WebSocket server. Leave Server Port on 4455, tick Enable Authentication and set a password. Press OK.
- In RuneLite, open the Anvil plugin’s settings and the Clips (OBS) section. Put the same port and password in OBS port and OBS password. OBS host is
localhost, or this computer’s own network address. OBS on a different computer can’t be used, because the plugin has to read the saved clip file. - Back in OBS, open Settings → Output and tick Enable Replay Buffer (in Advanced mode it has its own Replay Buffer tab). 30 seconds is a good Maximum Replay Time. Press OK.
- Make sure your scene shows the game, for example a Window Capture or Game Capture of RuneLite.
That is it. When Anvil connects to OBS it starts the replay buffer for you. Want to clip by hand too? Set Clip hotkey in the same Clips (OBS) section. It clips the last few seconds whenever Clips is on in your settings.
Playing on more than one client
#OBS records one picture. If you play two clients, a clip from one of them could show the other.
The fix is Source Record, a free OBS plugin by Exeldro (how to install it). Install it, then turn on I play on more than one client in the same Clips settings. Anvil adds an Anvil clips Source Record filter to each RuneLite window’s capture, with its replay buffer on and recording off, so each client clips its own window.
.runelite/plugin-data/anvil/clips/<character name>/ in your user folder: C:\Users\<you>\.runelite\… on Windows, /Users/<you>/.runelite/… on macOS and /home/<you>/.runelite/… on Linux. Anvil sets this on the Anvil clips filter every time it connects, so it is right on every computer. Clips older than 7 days are deleted from there automatically. With one client, clips go to OBS’s own recording folder.Installing Source Record
#Download it from the Source Record page on the OBS forum or from its GitHub releases. Close OBS first, then pick the file for your system.
C:\Program Files\obs-studio\, merging them with what is there. If OBS says the plugin failed to load, install the latest Microsoft Visual C++ Redistributable.~/.config/obs-studio/plugins/ (make the folder if it is not there). You should end up with ~/.config/obs-studio/plugins/source-record/bin/64bit/source-record.so. No sudo needed.flatpak install flathub com.obsproject.Studio.Plugin.SourceRecord.Then start OBS again. Right-click any source, open Filters and press +: Source Record is in the list.
Each Source Record update is built for a range of OBS versions, and the forum page says which. Keep both up to date. If OBS won’t start after you install it, or Source Record is missing from the list, the build doesn’t match your OBS.
When the plugin warns you
#When clips can’t work, the plugin shows a short line in the game. Here is what each one means.
localhost there, or this computer’s own network address.Discord takes files up to 10 MB. A bigger clip is cut down to the moment and shrunk automatically before it posts.
Installing the plugin itself is in the player setup guide. Your other post switches are in Settings, page by page.
Stuck, or something looks wrong? Ask in the Anvil support Discord