Skip to content

Display and control your Android device

Merge branch 'master' into dev

Romain Vimontea3582d2c392
diff --cc FAQ.md
index a2298e60,4fda4dd4..44cc06d8
--- a/FAQ.md
+++ b/FAQ.md
@@@ -200,4 -200,35 +200,37 @@@ scrcpy -m 102
scrcpy -m 800
```
+You could also try another [encoder](README.md#encoder).
++
+
+ ## Command line on Windows
+
+ Some Windows users are not familiar with the command line. Here is how to open a
+ terminal and run `scrcpy` with arguments:
+
+ 1. Press <kbd>Windows</kbd>+<kbd>r</kbd>, this opens a dialog box.
+ 2. Type `cmd` and press <kbd>Enter</kbd>, this opens a terminal.
+ 3. Go to your _scrcpy_ directory, by typing (adapt the path):
+
+ ```bat
+ cd C:\Users\user\Downloads\scrcpy-win64-xxx
+ ```
+
+ and press <kbd>Enter</kbd>
+ 4. Type your command. For example:
+
+ ```bat
+ scrcpy --record file.mkv
+ ```
+
+ If you plan to always use the same arguments, create a file `myscrcpy.bat`
+ (enable [show file extensions] to avoid confusion) in the `scrcpy` directory,
+ containing your command. For example:
+
+ ```bat
+ scrcpy --prefer-text --turn-screen-off --stay-awake
+ ```
+
+ Then just double-click on that file.
+
+ [show file extensions]: https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/
diff --cc README.md
index 8cf562dc,2e31b6d5..17b8e134
--- a/README.md
+++ b/README.md
@@@ -202,23 -202,9 +202,25 @@@ scrcpy --lock-video-orientation 3 # 9
This affects recording orientation.
+ The [window may also be rotated](#rotation) independently.
+
+#### Encoder
+
+Some devices have more than one encoder, and some of them may cause issues or
+crash. It is possible to select a different encoder:
+
+```bash
+scrcpy --encoder OMX.qcom.video.encoder.avc
+```
+
+To list the available encoders, you could pass an invalid encoder name, the
+error will give the available encoders:
+
+```bash
+scrcpy --encoder _
+```
+
### Recording
It is possible to record the screen while mirroring: