Skip to content
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

Only open in a second #3538

Open
azaarskasda opened this issue Oct 15, 2022 · 5 comments
Open

Only open in a second #3538

azaarskasda opened this issue Oct 15, 2022 · 5 comments

Comments

@azaarskasda
Copy link

azaarskasda commented Oct 15, 2022

  • [✓] I have read the FAQ.
  • [✓] I have searched in existing issues.

Environment

  • OS: [Windows 11]
  • scrcpy version: [1.24]
  • installation method: [Windows]
  • device model: Redmi Note 10 Pro
  • Android version: [MIUI 13.0.4]

Describe the bug

It only appears in a split of a second and then it closes. I have tried to use different USB cables and plug it in a different port but still it can't be opened. Also i have tried to use set 'ADB=C:\scrcpy\adb.exe' then 'scrcpy -m1024' but i still have the same problem. Oh yeah and the 'scrcpy --codec-options=max-fps-to-encoder:float=5,bitrate:int=500000' still doesn't work.
Okay, i have read the #3051 but i don't understand what do you mean by "You can play with the encoder settings: see #2819 (comment)". I'm a high school student... so please help :(

C:\WINDOWS\system32>scrcpy >= 1.18
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2400
WARN: Device disconnected
java.lang.IllegalStateException

    at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
    at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3535)
    at com.genymobile.scrcpy.ScreenEncoder.encode(ScreenEncoder.java:152)
    at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:102)
    at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:74)
    at com.genymobile.scrcpy.Server.scrcpy(Server.java:101)
    at com.genymobile.scrcpy.Server.main(Server.java:335)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:363)

``

@rom1v
Copy link
Collaborator

rom1v commented Oct 15, 2022

In #3051:

EDIT2: to fix the problem, upgrade to MIUI 13.0.12.

What is your version?

@azaarskasda
Copy link
Author

azaarskasda commented Oct 16, 2022

I've written it its MIUI 13.0.4. And even i have updated it to 13.0.6 its still not working

@rom1v
Copy link
Collaborator

rom1v commented Oct 16, 2022

I've written it its MIUI 13.0.4. And even i have updated it to 13.0.6 its still not working

Apparently, it's fixed in MIUI 13.0.12, so you must wait for an update from Xiaomi… (13.0.12 > 13.0.4)

@Thiasap
Copy link

Thiasap commented Oct 19, 2022

try
--encoder 'c2.android.avc.encoder'
or
--encoder 'OMX.google.h264.encoder'

@IzumiCypherX
Copy link

try --encoder 'c2.android.avc.encoder' or --encoder 'OMX.google.h264.encoder'

It is resulting in 1) a very bad quality output, 2) A still image, of the frame when scrcpy was launched.

P.S: I'm using same model as OP of this issue and have tried all the fixes suggested henceforth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants