Document --encoder option

Add documentation for the new option --encoder in the manpage and in
README.md.
This commit is contained in:
Romain Vimont 2020-11-08 21:11:12 +01:00
parent 42ab8fd611
commit 576814bcec
2 changed files with 20 additions and 0 deletions

View file

@ -203,6 +203,22 @@ scrcpy --lock-video-orientation 3 # 90° clockwise
This affects recording orientation.
#### 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:

View file

@ -56,6 +56,10 @@ The list of possible display ids can be listed by "adb shell dumpsys display"
Default is 0.
.TP
.BI "\-\-encoder " name
Use a specific MediaCodec encoder (must be a H.264 encoder).
.TP
.B \-\-force\-adb\-forward
Do not attempt to use "adb reverse" to connect to the device.