A Saskatoon man has been sentenced to two years less a day in jail after he pleaded guilty to child porn charges, stemming from his volunteer work.

According to testimony at Saskatoon's Court of Queen's Bench, Justin Gryba videotaped young boys in a swimming pool change room. He met his victims while doing volunteer work.

"The offender is being sentenced for possessing approximately 9,775 child pornographic files, including still photos and videos," said Chief Justice Martin Popescul. "The material was repugnant, disturbing and reprehensible."

It was during the March courtroom proceedings that Gryba pleaded guilty to making and possessing child pornography.

The video files of the boys were found on an encrypted hard drive, which police needed 2½ years to decrypt.

Prior to issuing the sentence on Friday, Justice Popescul noted the "sheer volume and depraved nature of [the] material." He said the court was numbed by the material's depravity, and called it "repugnant."

"The offender did a terrible thing, but there is hope for him," Popescul said. "The change room videos are a form of voyeurism," which he described as "low on the scale, but still abuse."

Gryba had been previously charged with child porn-related offences in 2012 and was sentenced to two years less a day in jail in 2013.

Along with today's prison sentence, Popescul handed Gryba three years of probation, and he banned the man from being near pools, parks, daycares or community centres for five years.

He's also banned from using computers.