Add support for AAC audio codec

Add option --audio-codec=aac.
This commit is contained in:
Romain Vimont
2023-02-18 19:30:36 +01:00
parent 923032e5ca
commit 12d79686d1
8 changed files with 16 additions and 5 deletions

View File

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

View File

@@ -10,7 +10,7 @@ local arguments
arguments=(
'--always-on-top[Make scrcpy window always on top \(above other windows\)]'
'--audio-bit-rate=[Encode the audio at the given bit-rate]'
'--audio-codec=[Select the audio codec]:codec:(opus)'
'--audio-codec=[Select the audio codec]:codec:(opus aac)'
{-b,--video-bit-rate=}'[Encode the video at the given bit-rate]'
'--crop=[\[width\:height\:x\:y\] Crop the device screen on the server]'
{-d,--select-usb}'[Use USB device]'