check-mp4: check mp4 files by calling ffmpeg with the right options

This commit is contained in:
neingeist 2023-03-17 15:16:25 +01:00
parent a4623c9e4a
commit a4d7f1d215
2 changed files with 15 additions and 0 deletions

14
check-mp4 Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# check MP4 files by calling ffmpeg with the right options
rc=0
for mp4 in "$@"; do
echo -n "$mp4: "
if ffmpeg -v error -i "$mp4" -f null -; then
echo "OK"
else
echo "ERR"
rc=1
fi
done
exit $rc