US President Barack Obama called on Venezuela's government on Wednesday to release protesters detained in demonstrations that turned violent and address the "legitimate grievances" of its people.