Free Lossless Audio Codec (FLAC) is an audio codec that allows digital audio is compressed lossless so that the audio file size is reduced without any loss of information. Compressed digital audio FLAC algorithm typically can be reduced 50 to 60% of its original size, and decompressed in an identical copy of the original audio data. The downside is that the file takes up much more space than would be obtained by applying a lossy compression algorithm. FLAC is an open format with royalty-free license and a reference implementation which is free software. FLAC has support for tagging metadata, including album art, and quick search.
Ogg is a free, open container format, developed and maintained by the Xiph.Org Foundation is unrestricted by software patents and is designed to provide efficient flow diffusion and manipulation of high quality digital multimedia. The Ogg container format can multiplex a number of independent streams for audio, video, text (such as subtitles), and metadata. In the Ogg multimedia framework, Theora provides a layer of lossy video. The audio layer is most commonly provided by the music-oriented Vorbis format but other options include compression codecs Opus, FLAC lossless audio OggPCM.