Added video resolution parameter