Add support for VP8 and VP9 video encoders

This commit is contained in:
pngocthach 2026-04-13 23:50:50 +07:00
parent 247a37d57b
commit db882500d7
8 changed files with 28 additions and 6 deletions

View file

@ -110,7 +110,7 @@ _scrcpy() {
case "$prev" in
--video-codec)
COMPREPLY=($(compgen -W 'h264 h265 av1' -- "$cur"))
COMPREPLY=($(compgen -W 'h264 h265 av1 vp8 vp9' -- "$cur"))
return
;;
--audio-codec)

View file

@ -97,7 +97,7 @@ arguments=(
{-v,--version}'[Print the version of scrcpy]'
{-V,--verbosity=}'[Set the log level]:verbosity:(verbose debug info warn error)'
'--video-buffer=[Add a buffering delay \(in milliseconds\) before displaying video frames]'
'--video-codec=[Select the video codec]:codec:(h264 h265 av1)'
'--video-codec=[Select the video codec]:codec:(h264 h265 av1 vp8 vp9)'
'--video-codec-options=[Set a list of comma-separated key\:type=value options for the device video encoder]'
'--video-encoder=[Use a specific MediaCodec video encoder]'
'--video-source=[Select the video source]:source:(display camera)'