A man has been arrested after a video of him allegedly shooting a semi-automatic weapon along a Texas highway went viral.

In the silent clip, a man is seen smiling in the backseat of a moving vehicle as he handled, and the subsequently fired AK-47 six or seven times out the window as cars drove by in the opposite lane.

The video was uploaded to social media by the popular El Paso gossip site "Fit Fam El Paso."

"Absolutely disgusting footage surfaced last night of yet another person firing a weapon out of a moving vehicle on El Paso highways," the post said. "Although this is not a video you'd like to see just days before Christmas, we're posting it because it's the reality of El Paso right now, and you MUST be cautious out there, because there are many people who aren't."

The El Paso Police Department then shared the video to social media, urging the public to come forward with any information. No injuries were reported.

"If you are the person in the video, or person taking the video, the smart thing to do now: 1. Walk in to any police station unarmed and speak to investigators. 2. Make it a lesson learned and move forward from there," El Paso Police wrote.

The suspect Jonathan Jay Oneal, 26, voluntarily turned himself in to authorities the next day and was arrested on charges of discharging a firearm.

"We are grateful that no one was injured and appreciate the efforts of everyone not willing to tolerate this type of behavior in our city," El Paso Police posted on Twitter after Oneal had turned himself in. "Thank you for your willingness to step up to keep our community safe."