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

Commands not working?? #385

Closed
shaveyliam opened this issue Dec 30, 2018 · 12 comments
Closed

Commands not working?? #385

shaveyliam opened this issue Dec 30, 2018 · 12 comments
Labels

Comments

@shaveyliam
Copy link

Hi, Why the commands are not working i am trying to change the bitrate and resolution. ??

i tried typing in the scrcpy cmd the command but nothing happened thanks.

@rom1v
Copy link
Collaborator

rom1v commented Dec 30, 2018

What do you type exactly, and what is the result?

scrcpy -m 800 -b 2M

@Y2Grs
Copy link

Y2Grs commented Jan 7, 2019

I'm having the exact same issue. I type the commands perfectly fine, tried it 100 times. I don't know anything about this stuff but to describe it, it's as if my laptop can't send anything to my phone. Literally nothing happens no matter what I type into the command prompt. My phone's screen does show up on my laptop though, perfectly fine. I can also use my mouse and keyboard from my laptop and it functions on my phone. Keyboard shortcuts work such as ctrl-f makes it fullscreen, stuff like that works, just not any manually typed commands. I just wanted to turn bitrate lower or resolution lower so my laptop could handle it.

@rom1v
Copy link
Collaborator

rom1v commented Jan 7, 2019

just not any manually typed commands

Just to be sure, do you pass the commands as command-line arguments? (not in the console open once scrcpy is already started)

@Y2Grs
Copy link

Y2Grs commented Jan 7, 2019

Im not sure I follow what you're asking. I have no experience with this stuff. I'm just typing stuff like this: "scrcpy --bit-rate 2M". Like the example command you gave above, I'm just typing commands like that into the command prompt that opens once I open up scrcpy.exe

@fbartels
Copy link

fbartels commented Jan 7, 2019

@Y2Grs you cannot type in the prompt once the session has started. you need to pass these arguments when initially launching scrcpy, like:

  • open cmd prompt
  • navigate to folder where scrcpy is stored
  • call scrcpy.exe -m 800 -b 2M

this could of course be simplified with a batch script that executes the above commands.

@Y2Grs
Copy link

Y2Grs commented Jan 7, 2019

How do I launch the .exe from the command prompt? I figured out how to navigate to the folder where I have all the scrcpy stuff but I can figure out how to launch it, even just normally without the arguments

@fbartels
Copy link

fbartels commented Jan 7, 2019

just type scrcpy.exe and press enter

@Y2Grs
Copy link

Y2Grs commented Jan 7, 2019

oh wow this actually works. thank you guys, helped a lot I was so lost if you couldn't tell lol

@lologacela
Copy link

I still have my problem, when I use the exe file I don't have problems, but when I use the comand I have this error
2019-10-07 13_37_53-I can't use commands in windows · Issue #845 · Genymobile_scrcpy2

@rom1v
Copy link
Collaborator

rom1v commented Oct 7, 2019

Use v1.10.

@oguz-sahin
Copy link

@fbartels's answer is resolved this problem for me. Thanks a lot.

@CreatorB
Copy link

image

I've same issue even with -m 800 -b 2M and new scrcpy version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants