PARIS — A little-known French rapper’s violent music video that intones “hang the whites” amid calls for killing “the white babies” has created a small uproar in France, with politicians rushing to condemn it, anti-racism groups denouncing it and the Paris prosecutor’s office opening an investigation.

The video depicts a hitherto obscure rapper from the Paris suburb of Noisy-le-Grand, Nick Conrad, kidnapping a white man, stuffing him into the trunk of a car, shoving a pistol into his mouth and shooting him. Then it shows the man’s hanged body. All the while the rapper repeats “hang the whites.”

YouTube had pulled the video by Wednesday but copies of it were still viewable on Thursday.

“I go into the nurseries, I kill the white babies, catch them quick and hang their parents, pull them apart to pass the time, amuse the black children off all ages, little and big,” the rapper says.

Few had heard of Mr. Conrad or of his video before French far-right websites flagged it and began distributing it Wednesday, according to a reconstruction of events by Le Monde. Within hours, the video had passed from France’s extreme right to its mainstream right, with politicians competing with one another to express indignation.