ammen99 / wf-recorder

MIT License
815 stars 62 forks source link

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

Open xiaohuirong opened 8 months ago

xiaohuirong commented 8 months ago

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 commented 8 months ago

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

Krenodeno commented 7 months ago

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.