Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FLAC v1.3.4 (Read 30605 times) previous topic - next topic - Topic derived from FLAC v1.3.3
0 Members and 1 Guest are viewing this topic.

Re: FLAC v1.3.4

Reply #175
I think Foobar 1.6.12 is using this for the max compression setting slider, flac.exe" -s --ignore-chunk-sizes -8p - -o ""

Out of boredom I'm doing a large compression comparison (15679 Tracks mainly Rock, Metal) of FLAC-1.4.0.RC1 and FLAC-1.3.1 using the above comandline. I'll post my results tomorrow to see the space savings.
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.

Re: FLAC v1.3.4

Reply #176
Stupid question, but: sure it is level 8? Asking because many users have been playing around with different fb2k versions lately, major beta coming out.

I used the 1.6.12, not the new v2. I'm sure the GUI says 8, but it definitely gets dropped somewhere, since on the console, I get similar file sizes. But I noticed that a file with ratio below 1 is still bigger than when encoded with the earlier FLAC version. Was there some change in the file layout?

Re: FLAC v1.3.4

Reply #177
Did you set foobar2000 to transfer tags and album art?

You cannot expect every file to improve with the new build.
* It uses some double precision calculations where 1.3.4 uses single precision. That has been shown to improve quite a lot on certain signals. But if single precision was already good enough for the signal in question, you won't gain much.
* Also, it is not exact science: FLAC is not bad at guessing what makes for good compression, but every now and then it happens that a roundoff happens to be in a beneficial direction, so the rougher "single precision" might be coarser and make a difference - but by chance, it just happens to hit better.
* The windowing functions are now slightly different. More are tested, so should not be worse, but they are changed a little bit (to make for recycling of calculations and thus speeding up), and again: small changes may just by chance happen to be for the better.

When you test many files, those strange things will show up every now and then. Nothing weird.

Re: FLAC v1.3.4

Reply #178
Did you set foobar2000 to transfer tags and album art?

Yes, but it's not relevant, since I didn't change anything besides the flac.exe. So this is probably a bug in fb2k, or less likely some change in the FLAC interface.

Re: FLAC v1.3.4

Reply #179
Can you try again with the release here or here? You would need flac-1.4.0-win.zip
Music: sounds arranged such that they construct feelings.

Re: FLAC v1.3.4

Reply #180
Can you try again with the release here or here? You would need flac-1.4.0-win.zip

Tried the first one, had to add the DLL, but the file was now ~10kb smaller. So now I'm not sure where the problem lies.

Re: FLAC v1.3.4

Reply #181
Here are the results of my testing.

Command line used; flac.exe" -s --ignore-chunk-sizes -8p - -o "xxxx"

1.3.4 (from Foobar2000 Encoder pack)
Code: [Select]
Duration : 5wk 6d 0:45:59.793
Sample rate : 44100 Hz (97.3%); 48000 Hz (2.7%)
Channels : 2
Bits per sample : 16 (96.8%); 24 (3.2%)
Avg. bitrate : 954 kbps
Codec : FLAC
Encoding : lossless
Tool : reference libFLAC 1.3.4 20220220
Embedded cuesheet : no
FLAC-1.4.0.RC1 (from Rarewares)
Code: [Select]
Duration : 5wk 6d 0:45:59.793
Sample rate : 44100 Hz (97.3%); 48000 Hz (2.7%)
Channels : 2
Bits per sample : 16 (96.8%); 24 (3.2%)
Avg. bitrate : 953 kbps
Codec : FLAC
Encoding : lossless
Tool : reference libFLAC 1.3.4 20220220
Embedded cuesheet : no

I'm running one more pass using NetRangers FLAC-1.4.0_Win_GCC122 compile which should be done in about 6 hours.
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.


Re: FLAC v1.3.4

Reply #183
flac.exe" -s --ignore-chunk-sizes -8p - -o "xxxx"

FLAC 1.3.4
Code: [Select]
Total size : 393 GB (422 709 930 380 bytes)
Duration : 5wk 6d 0:45:59.793
Sample rate : 44100 Hz (97.3%); 48000 Hz (2.7%)
Channels : 2
Bits per sample : 16 (96.8%); 24 (3.2%)
Avg. bitrate : 954 kbps
Codec : FLAC
Encoding : lossless
Tool : reference libFLAC 1.3.4 20220220
Embedded cuesheet : no

FLAC 1.4.0
Code: [Select]
Total size : 393 GB (422 292 414 045 bytes)
Duration : 5wk 6d 0:45:59.793
Sample rate : 44100 Hz (97.3%); 48000 Hz (2.7%)
Channels : 2
Bits per sample : 16 (96.8%); 24 (3.2%)
Avg. bitrate : 953 kbps
Codec : FLAC
Encoding : lossless
Tool : reference libFLAC 1.4.0 20220909
Embedded cuesheet : no

1.3.4 = 403127.60 MB
1.4.0 = 402729.43 MB

Savings of 398.17 MB
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.

Re: FLAC v1.3.4

Reply #184
It seems pretty clear that the new version is slightly better, but that foobar2000's interface won't result in the same command going through. I guess only Peter can check what's going on.

Re: FLAC v1.3.4

Reply #185
So the "954 minus 953" approximation happens to be nearly exact. (Just scaling 954 with the file size ratio yields 953.06.)

0.1 percent / .07 percentage points; that might be in the same ballpark as the s(h)avings gained from going -7 to -8 or -8 to -8p? 

Re: FLAC v1.3.4

Reply #186
foobar's parameter can be viewed by setting the GUI of an encoder, then immediately choose "Custom" in the drop down list. For example, setting the FLAC GUI to 8, then choose "Custom", it shows:
-s --ignore-chunk-sizes -8 - -o %d
-8p and is much slower than -8 so should be pretty easy to notice.

foobar's behavior can be further identified by setting up a more complex encoder like WavPack. For example, setting the GUI like this:
X

Then immediately choose "Custom", the parameter shows:
-i -q -h -x1 -b253 - %d

Re: FLAC v1.3.4

Reply #187
Comparing FLAC encoding time with console vs with fb2k is not easy. fb2k will use multi-core, but will transfer tags in the end, leading to full file rewrite which is fast on an internal SSD and slow on a NAS.

Re: FLAC v1.3.4

Reply #188
I meant comparing -p and without -p within foobar, in reply to post 175. I don't think foobar uses -p.
[edit] Another way to view the used parameter is to actually convert a file, then open View > Console, this shows the used parameter.

Re: FLAC v1.3.4

Reply #189
Yup you're right, the Foobar2000 default FLAC max setting is "-s --ignore-chunk-sizes -8 - -o %d" minus the -p.

I must have customised my initial preset to include -8p.
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.