Campus police say 18-year-old Henry Nguyen and 19-year-old Josue Melendez were taken into custody Wednesday on suspicion of animal cruelty.
The two students allegedly battered the hamsters and used a cigarette lighter to torture the animals. One of the hamsters died, but the other recovered after being cared for at the UC Davis Veterinary Medical Teaching Hospital.
Police say the video posting led to the investigation of the two students.
Yolo County jail officials said Melendez was being held on $20,000 bail, while Nguyen was still in the process of being booked late Wednesday.
It was not known of the two students had hired attorneys.