dotfiles/.config/zsh/completions/_cutvid

44 lines
928 B
Plaintext
Raw Normal View History

2022-05-07 17:26:51 +02:00
#compdef cutvid
function _cutvid_vencoders()
{
local -a encoders=(
copy
vp9_vaapi
libvpx-vp9
hevc_vaapi
libx265
h264_vaapi
libx264
)
_values "video encoder" ${encoders}
}
function _cutvid_aencoders()
{
local -a encoders=(
copy
libopus
flac
libvorbis
aac
mp3
)
_values "audio encoder" ${encoders}
}
_arguments '-h[short help text]' \
'--help[short help text]' \
2022-05-07 17:39:14 +02:00
'--from[timestamp]:timestamp:' \
'--to[timestamp]:timestamp:' \
2022-05-07 17:26:51 +02:00
'--vencoder[video encoder]:encoder:_cutvid_vencoders' \
'--aencoder[audio encoder]:encoder:_cutvid_aencoders' \
'--hardcode-subs[hardcode ASS subtitles]' \
'1:input file:_files' \
'2:output file:_files' \
2022-05-07 17:39:14 +02:00
'*:ffmpeg options:'
2022-05-07 17:26:51 +02:00
# Local Variables:
# mode: shell-script
# End: