需要安转较旧的scrcpy版本即可。如scrcpy1.6版本
运行报错,找不到这个ffmpeg动态库的问题:
scrcpy: error while loading shared libraries: libavformat-ffmpeg.so.56: cannot open shared object file: No such file or directory
用户当前ubuntu操作系统高于16.04,添加仓库链接:
1. sudo vim /etc/apt/sources.list
deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe
deb http://dk.archive.ubuntu.com/ubuntu/ xenial-updates universe
2.
sudo apt update
3.
sudo apt install libavformat-ffmpeg56
4.重新运行scrcpy, 工作OK