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

Mirror window doesn't open #3650

Open
Grellenord opened this issue Jan 2, 2023 · 10 comments
Open

Mirror window doesn't open #3650

Grellenord opened this issue Jan 2, 2023 · 10 comments

Comments

@Grellenord
Copy link

Grellenord commented Jan 2, 2023

Environment

OS: Win10
scrcpy version: 1.25
installation method: prebuilt package for Windows
device model: SAMSUNG A32 4G

Description:

scrcpy.exe seems to start normally. phone wakes up, but no window is shown on the desktop; process ends after.

c:\tools\scrcpy>scrcpy -V verbose
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     -->   (usb)           RF8RC07ZEYR            device  SM_A325F
DEBUG: Device serial: RF8RC07ZEYR
DEBUG: Using server (portable): c:\tools\scrcpy\scrcpy-server
c:\tools\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 28.4 MB/s (42151 bytes in 0.001s)
[server] INFO: Device: samsung SM-A325F (Android 12)
[server] DEBUG: Using encoder: 'c2.mtk.avc.encoder'
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Controller stopped

c:\tools\scrcpy>[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped

Thank you in advance for any effort :)

@rom1v
Copy link
Collaborator

rom1v commented Jan 2, 2023

Try with another encoder: https://github.com/Genymobile/scrcpy#encoder

@Grellenord
Copy link
Author

Grellenord commented Jan 2, 2023

Tried all from the following list:

[server] ERROR: scrcpy --encoder 'c2.mtk.avc.encoder'
[server] ERROR: scrcpy --encoder 'OMX.MTK.VIDEO.ENCODER.AVC'
[server] ERROR: scrcpy --encoder 'c2.android.avc.encoder'
[server] ERROR: scrcpy --encoder 'OMX.google.h264.encoder'

Result is always the same.

EDIT: Could an overly restrictive corporate security be behind this?

@rom1v
Copy link
Collaborator

rom1v commented Jan 2, 2023

Does screenrecord work?

adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

@Grellenord
Copy link
Author

Yes, without any problem.

@rom1v
Copy link
Collaborator

rom1v commented Jan 2, 2023

scrcpy --no-display --record=file.mkv

Does it work?

@Grellenord
Copy link
Author

Just fine.

@rom1v
Copy link
Collaborator

rom1v commented Jan 2, 2023

OK, so everything works fine except opening a window on the computer.

Looks like #3431 or #3561 but was a problem on Linux.

Does scrcpy --render-driver=opengl work?

Could you test the previous version (with an older SDL version): https://github.com/Genymobile/scrcpy/releases/tag/v1.24

@Grellenord
Copy link
Author

Using --render-driver=opengl led to exactly the same result as before.

Version 1.24 was the one I used originally, I downloaded 1.25 only after encountering this problem :) so yes, I have the same result there.

@Grellenord
Copy link
Author

Works just fine out-of-the-box with the same device on my PC at home. It really could be caused by some overzealous antivirus or whatever...

@VituminX
Copy link

VituminX commented Feb 3, 2023

@Grellenord I have the exact same issue with identical debug messages. I can get it to work on my personal PC but my work PC wont load the mirror window.

I'm also guessing some sort of corporate control

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