Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.44k stars 10.24k forks source link

What does this error mean? it does not work on my device #3278

Open nssiwi opened 2 years ago

nssiwi commented 2 years ago

Environment

Describe the bug i am sure there was just one device/emulator connected, so what dose these outputs mean?

C:\Users\John>scrcpy
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
D:\Program Files\scrcpy-win64\scrcpy-server: 1 file pushed, 0 skipped. 71.1 MB/s (41159 bytes in 0.001s)
adb.exe: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
[server] INFO: Device: Allwinner A40 (Android 7.1.1)
INFO: Renderer: direct3d
INFO: Initial texture: 1920x1080
ERROR: Could not send video packet: -1094995529
ERROR: Could not send config packet to sink 0
ERROR: Could not process packet
WARN: Device disconnected

C:\Users\John>adb logcat -s scrcpy
--------- beginning of main
--------- beginning of system
05-19 21:27:29.389 26821 26821 I scrcpy  : Device: Allwinner A40 (Android 7.1.1)
05-19 21:27:30.831 27059 27059 I scrcpy  : Cleaning up
05-19 21:27:30.837 27059 27059 I scrcpy  : Restoring normal power mode
05-19 21:29:27.064  9030  9030 I scrcpy  : Device: Allwinner A40 (Android 7.1.1)
--------- beginning of crash
05-19 21:29:29.067  9203  9203 I scrcpy  : Cleaning up
05-19 21:29:29.082  9203  9203 I scrcpy  : Restoring normal power mode
05-19 21:34:09.621 10669 10669 I scrcpy  : Device: Allwinner A40 (Android 7.1.1)
05-19 21:34:11.041 10847 10847 I scrcpy  : Cleaning up
05-19 21:34:11.047 10847 10847 I scrcpy  : Restoring normal power mode
05-19 21:50:53.215  1489  1489 I scrcpy  : Device: Allwinner A40 (Android 7.1.1)
05-19 21:50:54.647  1776  1776 I scrcpy  : Cleaning up
05-19 21:50:54.653  1776  1776 I scrcpy  : Restoring normal power mode
rom1v commented 2 years ago
adb.exe: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'

i am sure there was just one device/emulator connected, so what dose these outputs mean?

This is not really a blocking error, it's just a bug in old version of Android where adb reverse could not work over TCP/IP (you're probably connected over wifi). scrcpy fallbacks to adb forward in that case, so you could ignore this message. See #5.

ERROR: Could not send video packet: -1094995529

This is the real error:

$ printf '%x' 1094995529 | xxd -r -p | rev
INDA

This is AVERROR_INVALIDDATA: it seems the your encoder on the device does not produce valid data according to FFmpeg.

You should try with another encoder: https://github.com/Genymobile/scrcpy#encoder