scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Mirror window doesn't open

Open Grellenord opened this issue 2 years ago • 10 comments

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 :)

Grellenord avatar Jan 02 '23 11:01 Grellenord

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

rom1v avatar Jan 02 '23 12:01 rom1v

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?

Grellenord avatar Jan 02 '23 13:01 Grellenord

Does screenrecord work?

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

rom1v avatar Jan 02 '23 13:01 rom1v

Yes, without any problem.

Grellenord avatar Jan 02 '23 13:01 Grellenord

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

Does it work?

rom1v avatar Jan 02 '23 14:01 rom1v

Just fine.

Grellenord avatar Jan 02 '23 14:01 Grellenord

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

rom1v avatar Jan 02 '23 14:01 rom1v

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 avatar Jan 02 '23 14:01 Grellenord

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...

Grellenord avatar Jan 02 '23 20:01 Grellenord

@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

VituminX avatar Feb 03 '23 15:02 VituminX