An Angus man posted live videos of a nine hour siege to YouTube while telling police he had dowsed his home in alcohol and planned to blow it up.
Roman Tamborsky also posted a Facebook message offering to fight a rival and taunting Police Scotland with a series of mocking messages.
Video of some of the footage is above this article
Several neighbouring properties had to be evacuated while Tamborsky hurled a torrent of foul-mouthed abuse at police during the stand off.
Sheriff Lorna Drummond told him: “It was strange and really extreme behaviour. It took nine hours for the emergency services to deal with it.”
Tamborsky, 36, Marketgate, Arbroath, was remanded in custody for the preparation of reports at Dundee Sheriff Court.
Fiscal depute Saima Rasheed said: “He is known to be a violent and erratic individual with a deep hatred of the police.
“He posted derogatory videos on Facebook of himself ridiculing the Police Service of Scotland.”
The video challenged a fellow Czech national to a fight and his victim said he felt genuine fear because he knew Tamborsky from a previous run-in.
“They were in fear for their life and were of the opinion the accused was capable of carrying out his threats.”
Days later Tamborsky called the police and hurled abuse at them and when they turned up at his home he immediately barricaded himself in.
He told officers he would kill them and said: “I’ve barricaded the front door. I’ve placed a lit candle behind the door.”
He threw an empty isopropyl bottle at the police and told them he had five more which he would use to soak the house before torching it.
“The accused began to upload video of the barricade and him shouting and swearing to YouTube. He continued to make threats.”
The siege started at 11am and it was not until 8.25pm that Tamborsky finally surrendered.
Tamborsky admitted acting in a threatening or abusive manner by posting video to Facebook challenging Radek Sura to fight and making derogatory remarks about police on 28 October.
He also admitted stating he had barricaded his home and poured isopropyl alcohol around while refusing to leave for nine hours on November 1. He admitted acting in a threatening or abusive manner and forcing neighbours to be evacuated.
Solicitor Nick Whelan, defending, said Tamborsky had been working in the UK for 14 years and had lost his job prior to the incidents.
“He was extremely frustrated,” Mr Whelan said. “He had little money left to live on.”
Tamborsky told the court: “That was stupid and I did it. I just told them I covered it. I never did it. I poured it down the toilet.”