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

Error on a x86 Asus tablet #73

Closed
porfirioribeiro opened this issue Mar 15, 2018 · 3 comments
Closed

Error on a x86 Asus tablet #73

porfirioribeiro opened this issue Mar 15, 2018 · 3 comments

Comments

@porfirioribeiro
Copy link

I don't know if the issue is the ABI (x86) or the OS version (Marshmallow) but i cant get scrcpy to work on my Asus Zenpad Z580CA.

I get this error:

/usr/share/scrcpy/scrcpy-server.jar: 1 file pushed. 1.3 MB/s (19334 bytes in 0.014s)
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
ERROR: Could not open video stream
ERROR: Exception on thread Thread[main,5,main]
android.media.MediaCodec$CodecException: Error 0xfffffff4
        at android.media.MediaCodec.native_configure(Native Method)
        at android.media.MediaCodec.configure(MediaCodec.java:1778)
        at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:135)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:62)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:22)
        at com.genymobile.scrcpy.Server.main(Server.java:78)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
INFO: Initial texture: 2048x1536

I guess it is a codec issue, maybe we can try other codec?

@rom1v
Copy link
Collaborator

rom1v commented Mar 15, 2018

Yes, it's a codec issue, but difficult to know why.

Could you test with a lower resolution/bitrate?

scrcpy -b2M -m800

@porfirioribeiro
Copy link
Author

It works!
I forgot to mention it is a 2K screen with 2048x1536

The max res i could get it work was: scrcpy -m 1664
INFO: Initial texture: 1664x1248

Thank's

@innerspacepilot
Copy link

Yes, it's a codec issue, but difficult to know why.

Could you test with a lower resolution/bitrate?

scrcpy -b2M -m800

Would you please add this instruction to scrcpy-server.jar error text.
Thanks

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

3 participants