FLAC compression

General discussion about RuneAudio. Do not post any support or feature requests here.

FLAC compression

Postby Fif91 » 06 Aug 2017, 12:56

Hello
I have a raspberry pi 3, used as hifi player.
I will archive all my 300-400 CDs in FLAC files, to be played on.

I discovered the FLAC file compression can range from 0 (no compression) to 8 (high compression); from this value depends the file size.
I think more compressed the files are, more power the raspberry pi will used to. Are you agree ?

My question : what is the best compression to put on the FLAC, to be read smoothly from raspberry pi 3 ?

A 2Tb drive will store the audio files.
Fif91
 
Posts: 12
Joined: 04 Mar 2017, 16:12

Re: FLAC compression

Postby Stephane » 06 Aug 2017, 16:51

Hi,

Try to encode a file with 0 compression and the same with 8 then play them, login thru ssh and use the top command to see how it behaves.
My guess is that with a 4 cores CPU you won't have any trouble with the maximum compression.
Stephane
 
Posts: 64
Joined: 06 Feb 2017, 10:35

Re: FLAC compression

Postby hondagx35 » 06 Aug 2017, 17:40

Hi Fif91,

I would use compression level 5 or 0.

By the way, 5 is the default level and there is a good reason for this.
The default compression is the tradeoff between size and computing (decoding) time.
Higher compression level only results in slightly smaller files.

Stephane wrote:My guess is that with a 4 cores CPU you won't have any trouble with the maximum compression.

The technical strength of FLAC compared to other lossless formats is its ability to be decoded quickly, nearly independent of compression level.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: FLAC compression

Postby music » 22 Oct 2017, 17:38

hondagx35 wrote:By the way, 5 is the default level and there is a good reason for this.
The default compression is the tradeoff between size and computing (decoding) time.
Higher compression level only results in slightly smaller files.

The technical strength of FLAC compared to other lossless formats is its ability to be decoded quickly, nearly independent of compression level.


This is a very good reply. FLAC compression level makes a large difference in encoding time, a rather small difference in encoded file size, and almost no difference in how hard it is to decode. See https://xiph.org/flac/faq.html#general__asymmetry. If in doubt, the default is good. If you are archiving files (encode once, play many times) and don’t care how long it takes to encode, there’s no downside to using the maximum compression setting. There’s little reason to use less than the default compression level for typical uses.
music
 
Posts: 1
Joined: 17 Sep 2017, 20:31

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 3 guests