summaryrefslogtreecommitdiff
path: root/transcode.sh.bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.sh.bash-completion')
-rw-r--r--transcode.sh.bash-completion12
1 files changed, 12 insertions, 0 deletions
diff --git a/transcode.sh.bash-completion b/transcode.sh.bash-completion
index 716995e..c980081 100644
--- a/transcode.sh.bash-completion
+++ b/transcode.sh.bash-completion
@@ -39,6 +39,7 @@ _transcode_sh() {
local nice_vals='0 5 10 15 19'
local hwaccel_methods='auto cuda vaapi dxva2 d3d11va videotoolbox qsv'
local ffmpeg_loglevels='quiet panic fatal error warning info verbose debug trace'
+ local video_streams='v:0 v:1 v:2 v:3'
# ---------------------------------------------------------------------------
# Handle --option=VALUE: cur contains the entire "--opt=val" token.
@@ -91,6 +92,11 @@ _transcode_sh() {
COMPREPLY=($(compgen -W "$ffmpeg_loglevels" -- "$cur"))
return
;;
+ --video-stream=*)
+ cur="${cur#*=}"
+ COMPREPLY=($(compgen -W "$video_streams" -- "$cur"))
+ return
+ ;;
esac
# ---------------------------------------------------------------------------
@@ -135,6 +141,10 @@ _transcode_sh() {
COMPREPLY=($(compgen -W "$ffmpeg_loglevels" -- "$cur"))
return
;;
+ --video-stream)
+ COMPREPLY=($(compgen -W "$video_streams" -- "$cur"))
+ return
+ ;;
esac
# ---------------------------------------------------------------------------
@@ -183,6 +193,8 @@ _transcode_sh() {
--verbose
--verify-output
--version
+ --video-stream
+ --video-stream=
'
COMPREPLY=($(compgen -W "$longopts" -- "$cur"))
# Suppress the trailing space when the only completion ends with '='