scrcpy is a free and open-source screen mirroring software that allows control of an Android device from Windows, Linux and Mac. you can record screen
How to use scrcpy in linux | windows with flags and Examples
scrcpy |
Today you will learn, how you can download and install and use an application called "scrcpy" on your linux and Windows operating system.
scrcpy is a free and open-source application that allows control of Android devices from Windows, Mac OS or Linux operating systems.
You can connect your Android device via USB (or) WIFI Hotspot.
The features of this application are Recording, Screen Mirroring, Copy paste and more...
First of all, let's see the REQUIREMENTS,
- The Android device requires Android 5.0 (or) Greater.
- You must enable USB debugging on your android device.
Install scrcpy
In Linux
To install scrcpy on your Debian based linux use apt package manager,
$sudo apt install scrcpy
In Windows
- Download the file from the official site Click Here
- Extract the "ZIP" file and move to the "C" drive.
scrcpy folder |
- Go to your "scrcpy" Folder.
- Click on the address bar and copy the "path".
Copy path |
- Next, You have to add Environment variable.
- Click "start" and search for "Environment Variables".
- Click the "Advanced" tab.
- Click "Environment Variables".
- Under "System Variables" click "path".
- Then Click New.
- Paste the path.
- Click OK
set environment variable |
Check scrcpy is Installed
To check whether scrcpy is installed in your system, Just type.
$scrcpy --version
Screen Mirroring via USB
screen mirroring via USB |
- Before using "scrcpy" enable USB debugging in your android device.
- Then, Connect your android device to pc using a USB cable.
- Now, open the terminal.
$scrcpy
Screen Mirroring via WIFI Hotspot
- Plugin your Android device in your Computer using USB.
- Then type,
$adb tcpip your_ip_address:5555
- To find your IP address.
- Connect your computer to the mobile hotspot.
- Then, Go to wifi settings.
- In there you find your IP address (eg: 192.168.44.2)
After finding your IP address, Run the above command.
Unplug your USB cable. Type the below command on your terminal.
$adb connect your_ip_address
- A popup will appear on your android device. Allow access.
- Check your terminal if the device is connected.
connect your android to computer |
- Type "scrcpy" in your terminal.
$scrcpy
Now your Android device screen is mirrored to your computer wirelessly.
Recording Your Screen
You can record your screen by using "scrcpy". Just follow the command,
$scrcpy -r fileName.mp4
The screen recorder will start recording the screen and automatically save it to your home folder.
when you close scrcpy.
You can also use other extensions like .mkv, etc...
Record your screen without mirroring
You can also record your android screen without mirroring by using the "-N" flag with the above command. Just type,
$scrcpy -Nr fileName.mp4
To Change Title
If you want to change the Title in your scrcpy title bar, you can write the below command.
$scrcpy --window-title 'New Title'
Borderless Window
You can remove all borders in the window.
$scrcpy window-borderless
Always on Top
To keep your window always on top.
$scrcpy --always-on-top
Full Screen
To enable Full-Screen mode. Type this command,
$scrcpy -f
Show Touches
When you touch your android screen a circle shows your touch spot.
To enable, type the command in your terminal,
$scrcpy -t
Cut, Copy and Paste
You can easily Cut, Copy and Paste Your Text, Links, etc... from your android device to your computer (or) vice versa.
As we all know that how to use Cut, Copy and Paste in computer.
When you Cut, Copy and paste from "scrcpy" window use Alt Key instead of Ctrl Key.
I'll demonstrate the copy process from computer to android,
- Copy text from Computer.
- Go to the "scrcpy" window.
- Open any text editor or where you want to paste your text.
- Press Alt + V
- You're done.
copy paste using scrcpy |
Install Apk
You can install apps using "scrcpy". Just drag and drop your APK file from your computer to "scrcpy" window.
Share Files from Computer
Just Drag and drop the files that you want to share from your computer.
Note:
- Keep in mind you cannot share "apk" files.
You can change directories to share by using the below command,
$scrcpy --push-target=/sdcard/NewFolder
Keyboard and Mouse Control
Shortcuts | Action |
---|---|
Full-Screen Mode | Alt + f |
Go to Home Screen | Alt + h (or) Middle Click on Mouse |
Click on Back | Alt + b (or) Right Click |
App Switch | Alt + s |
Open Unlock Screen Menu | Alt + m |
Volume Up | Alt + Up Arrow |
Volume Down | Alt + Down Arrow |
Power Button | Alt + p |
Turn Device screen OFF (Keep Mirroring) | Alt + o |
Turn Device Screen ON | Alt + Shift + o |
Expand Notification Panel | Alt + n |
Collapse Notification Panel | Alt + Shift + n |
Conclusion
That's all about "scrcpy" You can do more in scrcpy. I have shown you the most frequently used and Normal Day to Day operations. You can learn more about "scrcpy" in their official Documentation.
HAVE A NICE DAY💓
Related,