wf-recorder icon indicating copy to clipboard operation
wf-recorder copied to clipboard

The video recorded with hardware encoding has pixel distortion on wayfire with 1.25 scaling.

Open xiaohuirong opened this issue 1 year ago • 2 comments

  • Screen: 2560x1440
  • WM: Wayfire
  • Scaling: 1.25
  • wf-recorder: built from latest commit 22f18cd

The pixels in videos generated by region screen recording may become distorted. Example: wf-recorder -g "110,93 800x600" -c hevc_vaapi

mpv-shot0001

The related issues:https://github.com/ammen99/wf-recorder/issues/232

xiaohuirong avatar Nov 18 '23 08:11 xiaohuirong

The same issue occurs in the dual-screen configuration with 1x scaling. screen wf-recorder -g "0,0 1000x1000" -c hevc_vaapi

xiaohuirong avatar Nov 18 '23 09:11 xiaohuirong

I reproduce the pixel misalignment issue using two displays. Here is my setup: ArchLinux with Sway WM (v1.8.1) and wf-recorder v0.4.1 integrated laptop (eDP) screen 1920x1080 pixels, external HDMI screen 1920x1080 pixels Laptop equipped with Intel i5-8265U CPU and integrated graphics (HD620) only.

Using the following command line:

/usr/bin/wf-recorder \
  -c h264_vaapi \
  -d /dev/dri/renderD128 \
  -f "${HOME}/Videos/$(date +%%Y-%%m-%%d-%%H-%%M-%%S).mp4" \
  -g "$(slurp -d)"

Disconnecting the external display seems to resole the issue.

Krenodeno avatar Dec 27 '23 14:12 Krenodeno