1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-31 04:08:16 +01:00
zinit-configs/psprint/functions/psffconv
2019-06-27 12:47:09 +02:00

9 lines
205 B
Bash

# DESC: Converts (ffmpeg) file $1 to $2, or $1 to ${1:r}.mp4
if [[ "$2" != "" ]]; then
command ffmpeg -i "$1" -qscale 0 "$2"
else
command ffmpeg -i "$1" -qscale 0 "${1:r}.mp4"
fi
# vim:ft=zsh:et