Judge David Riordan said there was undoubtedly a sinister aspect to the case as he jailed one of the men for four years.
That sentence was imposed on 31-year-old Maksim Pararin of Upper Bridge St, Skibbereen, Co Cork, for assault causing harm to Adkadiusz Cydzik and falsely imprisoning him at his own home on Townsend St in the town for the assault.
The prolonged beating was doled out for an unpaid drugs debt of €50.
Garda Pauline Reid said she met the co-accused in Skibbereen later that day and he had the camera in his pocket with the video of the attack.
The video itself was the main evidence in the case as it clearly showed the two assailants.
Judge Riordan said yesterday: “Two persons lay in wait for the victim in his home. When he returned he was falsely imprisoned.
“There was seemingly money due in a drug debt. It is not an assault occasioned out of impetuousness or off the cuff. It was a plan they executed for the collection of money.
“It was videoed to show others what might happen if they did not pay debts to [the co-accused who was previously sentenced].”
While it was the co-accused who played the main part in the crime, the judge said that Panarin also played his part in it.
The judge imposed a four-year sentence on the false imprisonment charge and a concurrent two-year sentence for the assault.