Jump to content

scrcpy, a tool to display and control Android devices from your desktop


abarbarian

Recommended Posts

abarbarian

scrcpy Now Available In Debian,ARCH,Gentoo,Mac,Windows.

Quote

scrcpy is a free and open source application that can be used to show an Android device's screen on a Linux, macOS or Windows desktop, allowing you to control it remotely. This can be done by connecting your Android device to a computer either via USB or wirelessly.


It should also be noted that scrcpy does not require root access in order to work.

 

Scrcpy is offered for the "testing and SID" Debian versions and will probably not be backported for older versions. There is however a SNAP build that will work on older Debian based os's and any os that supports snap offerings. Arch has a package in the AUR.For Gentoo, an Ebuild is available.

The projects site has all the detail you need to make the most of this great tool.

SCRCPY HOME SITE



"This application provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access. It works on GNU/Linux, Windows and macOS.


screenshot-debian-600.jpg


It focuses on:

 
  • lightness (native, displays only the device screen)
  • performance (30~60fps)
  • quality (1920×1080 or above)
  • low latency (35~70ms)
  • low startup time (~1 second to display the first image)
  • non-intrusiveness (nothing is left installed on the device)"

:cool:
 

 

 

 

 

Edited by abarbarian
  • +1 1
Link to post
Share on other sites
securitybreach

It is a very cool application. I was  playing around with it last month dominating mobile users on this billiards game. It is much easier to aim with a mouse than with fingers.

Link to post
Share on other sites
abarbarian
7 minutes ago, securitybreach said:

It is a very cool application. I was  playing around with it last month dominating mobile users on this billiards game. It is much easier to aim with a mouse than with fingers.

 

Sneaky or what 😜

 

  • Agree 1
Link to post
Share on other sites
abarbarian
8 minutes ago, securitybreach said:

I wonder why your image isnt working?

 

I changed the source of the image just now.

 

I C + P 'd from one of my posts on another forum as I thought it was such a good program and was too lazy to do a rewrite an that caused the glitch. 😎

  • +1 1
Link to post
Share on other sites
abarbarian
On 2/2/2020 at 8:39 PM, V.T. Eric Layton said:

Man... you guys are really into that techie stuff. ;)

 

Who me?? Nah... B)

 

Wanders of to polish the old abacus. :fish:

  • Haha 1
Link to post
Share on other sites
  • 1 year later...
abarbarian
Posted (edited)

Well I have actually set scrcpy up and run it successfully on my pc. As I am due to use it in real life. I have to attend a Driver Awerness Course as a result of the accident. Due to Covid they are not running for real and are all on line. This means that I have to use my phone, which I am not really up on, or use a pc with a webcam, which I do not have. So I am going to use scrcpy as so far in my testing it works well for what I will need.

 

Here are a few screenshots of it running on my Arch os.

 

The bottom buttons work and you can swipe left and right with the mouse.

 

GL84l7d.png

 

Duck Duck is fast and responsive. Wish my horses were as good. 🤣

 

xrblayA.png

 

You Tube is smooth and responsive.

 

rAhfGLY.png

 

Clicking on the square bottom right in the You Tube player does this,

 

b90IUv2.png

 

You Tube full screen looks pretty good.

 

vGykmuP.png

 

Audio plays on the phone as I am not going to bother trying to make it work through scrcpy.

 

Screencast your android device to ArcoLinux and/or Arch Linux

 

https://aur.archlinux.org/packages/scrcpy/

 

https://tomotoes.com/scrcpy-gui/

 

Github site with loads of information on usage

 

Alternative gui, looks pretty comprehensive

 

sndcpy . purpose is to enable audio forwarding while mirroring with scrcpy.

 

Enjoy. 😎

Edited by abarbarian
  • +1 1
Link to post
Share on other sites
securitybreach

Very cool. I only used it to play a billiards game.. lol :thumbsup:

  • Haha 1
Link to post
Share on other sites
Bookmem

Just tried it.  Great app.  My only question is about audio.  I'm getting audio out of the Android device and not the Linux box.

 

edit: Found solution.  There is a companion app, sndcpy, that cast the sound.  You can run just sndcpy to cast audio only, or run both sndcpy and scrcyp to get both audio and video.

 

Edited by Bookmem
Link to post
Share on other sites
abarbarian
1 hour ago, Bookmem said:

Just tried it.  Great app.  My only question is about audio.  I'm getting audio out of the Android device and not the Linux box.

 

edit: Found solution.  There is a companion app, sndcpy, that cast the sound.  You can run just sndcpy to cast audio only, or run both sndcpy and scrcyp to get both audio and video.

 

 

Was that sndcpy easy to set up ? 😎

Link to post
Share on other sites
Bookmem
11 minutes ago, abarbarian said:

 

