Genymobile / Genymobile/scrcpy
Encoding error
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- [ ] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [ ] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).
- OS: Windows
- scrcpy version: scrcpy v.1.22+Replaced scrcpy-server from the post https://github.com/Genymobile/scrcpy/pull/2990
- installation method: Windows
- device model: PC, Celeron n5105, BlissOs x86
- Android version: 11
```
scrcpy-win64-v1.22>scrcpy.exe --tcpip=192.168.88.90:5555
scrcpy 1.22
INFO: Connected to 192.168.88.90:5555
C:\Users\Adminko\Downloads\scrcpy-win64-v1.22\scrcpy-serve... file pushed, 0 skipped. 64.0 MB/s (96899 bytes in 0.001s)
[server] INFO: Device: unknown Generic Android-x86_64 (Android 11)
INFO: Renderer: direct3d
INFO: Initial texture: 1920x1080
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m1600...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m1280...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m1024...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
[server] INFO: Retrying with -m800...
[server] ERROR: Encoding error: java.lang.IllegalStateException: null
WARN: Device disconnected
[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:151)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:101)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:73)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:100)
at com.genymobile.scrcpy.Server.main(Server.java:326)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
```
there is a very large logcat, I don’t know how correct it will be to publish it here
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Windows-to-BlissOS Android 11 connection with the reported scrcpy command. Read the stack trace entry at android.media.MediaCodec and com.genymobile.scrcpy.ScreenEncoder.java:151, then inspect the surrounding encoding flow. Done means identifying the cause of the MediaCodec failure and confirming that screen streaming works for this device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100