Comments (2)
Over SSH, you won't have a display by default. Even if you forwarded display via SSH (ssh -X
), this is not what you want: you want to transmit the compressed video stream, not the image to display.
For that purpose, read https://github.com/Genymobile/scrcpy/blob/master/doc/tunnels.md#ssh-tunnel
from scrcpy.
Thanks, rom1v. I think SSH tunnel forward is correct way in my scenario.
I followed the SSH tunnel guide and made the tests with a Pixel device. However, the connection appears to be unstable.
Initially, the device screen is displayed correctly during the first two attempts, but subsequent tries result in it being blocked. Is there any log to check the block reason?
****************************first try********************************
(base) % export ADB_SERVER_SOCKET=tcp:localhost:5038
(base) % scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) FA68R0309644 device Pixel
/opt/homebrew/Cellar/scrcpy/2.4/share/scrcpy/scrcpy-server: 1 file pushed. 3.5 MB/s (69007 bytes in 0.019s)
[server] INFO: Device: [Google] google Pixel (Android 10)
[server] WARN: Audio disabled: it is not supported before Android 11
INFO: Renderer: metal
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1080x1920
^CWARN: Device disconnected
****************************second try********************************
(base) % scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) FA68R0309644 device Pixel
/opt/homebrew/Cellar/scrcpy/2.4/share/scrcpy/scrcpy-server: 1 file pushed. 2.3 MB/s (69007 bytes in 0.029s)
[server] INFO: Device: [Google] google Pixel (Android 10)
[server] WARN: Audio disabled: it is not supported before Android 11
INFO: Renderer: metal
WARN: Demuxer 'audio': stream explicitly disabled by the device
INFO: Texture: 1080x1920
^CWARN: Device disconnected
****************************third try********************************
(base) % scrcpy
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) FA68R0309644 device Pixel
/opt/homebrew/Cellar/scrcpy/2.4/share/scrcpy/scrcpy-server: 1 file pushed. 3.1 MB/s (69007 bytes in 0.021s)
[server] INFO: Device: [Google] google Pixel (Android 10)
[server] WARN: Audio disabled: it is not supported before Android 11
from scrcpy.
Related Issues (20)
- If debugging the client
- “B” key not working in SCRCPY HOT 2
- HyperOS 1.0.1.0 mouse controls stopped working HOT 6
- show taps is not showing while i touched with scrcpy
- Please help add a frame rate function for non screen projection printing,A command similar to this: scrcpy --print-fps --no-display
- scrcpy not accepting input from keyboard / mouse. HOT 3
- what is the best configuration for minecraft bedrock? HOT 1
- Bug: after OS update, Honor Magic4 pro can't be mirrored with screen turned off using ScrCpy (closes right away), but can be via Android Studio HOT 1
- Different frame rate when i cast my device with the screen off HOT 1
- Unexpected behaviour of `--crop` argument HOT 1
- [Alt Gr] doesn't work with -K parameter HOT 15
- The resolution goes from 1366x768 to 1360x768 HOT 6
- Scrcpy LOCK MOUSE
- Can't scrcpy mirror the screen when the screen displays the password? HOT 4
- Mouse/Keyboard/Audio not working HOT 3
- Audio stopping from smartphone while using scrcpy HOT 2
- Cannot build scrcpy HOT 4
- Not working when installed from winget HOT 3
- Windows 11: Sometimes scrpy doesn't open HOT 4
- The latest version of scrcpy, scrcpy v2.4, cannot play with mobile phone headphones, but with PC HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.