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

Having an issue on screen casting my Poco M3 #2096

Open
Drewnism opened this issue Feb 8, 2021 · 6 comments
Open

Having an issue on screen casting my Poco M3 #2096

Drewnism opened this issue Feb 8, 2021 · 6 comments

Comments

@Drewnism
Copy link

Drewnism commented Feb 8, 2021

Please help.

I am having an issue with screencasting my Poco M3. When I launch the scrcpy app, it will not run. Please help.

Untitled

@Blacklite01
Copy link

We have the same problem please help!

@rom1v
Copy link
Collaborator

rom1v commented Feb 12, 2021

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

@Blacklite01
Copy link

Blacklite01 commented Feb 12, 2021 via email

@7wells
Copy link

7wells commented Jul 13, 2021

I know that this is several months ago, but maybe someone stumbles over it. As @rom1v already kindly pointed out (including the link), below is what you can do (e.g. in Windows' PowerShell). The _ (underscore) after the --encoder parameter is a wrong encoder by intention. If you then look closely at the output, scrcpy is clever and tells you which encoders your device has; in the below example, 3 different ones. Try one after the other by providing its name after the --encoder parameter.

PS C:\Windows\system32> scrcpy --encoder _
INFO: scrcpy 1.18 <https://github.com/Genymobile/scrcpy>
C:\ProgramData\scoop\apps\scrcpy\current\scrcpy-server: 1 file pushed, 0 skipped. 33.0 MB/s (37330 bytes in 0.001s)
[server] INFO: Device: Xiaomi M2010J19CG (Android 10)
[server] ERROR: Exception on thread Thread[main,5,main]
com.genymobile.scrcpy.InvalidEncoderException: There is no encoder having name '_"
        at com.genymobile.scrcpy.ScreenEncoder.createCodec(ScreenEncoder.java:177)
        at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:78)
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:61)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:80)
        at com.genymobile.scrcpy.Server.main(Server.java:255)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:380)
[server] ERROR: Try to use one of the available encoders:
[server] ERROR:     scrcpy --encoder 'OMX.qcom.video.encoder.avc'
[server] ERROR:     scrcpy --encoder 'c2.android.avc.encoder'
[server] ERROR:     scrcpy --encoder 'OMX.google.h264.encoder'
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2336
WARN: Device disconnected

HTH

@LinuxDark
Copy link

I prube with version 1.22 and still the problem for connect from Pc, Any Idea ??

@rom1v
Copy link
Collaborator

rom1v commented Feb 14, 2022

And wIth #2990?

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

5 participants