Scott Michael Greene, 46, was identified as the gunman who ambushed two officers sitting in their patrol cars in two separate incidents about 20 minutes apart, according to the Des Moines Register.

A YouTube user with the same name last month recorded a lengthy confrontation he had with a few cops after he was booted from Oct. 14 Urbandale High School football game.

In the 10-minute clip, entitled, “Police Abuse, Civil Rights Violation at Urbandale High School,” he claims he was attacked by spectators, who he said stole his Confederate flag.

“This is an assault on a person exercising his constitution rights on free speech,” he griped in the video’s description.

He also responded to one of the video’s commenters, telling him, “I was offended by the blacks sitting through our anthem. Thousands more whites fought and died for their freedom. However this is not about the Armed forces, they are cop haters.”

Greene repeatedly told the cops he wanted to press charges, though he couldn’t give the police any details about his alleged attackers besides that they were a “group of African Americans.”

In the final seconds of the clip, the officers told Greene to get in touch with the Des Moines police department if he wanted to take further action.

It is unclear whether any of the officers involved in the Oct. 14 confrontation were victims of Wednesday’s shooting.

The deceased cops have not been identified yet as their family notifications are still pending.