
Daniel Mark, 24, pleaded guilty to possessing the pornographic images and videos at his Killies Green home between January 4 and December 16 last year.
He also admitted making or permitting to be taken indecent images of children and distributing such images.
Jedburgh Sheriff Court heard that a police search found a mobile phone containing the images and videos which Mark had been distributing.
Sheriff Daniel Kelly said the images and videos featured children aged between three and 14-years-old in extreme distress.
Taking into account his previous convictions he added: “There is no alternative to imprisonment.”