-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrcpy don't connect android 11 device #1950
Comments
when I use the command,the bug still not resolved;
|
So the problem is with your device encoder. Try with another encoder if possible: #1827 (comment) |
|
thanks
I‘ll try and feedback later。
…------------------ 原始邮件 ------------------
发件人: "sumarsono"<[email protected]>;
发送时间: 2020年12月11日(星期五) 上午9:17
收件人: "Genymobile/scrcpy"<[email protected]>;
抄送: "贾志楷"<[email protected]>; "Author"<[email protected]>;
主题: Re: [Genymobile/scrcpy] scrcpy don't connect android 11 device (#1950)
┌─[sumar][x240][~] └─▪ SCRCPY_SERVER_PATH=/home/sumar/Downloads/scrcpy-server scrcpy --encoder _ scrcpy: unrecognized option '--encoder' ┌─[sumar][x240][~] └─▪ SCRCPY_SERVER_PATH=/home/sumar/Downloads/scrcpy-server scrcpy -v scrcpy 1.16 dependencies: - SDL 2.0.12 - libavcodec 58.91.100 - libavformat 58.45.100 - libavutil 56.51.100
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
then get stuck |
Does recording work with:
? Also, could you test scrcpy v1.13 (or earlier version), please? (ref #240) |
scrcpy 1.13 dependencies:
INFO: scrcpy 1.13 https://github.com/Genymobile/scrcpy |
I guess you'll get the same error with v1.13 and I don't know, it's probably an encoder parameter passed by scrcpy which is not correctly supported by your hardware encoder: scrcpy/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java Lines 175 to 189 in d6078cf
|
Recently I no longer use the archlinux operating system, but I think your guess is correct. After all, my mobile phone ROM is not official, it is produced by a third-party author sbwml, and he also pointed out a bug in the upstream source code of aosp in his blog.
…------------------ 原始邮件 ------------------
发件人: "Romain Vimont"<[email protected]>;
发送时间: 2020年12月16日(星期三) 晚上6:19
收件人: "Genymobile/scrcpy"<[email protected]>;
抄送: "贾志楷"<[email protected]>; "Author"<[email protected]>;
主题: Re: [Genymobile/scrcpy] scrcpy don't connect android 11 device (#1950)
I guess you'll get the same error with v1.13 and scrcpy -m800?
I don't know, it's probably an encoder parameter passed by scrcpy which is not correctly supported by your hardware encoder:
https://github.com/Genymobile/scrcpy/blob/d6078cf20244e6651aea5832e6b78b3aa3459766/server/src/main/java/com/genymobile/scrcpy/ScreenEncoder.java#L175-L189
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
same error $ scrcpy -m800
INFO: scrcpy 1.13 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 fil...pped. 2.1 MB/s (27694 bytes in 0.012s)
[server] INFO: Device: Xiaomi MI 6 (Android 11)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 455.45.01
INFO: Trilinear filtering enabled
INFO: Initial texture: 448x800
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3452)
at com.genymobile.scrcpy.ScreenEncoder.encode(ScreenEncoder.java:93)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:74)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:35)
at com.genymobile.scrcpy.Server.main(Server.java:177)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
WARN: Device disconnected |
Environment
Describe the bug
use scrcpy connected my device,throw IllegalStateException.
On errors, please provide the output of the console (and
adb logcat
if relevant).12-03 11:58:26.931 9644 9644 E APM_AudioPolicyManager: onNewAudioModulesAvailableInt: Input device list is empty!
Please paste terminal output in a code block.
INFO: scrcpy 1.16 https://github.com/Genymobile/scrcpy
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 1.5 MB/s (33622 bytes in 0.021s)
[server] INFO: Device: Xiaomi MI 6 (Android 11)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3452)
at com.genymobile.scrcpy.ScreenEncoder.encode(ScreenEncoder.java:108)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:89)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:55)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:76)
at com.genymobile.scrcpy.Server.main(Server.java:225)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 20.2.3
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x1920
WARN: Device disconnected
The text was updated successfully, but these errors were encountered: