Imagine how this would have gone if there was no video of the incident.
And here's almost the EXACT same situation as the OP. Officer almost hits this guy, then they arrest this guy for contempt of cop:
And they did all this when they were on video, and KNEW they were on video. Imagine how much worse it might have gone without the video. As is, they arrested a completely innocent guy.