M4P (MPEG-4 Protected) is a digital audio file extension for the AAC (Advanced Audio Codec) container format. It uses lossy compression and is an audio-only file. In most cases, M4P files are purchased on Apple iTunes, which means they are DRM-protected. M4A is the unprotected version of M4P.
FLAC (Free Lossless Audio Codec) is a free lossless digital audio format developed by Xiph.Org. A compressed FLAC file can be reduced by between 50-70% of the original size and decompress back to the original sound data. This file format supports metadata like ID3 tags, cover art, and album title.