44 lines
928 B
Plaintext
44 lines
928 B
Plaintext
#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]' \
|
|
'--from[timestamp]:timestamp:' \
|
|
'--to[timestamp]:timestamp:' \
|
|
'--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' \
|
|
'*:ffmpeg options:'
|
|
|
|
# Local Variables:
|
|
# mode: shell-script
|
|
# End:
|