Skip to content

Instantly share code, notes, and snippets.

@mateusdelbianco
Created February 25, 2013 00:26
Show Gist options
  • Save mateusdelbianco/5026446 to your computer and use it in GitHub Desktop.
Save mateusdelbianco/5026446 to your computer and use it in GitHub Desktop.
Script to verify video file integrity
#!/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