change resolution before starting the stream