ReplaySorcery
ReplaySorcery copied to clipboard
Can't record my other monitor on Wayland (Sway)
Describe the bug I'm trying to record my main gaming monitor but it defaults to my second monitor. I've tried adjusting videoX, videoY, videoWidth and videoHeight but it I'm getting these errors
replay-sorcery[37242]: [h264_vaapi @ 0x561077f91d00] Filter graph: hwmap=derive_device=vaapi,crop=2560:1440:1920:500,scale_vaapi=2560:1440:nv12
replay-sorcery[37242]: [Parsed_crop_1 @ 0x561077f96fc0] Invalid too big or non positive size for width '2560' or height '1440'
replay-sorcery[37242]: [Parsed_crop_1 @ 0x561077f96fc0] Failed to configure input pad on Parsed_crop_1
replay-sorcery[37242]: [AVFilterGraph @ 0x561077f94800] Failed to configure filter graph: Invalid argument
Here's my monitor configuration:
It's only able to grab my HDMI monitor
Desktop:
- Distro: Arch
- Window Manager: Sway-git (wlroots)
- CPU: AMD Ryzen 5800X
- GPU: AMD Radeon 6800 XT
Configuration:
logLevel = info
traceLevel = error
recordSeconds = 60
videoInput = hwaccel
videoDevice = auto
videoX = 1920
videoY = 500
videoWidth = 2560
videoHeight = 1440
videoFramerate = 60
videoEncoder = auto
videoProfile = baseline
videoPreset = fast
videoQuality = 28
videoBitrate = auto
videoGOP = 30
scaleWidth = auto
scaleHeight = auto
audioInput = auto
audioDevice = auto
audioSamplerate = 44100
audioEncoder = auto
audioProfile = low
audioBitrate = auto
controller = command
keyName = r
keyMods = ctrl+super
outputFile = ~/Videos/ReplaySorcery/replay-%F_%H-%M-%S.mp4
outputCommand = notify-send ReplaySorcery "Saved replay as %s"
Logs: replay-sorcery.log
With hwaccel on wayland each display is on a different device. You can find the list of devices with replay-sorcery kms-devices
The command fails with
Real user ID: 1000
Effective user ID: 1000
Failed to get DRM framebuffer 138: Invalid argument
Invalid argument