IntroductionEveryone should know that Huawei phones and computers can achieve one-touch transfer through Huawei Share. Sometimes this function is really convenient, and I am a little envious. Today I will introduce you to an open source project that can easily achieve multi-screen collaboration even if you don’t have a Huawei phone or computer. scrcpyscrcpy can connect to Android devices for display and control via USB, and can also be controlled wirelessly via TCP/IP. In addition, this software does not require root permissions to avoid warranty issues due to root. scrcpy git address: https://github.com/Genymobile/scrcpy The app supports Linux, Windows, and macOS Features
Environmental requirementsThe Android system version needs to be Android 5.0 (API 21) or above, and adb debugging needs to be enabled. The methods of enabling adb debugging may be slightly different for different phones. Here I will introduce how to enable adb debugging on Huawei phones. Open Settings---> Scroll to the bottom of Settings and click About Phone---> Quickly click on the version number. If the following interface appears, it means that the system is enabled successfully. Other models of mobile phones can Baidu to open the method InstallLinux On Debian (currently only testing and unstable versions, i.e. testing and sid versions) and Ubuntu (20.04):
Windows Download the installation package directly. Please refer to github for the download link. You can use it after decompression without installation. After decompression, open cmd, enter the decompression directory of scrcpy, and enter the scrcpy command to start it. The decompression directory is as follows: Note: Before starting, you need to connect the phone to the computer via USB. When connected, the phone will prompt whether to debug, select Yes. If you find it troublesome to enter the decompressed directory every time you start the phone, you can add the path to the system environment variable path, and you don't need to enter the decompressed directory for subsequent startups. macOS
Run scrcpyConnect your computer and Android device via USB and execute:
Supports execution with command line parameters, view the parameter list:
Function IntroductionReduce resolution Limit both the height and width to a certain size (such as 1024):
The shorter side will be scaled down to keep the device's display aspect ratio, so a 1920x1080 device will display at 1024x576 resolution. Modify the video bit rate The default bit rate is 8Mbps. If you want to change the bit rate of the picture (for example, to 2Mbps):
Limit frame rate The frame rate of the picture can be limited by the following command:
Screen cropping The device screen can be mirrored after cropping to show a portion of the screen. This feature could be used, for example, to display only one eye of an Oculus Go.
If --max-size is also specified, the resolution change will be done after cropping. Screen Recording You can record video while mirroring the screen:
To record without screen mirroring:
In addition, scrcpy also supports other functions, such as wireless connection, multi-device connection, SSH connection, file transfer, etc. For detailed usage tutorials, please refer to the official documentation. Tips If you want to make this tool more interesting, you can use scrcpy combined with python to develop some automated applications for controlling mobile phones, play mobile games, etc. |
<<: WeChat's new version has huge changes! Is it going to become a live broadcast software?
>>: WeChat 7.0.22 is officially updated! The features you want are finally here
In the Internet space, the word " operation ...
In our perception, time is an invisible and intan...
Among all major commodity categories, flowers and...
When you mention highland barley, the first thing...
This article will explain the following four poin...
Have you ever had this experience: you just start...
It is becoming increasingly difficult to do physi...
[[421589]] Although the release date of the offic...
In the middle of this month, Apple released the o...
On the morning of January 8, the Wall Street Jour...
Recently, Ford Europe CEO Jim Farley will meet wi...
Search engine optimization is a means to obtain a...
As a social method for the younger generation, &q...
This article will try to answer your questions: 1...