I hope you let tools do most of the work. ExifTool and TrID are great for this, as discussed here and here.