Genymobile / Genymobile/scrcpy

scrcpy not working

Open
#4,552 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.8k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [ x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [ x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: linux mint
- scrcpy version: 1.21
- installation method: logitheque
- device model: xiami redmi note 11 pro
- Android version: 13

**Describe the bug**
hello,
i am a new user and not familiar at all with linux. I would like to view image/video from my phone on the computer screen.
Thanks in advance for the assistance
BR
Sullian

SCRCPY not working

```
:~$ scrcpy
scrcpy 1.21
/usr/share/scrcpy/scrcpy-server: 1 fil...shed. 4.4 MB/s (39473 bytes in 0.009s)
[server] INFO: Device: Xiaomi 2201116SG (Android 13)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2214)
at android.media.MediaCodec.configure(MediaCodec.java:2130)
at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:233)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:86)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:65)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:93)
at com.genymobile.scrcpy.Server.main(Server.java:309)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:366)
INFO: Renderer: opengl
INFO: OpenGL version: 4.5 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2400
WARN: Device disconnected
WARN: Killing the server...
```

Please do not post screenshots of your terminal, just post the content as text instead.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure on Linux Mint with scrcpy 1.21, a Xiaomi Redmi Note 11 Pro running Android 13, and the reported command output. Read the MediaCodec.configure failure in android.media.MediaCodec and the referenced ScreenEncoder.java path to determine why screen encoding fails. Done means the cause is identified and screen mirroring works or the issue is documented with a verified workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.