A man who recorded footage of himself running from the police and then posted the video to YouTube has been caught and sentenced for four years in prison Friday.

Hamza Ali Ben Ali, 31, of Plainfield, Illinois, was found guilty in May of aggravated fleeing and eluding police and driving with a suspended license. He could have received up to six years in prison.

"There's no question, Mr. Ali, you put many many people in jeopardy," DuPage County Judge George Bakalis said before handing down the sentence.

In October 2012, Ali tried to provoke a cop into chasing him after the officer tried to pull him over along Cass Avenue in Westmont.

Ali recorded the pursuit on a camera attached to his Honda CBR 1000 motorcycle. He was followed into a gas station by a police officer but then sped away again.

The officer stopped pursuing Ali but later found him on I-55 and caught up to him. Again, Ali sped away. Two weeks later, the footage of the pursuit was posted to YouTube.

Ali was wearing a GPS anklet because of past crimes. The anklet not only recorded his location, but also his speed. He hit a top speed of 115.

Ali's attorney, Michelle Gonzalez, said that her client still says he wasn't the man on the bike, and he is a family man. The attorney also said that no one was hurt in the chase.

Bakalis said that the evidence against Ali was clear and that his posting of it online shows he wanted to brag about it.

Assistant State's Attorney Alex Sendlak asked for a five-year sentence for Ali.

"[Ali] puts innocent people's lives in danger for his own personal satisfaction," Sendlak said. 

Bakalis decided Ali should receive a four-year sentence and one year of mandatory supervision. According to Ali's attorney, he plans to appeal.

Watch the video of the chase below. What do you think?