Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | set -e | |
4 | ||
5 | find "$DIR_VIDEO" \ | |
6 | -type f \ | |
7 | -print0 \ | |
8 | | xargs \ | |
9 | -0 \ | |
10 | -P "$(nproc)" \ | |
11 | -I{} \ | |
12 | sh -c 'printf "%s %s\n" $(mimetype -b "{}") "{}"' \ | |
13 | | awk '/^video/ {sub($1 " +", ""); print}' \ | |
14 | > "$FILE_VIDEO_CATALOG" |