Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
113.19k stars 10.8k forks source link

Not opening display on Firestick Gen 1 #1916

Open assasukasse opened 4 years ago

assasukasse commented 4 years ago

Working fine with an Android 10 mediabox via wifi connection over VPN, not working at all on Amazon Firesticks Gen1 on the same conditions.

adb connect ip scrcpy -w -b1M -m1024 -s ip:5555 scrcpy -b1M -sip INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy> /usr/local/share/scrcpy/scrcpy-server:...shed. 0.0 MB/s (33622 bytes in 0.652s) error: more than one device and emulator ERROR: "adb reverse" returned with value 1 WARN: 'adb reverse' failed, fallback to 'adb forward' [server] INFO: Device: Amazon AFTM (Android 5.1.1) INFO: Renderer: opengl INFO: OpenGL version: 3.0 Mesa 20.0.8 INFO: Trilinear filtering enabled INFO: Initial texture: 1920x1080

Here it hangs indefinitely. Nothing happens. adb shows the connected device and I can adb shell into it.

No idea what else to try..

rom1v commented 4 years ago
  1. Check the output of adb logcat when you start scrcpy.
  2. Try with another encoder (https://github.com/Genymobile/scrcpy/pull/1827#issuecomment-725933512)
assasukasse commented 4 years ago

Thanks for the answer, Here is the result of adb logcat:

https://pastebin.pl/view/8855c07c

Will try the encoder in a day or two (have to build it and can't do on this machine, so will switch to a windows machine.

assasukasse commented 4 years ago

Done sorry for the delay: https://pastebin.com/pZKYMFTS https://pastebin.com/LHL7ehSb

First encoder gives an error, second one hangs and nothing happens.

rom1v commented 4 years ago
scrcpy -m800

?

assasukasse commented 4 years ago

Tried as well, no luck. Same error in the first case, second case just hangs.

I mean I tried scrcpy -m800 --encoder 'encoder name' (with both encoders). I also tried scrcpy -m800 alone (hangs) scrcpy -m800 -b1M (hangs) scrcpy -m800 -b1M --encoder 'xxxx' (both encoders).

Crystal-cbm commented 3 years ago

I'm having the same issue - am on V1.17 have tried right down to v1.10 but connecting to Firestick 1st gen just hangs - I can connect happily to all manner of other devices its just the 1st Gen Firestick (Firestick 4k is fine).

Have tried -m800 and also reducing Bitrate Both Encoders: scrcpy --encoder-name 'OMX.brcm.video.hw.encoder' scrcpy --encoder-name 'OMX.google.h264.encoder'

It only ever gets to:

INFO: scrcpy 1.17 https://github.com/Genymobile/scrcpy C:\Users\BM\Desktop\scrcpy-win64-v1.17\scrcpy-server...1 file pushed, 0 skipped. 8.4 MB/s (34930 bytes in 0.004s) adb.exe: error: more than one device and emulator ERROR: "adb reverse" returned with value 1 WARN: 'adb reverse' failed, fallback to 'adb forward' 27183 [server] INFO: Device: Amazon AFTM (Android 5.1.1) INFO: Renderer: direct3d INFO: Initial texture: 1920x1080

And then just hangs..... it needs a Ctrl-C to kill it

ManuLinares commented 3 years ago
scrcpy -V debug --force-adb-forward 

INFO: scrcpy 1.19 <https://github.com/Genymobile/scrcpy>
DEBUG: Using server: /usr/share/scrcpy/scrcpy-server
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 205.7 MB/s (37330 bytes in 0.000s)
27183
DEBUG: Screensaver enabled
DEBUG: Remaining connection attempts: 100
DEBUG: Remaining connection attempts: 99
DEBUG: Remaining connection attempts: 98
DEBUG: Remaining connection attempts: 97
DEBUG: Remaining connection attempts: 96
DEBUG: Remaining connection attempts: 95
DEBUG: Remaining connection attempts: 94
DEBUG: Remaining connection attempts: 93
DEBUG: Remaining connection attempts: 92
DEBUG: Remaining connection attempts: 91
[server] INFO: Device: Amazon AFTM (Android 5.1.1)
DEBUG: Remaining connection attempts: 90
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: opengl
INFO: OpenGL version: 3.0 Mesa 21.2.1
INFO: Trilinear filtering enabled
INFO: Initial texture: 1920x1080
DEBUG: Starting stream thread

It hangs for me as well. Firestick v1

ManuLinares commented 2 years ago

No news on this?

Is there no way to use scrcpy with Firestick v1?