CAIRO — An Egyptian court has sentenced an activist to two years in jail for posting a video that criticized the government for failing to protect women against sexual harassment.

Amnesty International called the verdict against the activist, Amal Fathy, an “outrageous case of injustice.”

Ms. Fathy, a member of the now-banned April 6 youth movement that played a role in 2011 protests that forced President Hosni Mubarak from office, was also fined $562, said one of her lawyers, Tarek Abuel Nasr, and the state news agency MENA.

The court handed down a suspended sentence on Saturday, according to The Associated Press, which said that because Ms. Fathy was being held on other charges — including membership in the outlawed group — and was accused of spreading false news that threatened national security — she was not allowed to walk free.