Egypt does not have a specific law making homosexuality illegal. But the men who appeared in the video were arrested last month and "tested" for homosexuality. It's not clear what the homosexuality test involved, although it is thought to be an invasive anal examination.

This video has led to eight men being prosecuted.

Prosecutor General Hisham Barakat said the video violated public decency. But the charity Human Rights Watch have said that anal examinations violate international standards against torture.

The verdict is the latest in a crackdown against gay people by Egyptian authorities.

Police arrested the men for holding parties allegedly involved homosexual acts, although the men were actually found wearing women's clothes and make-up.

Three of the four men received eight years, while one received three years with hard labour.

In 2011 a high profile trial of 52 men accused of being gay caught international attention and drew criticism from rights groups. Twenty-three of them were sentenced to up to five years in prison, while the rest were acquitted.