Four Brazilian sports stars have lost their jobs after a sex video of them went viral.

The football players filmed themselves having sex in the locker room of their club’s stadium.

The x-rated video, which is just 11 seconds in length, then got leaked on to YouTube.

The club the men belong to, Sport Clube Gaúcho, axed the players following the leak.

In the video one man can be seen masturbating two of his fellow teammates in the locker room shower.

The fourth player, who isn’t in shot, can then be heard laughing hysterically as the act is filmed.

RELATED: This gay footballer has been accepted by everyone – but his family

It remains unclear how the video made it on to YouTube, but the video had originally been shared just among players.

It was subsequently removed by YouTube for breaking community standards.

The Club’s president, Gilmar Rosso, told the Brazilian publication Globo Esporte the players the firing wasn’t due to their sexuality.

Bosses said they fired the men as the sex acts happened on club property.

Rosso said: “Outside business hours we have nothing to do with the situation.

“If they want to get drunk, drink, gay or not, that’s their problem.”

The manager also told UOL Sport: “As far as I know, these three are not gay, but now they would have to prove that they are not gay.”

The names of the men have not been released.