✨ check-mp4: check mp4 files by calling ffmpeg with the right options
This commit is contained in:
parent
a4623c9e4a
commit
a4d7f1d215
2 changed files with 15 additions and 0 deletions
14
check-mp4
Executable file
14
check-mp4
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue