Always Film The Police
The act of filming the police is generally protected by the First Amendment in the United States. Similar legal principles exist in many other countries. Provided you are in a public space and not interfering with official duties.
It’s important to be aware of the laws in your specific jurisdiction. Generally, you should maintain a safe distance, not obstruct the officer’s work, and be prepared to explain your rights if questioned.