Jump to content

Automatic way to detect corrupt media files?


schneifu

Recommended Posts

schneifu

Hope someone has a solution to my issue.  I recently had some harddrive issues in my server. I have flexraid but somehow messed up the restore.  Long story short I ended up with corrupt files but very sporadic (on multiple HDD).  The files are scanned fine by MBS but when I go to play them I get an error.  When I load them up in Mediainfo there is no information displayed.  Right now they only way to find these are to try playing them.  What I am hoping is that someone here knows of a way to automatically scan all my files and spit out a log of corrupt files.

 

Thanks

Link to comment
Share on other sites

Koleckai Silvestri

You can use FFMPEG to report any errors with media files. See:

http://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4

 

You would need to create a script in something like PowerShell, PHP, Perl. Python, to get the directories and any media files within them. Use FFMPEG to scan those files and then output a log of the results. There is a sample Python script at the link above to do this. I haven't used it though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...