Jump to content

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


abarbarian

Recommended Posts

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
  • Like 1
  • +1 1
Link to comment
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 comment
Share on other sites

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 comment
Share on other sites

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 comment
Share on other sites

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 comment
Share on other sites

  • 1 year later...

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 comment
Share on other sites

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 comment
Share on other sites

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 comment
Share on other sites

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 comment
Share on other sites

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 comment
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 comment
Share on other sites

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 comment
Share on other sites

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 comment
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 comment
Share on other sites

 

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 comment
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 comment
Share on other sites

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 comment
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 comment
Share on other sites

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 comment
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 comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...