Aravind S Menon had earlier pleaded guilty to three counts of consensual sexual intercourse with the 14-year-old girl between May and July 2009, reported the Channel News Asia.
Menon became close to the minor when he was her teacher and they started a relationship.
But when the girl wanted to break up with Aravind, he threatened to post their sex videos online, which he recorded and kept in his laptop.
Aravind also threatened to commit suicide by jumping off the highest floor of a public housing apartment block.
More From This Section
The Judge noted that Aravind warranted a heavy sentence as he had captured their sex acts on video.
But the Judge also took into consideration that this was Aravind's first brush with the law and that the accused was remorseful.
The prosecution had proceeded on one of the three charges against Aravind.