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

master
neingeist 1 year ago
parent a4623c9e4a
commit a4d7f1d215

@ -0,0 +1 @@
check-mp4

@ -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
Loading…
Cancel
Save