Add --audio-codec=raw option

Add support for raw (PCM S16 LE) audio codec (a decoder is included in
FFmpeg).

Even if it consumes more bandwidth, it provides a lower latency.

PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
This commit is contained in:
Romain Vimont
2023-03-03 21:19:37 +01:00
parent 73cd59ab25
commit 29e47bdcdc
7 changed files with 21 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ _scrcpy() {
return
;;
--audio-codec)
COMPREPLY=($(compgen -W 'opus aac' -- "$cur"))
COMPREPLY=($(compgen -W 'raw opus aac' -- "$cur"))
return
;;
--lock-video-orientation)