Fixed .gitignore file. Added video resolution auto-configuration code