[1] MLD-5.x / Systems / x86 Systeme (PC) / {MLD 5.5 testing} scrcpy : Display and control your Android device.
 

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile


Hello,

I installed scrcpy on MLD which works pretty nice.  :)

Description:

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.

(I only tried TCP/IP.)

Requirements:

The Android device requires at least API 21 (Android 5.0).
Make sure you enabled adb debugging on your device(s).

Application link:

https://github.com/Genymobile/scrcpy

Note: adb - libsdl2-2.0-0 should be installed on MLD in order to work.

Best Regards.
« Last Edit: March 12, 2022, 19:42:15 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Shortcuts:

Code: [Select]
Switch fullscreen mode Ctrl+f Cmd+f
Resize window to 1:1 (pixel-perfect) Ctrl+g Cmd+g
Resize window to remove black borders Ctrl+x | Double-click¹ Cmd+x | Double-click¹
Click on HOME Ctrl+h | Middle-click Ctrl+h | Middle-click
Click on BACK Ctrl+b | Right-click² Cmd+b | Right-click²
Click on APP_SWITCH Ctrl+s Cmd+s
Click on MENU Ctrl+m Ctrl+m
Click on VOLUME_UP Ctrl+↑ (up) Cmd+↑ (up)
Click on VOLUME_DOWN Ctrl+↓ (down) Cmd+↓ (down)
Click on POWER Ctrl+p Cmd+p
Power on Right-click² Right-click²
Turn device screen off (keep mirroring) Ctrl+o Cmd+o
Rotate device screen Ctrl+r Cmd+r
Expand notification panel Ctrl+n Cmd+n
Collapse notification panel Ctrl+Shift+n Cmd+Shift+n
Copy device clipboard to computer Ctrl+c Cmd+c
Paste computer clipboard to device Ctrl+v Cmd+v
Copy computer clipboard to device Ctrl+Shift+v Cmd+Shift+v
Enable/disable FPS counter (on stdout) Ctrl+i Cmd+i
¹Double-click on black borders to remove them.
²Right-click turns the screen on if it was off, presses BACK otherwise.

Link for USB audio forwarding

https://github.com/rom1v/usbaudio
« Last Edit: March 12, 2022, 19:43:36 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Code: [Select]
scrcpy v1.23

Changes since v1.22:

Add HID/OTG support for Windows (--otg only) (#2773, #3011)
Add HID/OTG support for macOS (#2774, #3031)
Improve device selection (list devices, -d, -e) (#3005)
Downscale and retry on MediaCodec error in more cases (#2990, #3043)
Add ZSH completion script (#3012)
Add Bash completion script (#2930, #3048)
Add --no-cleanup option (#1764, #3020)
Add --printf-fps (#468, #3030)
Print both compiled and linked version of libs on --version
Fix FPS counter (broken in v1.22)
Various technical refactors and fixes

Code: [Select]
scrcpy v1.22

Changes since v1.21:

Add HID mouse support (#2916)
Add OTG mode (HID only) (#2974)
Enable DPI awareness by default on Windows (#40, #2865)
Automatically retry with a lower definition on MediaCodec error (#2947)
Add a shortcut "open a terminal here" on Windows (#2970)
Add icon to scrcpy.exe (#2815)
Add server options to send raw H.264 video stream (#2971)
Fix process execution (mainly) on Windows 7 (#2838, #2840)
Fix adb server hang due to signal masking (#2870, #2873)
Fix input injection on some custom ROMs (#2250, #2946)
Fix possible overflow on copy-paste (#2859)
Upgrade SDL to 2.0.20 in Windows releases
Upgrade FFmpeg to 5.0 in Windows 64-bit releases (#1753, #2952)
Various technical refactors and fixes


Code: [Select]
MLD> scrcpy --version
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
 - SDL: 2.0.10 / 2.0.9
 - libavcodec: 58.54.100 / 58.35.100
 - libavformat: 58.29.100 / 58.20.100
 - libavutil: 56.31.100 / 56.22.100
 - libavdevice: 58.8.100 / 58.5.100
 - libusb: - / 1.0.22

Hi Claus,

I build scrcpy v1.23 MLD-5.5 testing package,
Are you interested to test it or you don't use that application?
« Last Edit: March 12, 2022, 22:43:13 by gr4vity »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
I do not use that app.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
I think you should give it a try if you hate typing on your mobile screen like me.
With that app you can use your computer keyboard to chat with your friends on Facebook messenger, Whatsapp .. etc.
That's the main reason i'm using it.
« Last Edit: March 12, 2022, 22:36:08 by gr4vity »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
That's the reason why I only use massagers that have a web or PC GUI :)
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
Hi Claus,

If so then you should give scrcpy a try, you won't lose anything if you did  :)

There are a lot of other useful options.

For ex., you can trun your mobile screen off and still control it on your pc.

Code: [Select]
scrcpy --turn-screen-offOr
Code: [Select]
scrcpy -S
Best Regards.
« Last Edit: March 15, 2022, 16:06:37 by gr4vity »

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile


Hi Claus,

Why there isn't any updates on MLD Home since 18 Jul 2021?
In the past whenever you build a new package it will be listed right away under Updates.

Best Regards.

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
I'm not sure, but I think the update list shows the stable update, and there are view updates.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
I was about to ask you that docker package should be listed there  :)
I checked it now and it works
10. Mar 2022 – docker
update depends

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
there was the MLD-5.4 configured. I have changed it to 5.5
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile


Hi,

scrcpy works with v4l2loopback as well

Code: [Select]
modprobe v4l2loopback
Code: [Select]
scrcpy --v4l2-sink=/dev/videoN
If you want to disable mirroring window

Code: [Select]
scrcpy --v4l2-sink=/dev/videoN --no-display short version
Code: [Select]
scrcpy --v4l2-sink=/dev/videoN -N 
Then you can open video stream by using VLC or OBS.

[1] MLD-5.x / Systems / x86 Systeme (PC) / {MLD 5.5 testing} scrcpy : Display and control your Android device.
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.