'How to scale mouse cursor when recording display with ffmpeg?
I'm recording the whole Windows 10 Desktop on a 4K laptop screen with a native resolution of 3840x2160. The windows desktop is scaled to 200% (so it behaves like 1920x1080).
Here's the ffmpeg command line I'm using to record the desktop:
"C:\ffmpeg\ffmpeg.exe" -rtbufsize 1500M -f gdigrab -framerate 10 -i desktop -vf crop="3840:2160:0:0" -pix_fmt yuv420p -preset ultrafast -tune fastdecode -y "C:\ffmpeg\test1.mp4"
I'm using crop to be able to record only a portion of the screen as well as the whole screen.
The issue is that the mouse cursor is way to small on the resulting video file. It looks like that ffmpeg is not respecting the scaling factor from the windows desktop settings (200%).
I could change the high-dpi settings of the ffmpeg.exe file (https://stackoverflow.com/a/67679516/19128336) but I need to find a way to solve this issue programmatically.
This issue occurs only on screens with desktop scaling factor higher than 100%.
Is there a way to tell ffmpeg about the desktop scaling factor?
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