Was that sndcpy easy to set up ? 😎

Very easy.  Just go to this site and download the zip.  You have to open two terminal sessions and run both.

edit: Note that sndcpy needs VLC to play the audio, so if you don't already have it, you'll need to install it.

Edited by Bookmem
Link to post
Share on other sites
abarbarian
1 hour ago, Bookmem said:

Very easy.  Just go to this site and download the zip.  You have to open two terminal sessions and run both.

edit: Note that sndcpy needs VLC to play the audio, so if you don't already have it, you'll need to install it.

 

Thanks. I found that there is a AUR version of sndcpy,

 

https://aur.archlinux.org/packages/sndcpy-bin/

 

I wonder if it is possible to create a script so that you can run it and it opens up scrcpy and sndcpy with just one click. 😎

Link to post
Share on other sites
securitybreach
5 minutes ago, abarbarian said:

 

I wonder if it is possible to create a script so that you can run it and it opens up scrcpy and sndcpy with just one click. 😎

 

Of course you can. Open the editor you use and type this in:

 

#!/bin/bash
scrcpy
sndcpy

 

Then save as scr.sh or whatever. Next set execute permission using
 

chmod +x scr.sh

 

Then click to run or navigate to the directory in the terminal and run ./scr.sh

Link to post
Share on other sites
abarbarian
2 hours ago, securitybreach said:

 

Of course you can. Open the editor you use and type this in:

 


#!/bin/bash
scrcpy
sndcpy

 

Then save as scr.sh or whatever. Next set execute permission using
 


chmod +x scr.sh

 

Then click to run or navigate to the directory in the terminal and run ./scr.sh

 

I'll give that a try out tomorrow, ta. 😎

  • Like 1
Link to post
Share on other sites
securitybreach
47 minutes ago, abarbarian said:

 

I'll give that a try out tomorrow, ta. 😎

 

Cool.

Link to post
Share on other sites
abarbarian
On 8/11/2021 at 6:42 PM, securitybreach said:

 

Of course you can. Open the editor you use and type this in:

 


#!/bin/bash
scrcpy
sndcpy

 

Then save as scr.sh or whatever. Next set execute permission using
 


chmod +x scr.sh

 

Then click to run or navigate to the directory in the terminal and run ./scr.sh

 

hmmm    I get

 

-->./scrap.sh
-bash: ./scrap.sh: bin/bash: bad interpreter: No such file or directory

 

if I  try your method. 😎

Link to post
Share on other sites
securitybreach
10 minutes ago, abarbarian said:

 

hmmm    I get

https://www.youtube.com/watch





-->./scrap.sh
-bash: ./scrap.sh: bin/bash: bad interpreter: No such file or directory

 

if I  try your method. 😎

 

 

It sounds like you did not put the #! in front of /bin/bash

 

#!/bin/bash 

 

So instead of absolute path, it is looking for /bin/bash.

 

Here is a post about your exact error and they suggest the same:  https://askubuntu.com/questions/1158577/bin-bash-bad-interpreter-no-such-file-or-directory

Link to post
Share on other sites
abarbarian

 

almost right. I did

 

#! bin/bash

 

missing the first "/"

 

Your link was helpful.

 

however the script still does not work properly.

 

scrcpy opens up ok but sndcpy does not. I think that is due to the fact that both commands need to be opened in separate terminals. I am investigating. 😎

Link to post
Share on other sites
abarbarian
#!/bin/bash

scrcpy & 
sndcpy

 

Adding the "&" sorted things out.

 

Thanks for the help. 😎

  • +1 1
Link to post
Share on other sites
securitybreach
1 minute ago, abarbarian said:

#!/bin/bash

scrcpy & 
sndcpy

 

Adding the "&" sorted things out.

 

Thanks for the help. 😎

 

I was just about to say that :) 

 

:thumbsup:

  • Haha 1
Link to post
Share on other sites
abarbarian
1 minute ago, securitybreach said:

 

Alright, try this. Put a && behind the first command.

 

We must have posted at the same time 😅

  • Agree 1
Link to post
Share on other sites
securitybreach

& runs the first command in the background

&& runs the first command and proceeds to the second command if the first one runs correctly.

  • +1 1
Link to post
Share on other sites
abarbarian
41 minutes ago, securitybreach said:

& runs the first command in the background

&& runs the first command and proceeds to the second command if the first one runs correctly.

 

Ta.

 

It seems to run ok with the single & so I'll leave it as is. Extra info was neat though. 😎

  • +1 1
Link to post
Share on other sites
securitybreach
12 minutes ago, abarbarian said:

 

Ta.

 

It seems to run ok with the single & so I'll leave it as is. Extra info was neat though. 😎

 

Cool :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...