SEOUL, South Korea — Two K-pop stars were sentenced to prison on Friday for raping women who were too drunk to consent to sex, and one of the men was also convicted of making videos of the assaults and sharing them with friends online.

The Seoul Central District Court sentenced the singer-songwriter Jung Joon-young, who recorded and shared the videos, to six years in prison. His friend Choi Jong-hoon, a former boy band member, was sentenced to five years.

“The accused perpetrated sexual crimes against multiple women, degrading women and treating them as mere tools of sexual pleasure,” Judge Kang Seong-soo said in his verdict​ on Friday​. “It’s hard to fathom the pain the victims must have​ suffered.”

During their trial, Mr. Jung and Mr. Choi​, both 30,​ said that the sex acts, which took place in 2016, had been consensual. But the court ruled that the women had been drunk and unable to resist. The court has not said how many victims there were.