From ad05a018003a66b0a5f8afefb0d2f16a392d3077 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 14 Jul 2023 23:33:04 +0200 Subject: [PATCH] Add Encoder section This will allow to reference the encoder section directly in issues. --- doc/audio.md | 12 +++++++----- doc/video.md | 13 ++++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/doc/audio.md b/doc/audio.md index 6bb17a87..357cd4ea 100644 --- a/doc/audio.md +++ b/doc/audio.md @@ -77,6 +77,13 @@ In particular, if you get the following error: then your device has no Opus encoder: try `scrcpy --audio-codec=aac`. +For advanced usage, to pass arbitrary parameters to the [`MediaFormat`], +check `--audio-codec-options` in the manpage or in `scrcpy --help`. + +[`MediaFormat`]: https://developer.android.com/reference/android/media/MediaFormat + + +## Encoder Several encoders may be available on the device. They can be listed by: @@ -90,11 +97,6 @@ To select a specific encoder: scrcpy --audio-codec=opus --audio-encoder='c2.android.opus.encoder' ``` -For advanced usage, to pass arbitrary parameters to the [`MediaFormat`], -check `--audio-codec-options` in the manpage or in `scrcpy --help`. - -[`MediaFormat`]: https://developer.android.com/reference/android/media/MediaFormat - ## Bit rate diff --git a/doc/video.md b/doc/video.md index 060e2778..57af5c9f 100644 --- a/doc/video.md +++ b/doc/video.md @@ -66,6 +66,14 @@ scrcpy --video-codec=av1 H265 may provide better quality, but H264 should provide lower latency. AV1 encoders are not common on current Android devices. +For advanced usage, to pass arbitrary parameters to the [`MediaFormat`], +check `--video-codec-options` in the manpage or in `scrcpy --help`. + +[`MediaFormat`]: https://developer.android.com/reference/android/media/MediaFormat + + +## Encoder + Several encoders may be available on the device. They can be listed by: ```bash @@ -79,11 +87,6 @@ try another one: scrcpy --video-codec=h264 --video-encoder='OMX.qcom.video.encoder.avc' ``` -For advanced usage, to pass arbitrary parameters to the [`MediaFormat`], -check `--video-codec-options` in the manpage or in `scrcpy --help`. - -[`MediaFormat`]: https://developer.android.com/reference/android/media/MediaFormat - ## Rotation