framerate_count is in the regex form '\d+,\n', which when the function int() is called with it, fails. To solve this, I strip both the '\n' and ',' by calling .strip().strip(',') on that output to result in '\d+' which when int() is called with results in no error thrown
framerate_count is in the regex form '\d+,\n', which when the function int() is called with it, fails. To solve this, I strip both the '\n' and ',' by calling .strip().strip(',') on that output to result in '\d+' which when int() is called with results in no error thrown