Open source, cross-platform Android fishing (screencasting) software Scrcpy Chinese user guide

Don't talk nonsense, first go to the link: Scrcpy on GitHub

introduce:

Scrcpy can project the mobile phone screen to the computer, allowing you to control the mobile phone on the computer. Scrcpy is connected to the Android phone via USB or Wi-Fi, no need to install any app on the phone, and no need to obtain ROOT permissions.
Simply put, it allows you to control your phone from your computer! It supports mouse control, keyboard input, computer clipboard copy-paste, drag-and-drop file transfer to phone, and drag-and-drop APK file installation. The actual projection effect of Scrcpy is very ideal, the picture is clear and smooth, and there is basically no obvious delay. Compared with Vysor, you have to pay to set a high bit rate. Scrcpy can customize the video bit rate, which is very conscientious. The software supports automatic horizontal screen, the operation is very sensitive, and the practicability is very high. You can easily use Scrcpy to test APP applications, play games, efficiently complete some complicated work that needs to be done on the mobile phone, and work more efficiently; it is also more convenient for Android screen recording and screenshots; it is even convenient for you to go to work Fishing and paddling. There are many application scenarios, and it is quite practical for both developers and ordinary individual users. If there is often a need to control the mobile phone on the computer, then Scrcpy can be described as a proper artifact!
Scrcpy also supports three operating systems: Windows, macOS, and Linux, which can be very powerful, so I won’t talk about it because of the limited space. You can search and study it yourself.

use:

Scrcpy depends on ADB to work. ADB, Android Debug Bridge, is a tool specially used on computers to interact with Android phones. To use ADB, no additional app needs to be installed on the phone, but debug mode must be enabled on the phone.

Android 5.0 and above
Enable debug mode after connecting USB (Settings > Developer Options > USB Debugging)
ADB supports connecting to the phone via the network (this is why Scrcpy supports wireless screen mirroring), but most phones disable ADB by default Connect to it through the network, so the first time you use ADB, you can only connect through the USB data cable.

After the USB debugging is turned on, the first time it is connected to the computer, the following prompt will appear, click OK.

Some mobile phones also need to open an additional option about the debugging mode - USB debugging (security settings), otherwise the mobile phone will not be able to be controlled on the computer.

Ordinary startup method, just double-click Scrcpy.exe
insert image description here

insert image description here
Basic usage of the mouse:
insert image description here
By editing scrcpy-console.bat, there are some basic commands that can be controlled
insert image description here

--max-size 1024 # 在投屏过程中,有时希望用较低的清晰度换取更高的性能。为此,可以使用 --max-size 选项设定一个最大尺寸,将宽度和高度限制为这个值以下,以 1024 为例
--bit-rate 10M # 比特率默认是 8 Mbps,可以使用 --bit-rate 选项重新设定, 以 10Mbps 为例
--max-fps 15 # Android 10 及以上可以对帧速率进行限制

Combined it is:

@echo off
scrcpy --max-fps 40 --bit-rate 10M  --max-size 1024
:: if the exit code is >= 1, then pause
if errorlevel 1 pause

Wireless connections

Need to be under the same WiFi, first you need to know the current IP address of your mobile phone (Settings→About Mobile→Status), and at the same time connect the mobile phone to the computer through usb, use cmd, cd to the folder where Scrcpy is located, and then enter the command

./adb tcpip 6666  

Unplug your data cable.

Then enter the command adb connect Your IP address: 6666 Remember to be the IP address of your mobile phone
If mine is 10.8.8.127, the command is:

./adb connect 10.8.8.127:6666

Then press Enter to restart Scrcpy

./Scrcpy

insert image description here

multiple devices

If multiple phones are connected at the same time, you ./adb devicescan see that ADB assigns different strings to each phone.
insert image description here

List of devices attached
16027DA4        device
192.168.137.240:5555    device

How to choose:
insert image description here

./scrcpy --serial b3gsdf5f45ag # 通过序列号选择
./scrcpy -s b3gsdf5f45ag # short version
./scrcpy --serial 192.168.0.1:5555 # 通过ip和端口选择
./scrcpy -s 192.168.0.1:5555  # short version
./scrcpy -d # 选择usb连接的设备
./scrcpy -e # 选择ip连接的设备

hot key

I didn’t know why I couldn’t use it here, but later I learned that version 2.0 has changed from ctrl to alt.
Function button or gesture
Home key alt + H
return key alt + B | right mouse click
recent tasks alt + S
to expand the notification bar alt + N
to close the notification bar alt + Shift + N
menu key alt + M
volume + alt + ↑
volume - alt + ↓
power key alt + P
to turn off the screen, but continue to cast the screen alt + O
to light up the screen right click to
transfer files Drag the file into the display window on the mobile phone

Epilogue: If you have more points, you can give me points, csdn download link https://download.csdn.net/download/pz641/87915881

Guess you like

Origin blog.csdn.net/pz641/article/details/131241121