Investigators say 29-year-old Jose Guzman walked into the Harbor station and got into an altercation with an officer Saturday, Sept. 26.
In the video a man wearing a hat and sunglasses, later identified as Guzman, briefly leaves the station and then walks back in and puts his fists up as he approaches the officer. He attacks him, gets him on the ground and wrestles his gun away.
He beats the officer with his own gun several times and then walks out of the station. Blood drops from the officer are seen on the floor of the station next to him.
Body camera video: Man attacks LAPD officer, grabs his gun and beats him with it in San Pedro
A second officer appears and starts to chase after Guzman as the injured officer warns that the assailant has the officer's gun. Several shots are fired, none striking anyone.
RELATED: Surveillance video shows attack on LAPD officer in San Pedro
Guzman drove off in a white pickup truck, and was later arrested.
He was charged with two counts of attempted murder of police officers.
LAPD has now released the identity of the two officers. The officer who was attacked was Officer Anthony Freeman. The assistant watch commander who came out to help and was shot at was Sgt. Robin Aguirre.
Guzman is being held on $2.2 million bail and is set to appear in court next week.
Freeman was brought to a local hospital for treatment and later released.
The full report from LAPD and additional video can be found here. Warning: Contains graphic language, images of blood.