Fix arguments and make it more robust when selecting stream quality.