Thanks to pLumo for helping me :)
For anyone who has the same error, the problem was with the unsupported resolution. You need to change the resolution to somewhere near 1024
to get it to work. You can do it by running:
scrcpy -m 1024
You may want to increase or decrease the resolution to adjust for your device.
If you have installed scrcpy
using sudo snap install scrcpy
, then you will also face a lot of errors!
In this case, start by removing it:
sudo snap remove scrcpy
Now you need to compile it from source or install it using apt
.
Compiling from source:
As Romain Vimont says in Build.md, you need to follow the following steps to manually compile scrcpy
:
First, you need to install the required packages:
# for Debian/Ubuntu
sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
gcc git pkg-config meson ninja-build libsdl2-dev \
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
libusb-1.0-0 libusb-1.0-0-dev
Then clone the repo and execute the installation script (source):
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh
Installing from apt
:
As Romain Vimont says in README.md, you need to follow the following steps to install scrcpy
using apt
:
On Debian and Ubuntu:
apt install scrcpy
If you still have issues, then you can start a new issue at scrcpy's GitHub page.