-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Window not opening on macOS with Onyx Boox Note Air 2 #3859
Comments
adb shell screenrecord /sdcard/file.mp4 gives; According to the internet the resolution of the screen is: Screen Resolution, 1,872 by 1,404 pixels. |
There is an encoder issue on the device.
|
What do I have to do to fix it? scrcpy 2.0 https://github.com/Genymobile/scrcpy |
Whe nI do scrcpy -V debug scrcpy 2.0 https://github.com/Genymobile/scrcpy |
Try the 2 other available h264 encoders listed by
|
No window opens, it also says no available windows scrcpy 2.0 https://github.com/Genymobile/scrcpy |
Getting this issue as well, on Windows, after the Boox firmware update to V3.3.2. |
Looks like only audio is broken, none of the audio encoder options work, but |
Thanks! This also fixed it for me on Ubuntu 20.04 with scrcpy 2.0 compiled from source and using the pre-build server. |
There is definitely a problem here. It should work even without Refs https://www.reddit.com/r/scrcpy/comments/138zt3o/scrcpy_not_launching/ It seems that running a second encoder (for audio) prevents video encoding from working. I don't understand why you get a stacktrace, it suggests that it crashes the client, I don't know why. Could you compile scrcpy with ASAN enabled, and run: meson setup d -Db_sanitize=address -Dprebuilt_server=/path/to/scrcpy-server # adapt the path
ninja -Cd
./run d What's the error? Also, does it work with |
I don’t have build routines setup yet, but I can probably get to it in the next two weeks and report back. Thanks for helping! Here is the output for the commands you requested. `audio-codec=raw`:C:\Users\0>C:\Users\0\main.syncthing\monochrome\bin\/../apps/scrcpy-win64-v2.0/scrcpy.exe -V debug --select-usb --audio-codec=raw
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG: --> (usb) 5F56C44D device NoteAir2P
DEBUG: (tcpip) 192.168.0.110:5555 device NoteAir2P
DEBUG: Device serial: 5F56C44D
DEBUG: Using server (portable): C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\scrcpy-server
C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\scrcpy...erver: 1 file pushed, 0 skipped. 92.6 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: ONYX NoteAir2P (Android 11)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
INFO: Renderer: direct[server] ERROR: Encoding error: android.media.MediaCodec$CodecException: Error 0xfffffff4
3d[server] INFO: newMaxSize = 1600
[server] INFO: Retrying with -m1600...
D[server] INFO: Retrying...
EBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\icon.png
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Initial texture: 1400x1872
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
... This continues until I CTRL-C. One time, the program stalls indefinitely after Using `--no-audio` (success):C:\Users\0>C:\Users\0\main.syncthing\monochrome\bin\/../apps/scrcpy-win64-v2.0/scrcpy.exe -V debug --select-usb --no-audio
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG: --> (usb) 5F56C44D device NoteAir2P
DEBUG: (tcpip) 192.168.0.110:5555 device NoteAir2P
DEBUG: Device serial: 5F56C44D
DEBUG: Using server (portable): C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\scrcpy-server
C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\scrcpy...erver: 1 file pushed, 0 skipped. 93.8 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: ONYX NoteAir2P (Android 11)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
[server] ERROR: Encoding error: android.media.MediaCodec$CodecException: Error 0xfffffff4
[server] INFO: newMaxSize = 1600
[server] INFO: Retrying with -m1600...
[server] INFO: Retrying...
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): C:\Users\0\main.syncthing\monochrome\apps\scrcpy-win64-v2.0\icon.png
DEBUG: Demuxer 'video': starting thread
INFO: Initial texture: 1400x1872
INFO: New texture: 1200x1600
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: Demuxer 'video': end of frames
DEBUG: Receiver stopped
[server] DEBUG: Controller stopped
WARN: Killing the server...
DEBUG: Server disconnected
DEBUG: Server terminated Behavior seems identical over TCP/IP. |
What is the behavior if you run with audio only (using #3978, merged on
|
I'm interested :) |
Just for the record, I had the same problem with an Onyx Boox Nova Air C, and using |
Oh, it might be related to this line on Android 11 (that would explain why when audio is enabled it does not work):
|
Could you also retry on current EDIT: you could try this binary #3862 (comment) it includes the commit I mentionned. |
Environment
Describe the bug
Window does not open
On errors, please provide the output of the console (and
adb logcat
if relevant).If i try to run it with scrcpy -m1024 or scrcpy -800 the error is gone but still no scree
The text was updated successfully, but these errors were encountered: