#! /bin/zsh # # this src: # https://dataswamp.org/~incal/conf/.zsh/video mm-validate () { local mm=$1 if [[ -f $mm ]]; then ffmpeg -v error -i $mm -f null - 2> ${mm}-error.log fi } rm-video () { local src=$1 local name=${src:r} local ext=${src:e} local aud=${name}-aud.${ext} ffmpeg -i $src -vn $aud }