Two middle-school girls were arrested after they filmed an assault on a classmate in Benicia and posted it on YouTube, police said Monday.

The girls, ages 12 and 14, attacked their 13-year-old classmate at Benicia Middle School twice because they believed she had been making disparaging comments about them, police Lt. Mike Daley said.