|
|
@@ -28,15 +28,17 @@ if [ -z "${inFile}" ] || [ ! -e "${inFile}" ]; then
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
+# AVIs are always unlikely
|
|
|
+if echo "${inFile}" | grep -qi '\.avi$' && [ `wc -c < "${inFile}"` -lt $MIN_AVI_SIZE ]; then
|
|
|
+ echo "Deleting unlikely AVI: ${inFile}" 1>&2
|
|
|
+ rm -f "${inFile}"
|
|
|
+ exit 3
|
|
|
+fi
|
|
|
+
|
|
|
# Grab some codec info
|
|
|
INFO="`~/bin/video/movInfo.pl "${inFile}" 2>/dev/null`"
|
|
|
VCODECS="`echo "${INFO}" | grep VIDEO_CODEC`"
|
|
|
if [ -z "${VCODECS}" ]; then
|
|
|
- if echo "${inFile}" | grep -qi '\.avi$' && [ `wc -c < "${inFile}"` -lt $MIN_AVI_SIZE ]; then
|
|
|
- echo "Deleting unlikely AVI: ${inFile}" 1>&2
|
|
|
- rm -f "${inFile}"
|
|
|
- exit 3
|
|
|
- fi
|
|
|
echo "`basename "${0}"`: Could not determine video codec: ${inFile}" 1>&2
|
|
|
|
|
|
# Try to recode -- this does not return
|