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

Can't switch encoder, invalid server param #5329

Open
ptcee opened this issue Sep 29, 2024 · 2 comments
Open

Can't switch encoder, invalid server param #5329

ptcee opened this issue Sep 29, 2024 · 2 comments

Comments

@ptcee
Copy link

ptcee commented Sep 29, 2024

When trying to run scrcpy with --video-encoder='any encoder that isnt the one i'm defaulted to from --list-encoders I get ERROR: Invalid server param: ['c2.android.avc.encoder'] and ERROR: Server connection failed

Any idea how to fix this? It happens with every encoder I try.

@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

On Windows, try removing the ': --video-encoder=c2.android.avc.encoder.

rom1v added a commit that referenced this issue Sep 30, 2024
Replace argument suggestion:

    --video-encoder='c2.android.avc.encoder'

by:

    --video-encoder=c2.android.avc.encoder

On Linux, the quotes are interpreted by the shell, but on Windows they
are passed as is.

This was harmless, because even transmitted as is, they were interpreted
by the shell on the device. However, special characters are now
validated since commit bec3321, making
the command fail.

Fixes #5329 <#5329>
@rom1v
Copy link
Collaborator

rom1v commented Sep 30, 2024

Suggestions from --list-encoders fixed by ec602a0.

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

2 participants