-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
MacOs sonoma scrcpy 2.6.1 app starts but there is no window #5182
Comments
Could you please test the versions in between? Even better, could you |
Sure I can help ;)
This version has the bug: ╰─$ ./run x --version
scrcpy 2.5 <https://github.com/Genymobile/scrcpy>
Dependencies (compiled / linked):
- SDL: 2.30.6 / 2.30.6
- libavcodec: 61.3.100 / 61.3.100
- libavformat: 61.1.100 / 61.1.100
- libavutil: 59.8.100 / 59.8.100
- libusb: - / 1.0.27 |
Thank you very much 👍 Can you please post the whole scrcpy output (which contains your device model, manufacturer and brand) so that I add an exception for your device model? |
scrcpy 2.6.1 https://github.com/Genymobile/scrcpy |
Here, on scrcpy/server/src/main/java/com/genymobile/scrcpy/Workarounds.java Lines 64 to 65 in 44b3fd8
Could you please test and report which ones of the 3 changes work for you: fillAppInfo();
// fillAppContext(); // remove // fillAppInfo(); // remove
fillAppContext(); // fillAppInfo(); // remove
// fillAppContext(); // remove ? |
THIS WORKS: // fillAppInfo();
fillAppContext(); If I comment [server] INFO: Device: [ONYX] ONYX NoteAir2P (Android 11)
[server] ERROR: Encoding error: android.media.MediaCodec$CodecException: Error 0xfffffff4
[server] INFO: Retrying with -m1600...
[server] INFO: Retrying...
INFO: Renderer: metal
INFO: Texture: 1400x1872
[server] ERROR: Audio capture error
java.io.IOException: Could not read audio: 0
at com.genymobile.scrcpy.audio.AudioEncoder.inputThread(AudioEncoder.java:105)
at com.genymobile.scrcpy.audio.AudioEncoder.lambda$encode$1$com-genymobile-scrcpy-audio-AudioEncoder(AudioEncoder.java:207)
at com.genymobile.scrcpy.audio.AudioEncoder$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
at java.lang.Thread.run(Thread.java:923) ============================================================================ |
Please test branch If it works, I merged into |
this works fine: no errors visible, screencast works fine ╰─$ echo "$(git branch)"
* issue5182
master 43 actionable tasks: 9 executed, 34 up-to-date
[67/68] Linking target app/scrcpy
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) BCCFA18 device NoteAir2P
x/server/scrcpy-server: 1 file pushed, 0 skipped. 279.3 MB/s (71096 bytes in 0.000s)
[server] INFO: Device: [ONYX] ONYX NoteAir2P (Android 11)
INFO: Renderer: metal
[server] ERROR: Encoding error: android.media.MediaCodec$CodecException: Error 0xfffffff4
INFO: Texture: 1400x1872
[server] INFO: Retrying with -m1600...
[server] INFO: Retrying...
INFO: Texture: 1200x1600
WARN: Killing the server... |
👍 Thank you very much for your help. Merged into
Does it work at the native resolution with another encoder? |
No problem, thank you for this great application ! |
For encoders test, so the right encoder will be the one which does not produce error ?:
╰─$ scrcpy --list-encoders
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) BCCFA18 device NoteAir2P
/opt/homebrew/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 99.3 MB/s (71096 bytes in 0.001s)
[server] INFO: Device: [ONYX] ONYX NoteAir2P (Android 11)
[server] INFO: List of video encoders:
--video-codec=h264 --video-encoder='OMX.qcom.video.encoder.avc'
--video-codec=h264 --video-encoder='c2.android.avc.encoder'
--video-codec=h264 --video-encoder='OMX.google.h264.encoder'
--video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc'
--video-codec=h265 --video-encoder='OMX.qcom.video.encoder.hevc.cq'
--video-codec=h265 --video-encoder='c2.android.hevc.encoder'
[server] INFO: List of audio encoders:
--audio-codec=opus --audio-encoder='c2.android.opus.encoder'
--audio-codec=aac --audio-encoder='c2.android.aac.encoder'
--audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
--audio-codec=flac --audio-encoder='c2.android.flac.encoder'
--audio-codec=flac --audio-encoder='OMX.google.flac.encoder' The only one which works without error is: ╰─$ scrcpy --video-codec=h264 --video-encoder='c2.android.avc.encoder'
scrcpy 2.6.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (usb) BCCFA18 device NoteAir2P
/opt/homebrew/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 109.7 MB/s (71096 bytes in 0.001s)
[server] INFO: Device: [ONYX] ONYX NoteAir2P (Android 11)
INFO: Renderer: metal
INFO: Texture: 1400x1872 |
This is merged into
On Windows, replace this server in your scrcpy 2.6.1 release directory. On Linux or macOS: export SCRCPY_SERVER_PATH=/path/to/scrcpy-server # adapt the path
scrcpy |
Environment
brew install scrcpy
and manual build from sourcesAfter installation of latest scrcpy 2.6.1 with
brew install scrcpy
I am running it from terminal:scrcpy
, I've also tried few options likescrcpy -m1024
. Every time I can see scrcpy icon appears in the dock, I can also switch to this app withCMD+TAB
but there is no window of this app visible.I tried to rebuild the same version manually according to: https://github.com/Genymobile/scrcpy/blob/master/doc/build.md but the result was the same. In this case I tried to run it from repo location with
./run x -m1024
the effect was the same.After switching to tag
2.1
and building it again the application works just fine. It seems there is some bug somewhere between version2.1
and2.6.1
and it seems this is more related to application display because despite the screencast is not visible in the latest version all other options seems to work fine.The text was updated successfully, but these errors were encountered: