You can record police officers in public. You can’t interfere with a police officer. If you are simply recording but not interfering with an officer in a public place it is not illegal.
Jesse Bright, a lawyer in North Carolina, was incorrectly told by an officer that filming the officer was illegal. Here’s the link.
Here is another article concerning filming an officer: