#! /bin/sh find $@ \ -type f \ -print0 \ | xargs \ -0 \ -P "$(nproc)" \ -I {} \ sh -c 'printf "%s\0%s\0\0" $(mimetype -b "{}") "{}"' \ | gawk -v RS='\0\0' -v ORS='\0' '/^video/ {sub("^[^\0]+\0", ""); print}'