Created
February 25, 2013 00:26
-
-
Save mateusdelbianco/5026446 to your computer and use it in GitHub Desktop.
Script to verify video file integrity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export RESULT=`AV_LOG_FORCE_NO_COLOR=true ffmpeg -v warning -i "$1" -acodec copy -vcodec copy -f null - 2>&1` | |
if [ -z "$RESULT" ] ; then | |
exit 0 | |
else | |
echo "$RESULT" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment