An Egyptian court jailed eight men for three years Saturday over a video prosecutors claimed was of a gay wedding, which went viral on the Internet.