Kyle Fox, 26, of Epsom, Surrey, admitted attacking the children and recording his abuse of them, but denied posting any of the horrific footage to a dark web site, Kingston Crown Court heard.
A distinctive wristband he was wearing at one point, and examination by a speech analyst of his voice, helped investigators to identify him from the abuse videos.
Prosecutor Martin Hooper said Fox also "gave the impression" of admitting his actions after he was arrested, but in reality they were "limited and misleading".
Mr Hooper added: "There is an element of him putting the blame on the children."
Judge Georgina Kent, sentencing Fox to 22 years in jail and a further two on licence, told Fox: "You sexually abused two very young and vulnerable children.
"Your offences were detected when a video of the abuse was uploaded on to a file-sharing website.
"It came to the attention of officers who were able to trace you from the data.
"These are extremely serious and depraved offences.
"No right-minded person could be other than horrified by this appalling series of offences."
The judge told Fox she was "satisfied you used drugs to stupefy" the boy, and that tests later showed the child had "traces of cocaine in his hair".
Fox had previously pleaded guilty to all 22 charges.
They included 14 charges against a boy who was aged four or five years old, and five counts against a girl between one and three years old.
His victims are unrelated.
The charges against the boy include seven counts of rape, six counts of assault by penetration and specimen counts of multiple sexual assaults.
The charges against the girl include five counts of assault by penetration.
Fox was sentenced to 14 years imprisonment for his offences against the boy and eight years for the offences against the girl, which are to run consecutively.
He also admitted making indecent images of children - including 4,743 category A images or videos (the most severe), 4,263 category B and 3,995 category C.
Fox was also jailed for four years, three years and two years respectively, for the indecent images he created. These sentences are to run concurrently.
The judge told Fox: "You recorded your offending so I have full descriptions of the shocking and dreadful abuse that you perpetrated on them.
"I have also read the chat logs in which your repugnant and distorted attitudes towards the children was laid bare.
"I have read descriptions of the dreadful child abuse images and videos found.
"The evidence shows that you uploaded over 6,000 videos to the file sharing website and in return gained credits which enabled you to view other content."
Files discovered on his seized laptop after Fox was arrested included images of the boy being attacked.
A sofa bed where the girl had been abused was found in a search of his home.
The court also heard that Fox had a large collection of porn involving these two victims and other children.
Lionel Blackman, defending, said that Fox did not seek to "suggest any moral blame to the children" during his police interviews but instead had been "extremely candid" in his answers.
It was also stated that Fox was willing to take part in therapy and had a "physical and mental past from his childhood which may form the circumstance of his descent in to these offences".
The judge also praised the officers and investigators who were involved in the successful conclusion to the "difficult to detect" offences.
She said she had "no doubt" they had "prevented the imminent and further serious abuse of children".
After the hearing the National Crime Agency said that its National Cyber Crime Unit, working with partners in South Korea and the United States, had taken down the site which contained 145,000 videos of child sex abuse and had been viewed by offenders millions of times.
NCA senior investigating officer Jason Booth said: "Kyle Fox has committed utterly horrific offences with 'first-generation' images of that abuse appearing online.
"Law enforcement needs to be able to proactively target the highest-risk, hardest-to-tackle child sexual abuse and exploitation offenders, using covert and specialist assets as increasingly required, and focus on areas where there is a greater risk of contact abuse.
"The NCA prioritises these cases to safeguard vulnerable children and prosecute offenders."