dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
13 stars 0 forks source link

[BUG] 3440x1440 resolution cuts off right of screen recording #21

Closed richardtatum closed 4 months ago

richardtatum commented 4 months ago

Describe the bug Videos produced when using a 3440x1440 resolution causes the right X number of pixels to be cut off/distorted.

To Reproduce Running with systemd at startup /bin/sh -c 'AUDIO="${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w $WINDOW -c $CONTAINER -q $QUALITY -k $CODEC -ac $AUDIO_CODEC -a "$AUDIO" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE'

Output of gpu-screen-recorder.env:

WINDOW=screen
CONTAINER=mp4
QUALITY=very_high
CODEC=auto
AUDIO_CODEC=opus
FRAMERATE=60
REPLAYDURATION=60
OUTPUTDIR=/home/rt/Videos/replays
MAKEFOLDERS=no
COLOR_RANGE=limited

Expected behavior The recording to capture the full 3440x1440 resolution

Screenshots Below is a screenshot of a recording, played back with MPV:

image

Desktop (please complete the following information):

Additional context Does not happen if I use OBS.

dec05eba commented 4 months ago

It might be the amd driver bug mentioned in the FAQ: https://git.dec05eba.com/gpu-screen-recorder/about/ (https://gitlab.freedesktop.org/mesa/mesa/-/issues/10985). Try recording with h264 codec and see if it happens.

dec05eba commented 4 months ago

I added a custom mode for 3440x1440 to my display and tested it and h264 fixes this issue, so it is that same amd driver bug. The fix was merged 1 month ago in the amd driver and the ffmpeg fix was merged recently too, so this issue should fix itself when arch gets the updates. For now you have to record with h264 video codec option.

dec05eba commented 3 months ago

This issue hasn't been fixed in ffmpeg yet but I made a workaround for now. The right side is black now instead of that glitched graphics and it moves the video to the center so its less space that appears cut off.