Hi /r/PleX,
I am sure like many of you, I have gathered a large number of media files over the years to add to my Plex collection. I have constantly been looking for a solution to find out if I had corrupted media in my library and I was never happy with just waiting till a user reported that a file could not be played properly.
I recently learned after looking into it again that ffmpeg.exe could be used to scan media and report back and errors while reading the file. I decided to whip up a powershell script that would supply ffmpeg all the video files in a directory and have it scan that file for errors. The script will log the output from ffmpeg, if there is any, and will record if a file has passed or failed a file scan. A history of the script output is saved to a log file and also each file scanned is added to a CSV file for easy sorting after a library has scanned.
There is a command line argument to have the script auto-repair the file, but if I remember correctly from reading online, ffmpeg can onl