that is rubbish advice. VideoCapture::set
takes a property as the first argument, a value as the second argument. it does not take width and height as you demonstrated.
I would very much like to see your responses increase in quality rather than quantity.