#! /bin/zsh # # this file: # http://user.it.uu.se/~embe8573/conf/.zsh/video-fix # https://dataswamp.org/~incal/conf/.zsh/video-fix video-fix () { local src=$1 local name=${src:r} local ext=${src:e} local dst=${name}-fixed.${ext} ffmpeg \ -c copy \ -err_detect ignore_err \ -i $src \ $dst }